From cb6845bb35542a108e815430fb109d63edbb16d0 Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Sun, 18 Feb 2024 22:40:21 +0100 Subject: [PATCH] Many texts improvements, to enhance user understanding --- store/app.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/store/app.py b/store/app.py index f0863b9b..95083b21 100644 --- a/store/app.py +++ b/store/app.py @@ -204,7 +204,7 @@ def add_to_wishlist(): csrf_token = request.form["csrf_token"] if csrf_token != session.get("csrf_token"): - errormsg = _("Invalid CSRF token, please refresh the form and try again") + errormsg = _("Invalid CSRF token, please refresh the page and try again") return render_template( "wishlist_add.html", locale=get_locale(), @@ -220,12 +220,12 @@ def add_to_wishlist(): website = request.form["website"].strip().replace("\n", "") license = request.form["license"].strip().replace("\n", "") - boring_keywords_to_check_for_people_not_reading_the_instructions = ["free", "open source", "open-source", "self-hosted", "simple", "lightweight", "light-weight", "best", "most", "fast", "flexible", "puissante", "powerful", "secure"] + boring_keywords_to_check_for_people_not_reading_the_instructions = ["free", "open source", "open-source", "self-hosted", "simple", "lightweight", "light-weight", "léger", "best", "most", "fast", "rapide", "flexible", "puissante", "puissant", "powerful", "secure"] checks = [ ( check_wishlist_submit_ratelimit(session['user']['username']) is True, - _("Proposing wishlist additions is limited to once every 15 days per user.") + _("Proposing wishlist additions is limited to once every 15 days per user. Please try again in a few days.") ), (len(name) >= 3, _("App name should be at least 3 characters")), (len(name) <= 30, _("App name should be less than 30 characters")), @@ -298,7 +298,7 @@ def add_to_wishlist(): csrf_token=csrf_token, successmsg=None, errormsg=_( - "An entry with the name %(slug) already exists in the wishlist", + "An entry with the name %(slug) already exists in the wishlist, instead, you can add a star to the app to show your interest.", slug=slug, ), ) @@ -321,7 +321,7 @@ def add_to_wishlist(): print("... Failed to create branch ?") print(e) errormsg = _( - "Failed to create the pull request to add the app to the wishlist ... please report the issue to the yunohost team" + "Failed to create the pull request to add the app to the wishlist... Maybe there's already a waiting PR for this app? Else, please report the issue to the YunoHost team." ) return render_template( "wishlist_add.html",