1
0
Fork 0
mirror of https://github.com/YunoHost/apps.git synced 2024-09-03 20:06:07 +02:00

fixes for weblate

This commit is contained in:
OniriCorpe 2024-02-26 22:15:02 +01:00
parent 9c19ea5de6
commit 69bd451c30
5 changed files with 13 additions and 13 deletions

View file

@ -264,7 +264,7 @@ def add_to_wishlist():
), ),
( (
description.lower().split()[0] != name and (len(description.split()) == 1 or description.lower().split()[1] not in ["is", "est"]), description.lower().split()[0] != name and (len(description.split()) == 1 or description.lower().split()[1] not in ["is", "est"]),
_("No need to repeat '{app} is'. Focus on what the app does.") _("No need to repeat the name of the app. Focus on what the app does.")
) )
] ]
@ -319,11 +319,11 @@ def add_to_wishlist():
commit_sha = repo.get_branch(repo.default_branch).commit.sha commit_sha = repo.get_branch(repo.default_branch).commit.sha
repo.create_git_ref(ref=f"refs/heads/{new_branch}", sha=commit_sha) repo.create_git_ref(ref=f"refs/heads/{new_branch}", sha=commit_sha)
except exception as e: except exception as e:
print("... Failed to create branch ?") print(" Failed to create branch ?")
print(e) print(e)
url = "https://github.com/YunoHost/apps/pulls?q=is%3Apr+is%3Aopen+wishlist" url = "https://github.com/YunoHost/apps/pulls?q=is%3Apr+is%3Aopen+wishlist"
errormsg = _( errormsg = _(
"Failed to create the pull request to add the app to the wishlist... Maybe there's already <a href='%(url)s'>a waiting PR for this app</a>? Else, 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 href='%(url)s'>a waiting PR for this app</a>? Else, please report the issue to the YunoHost team.",
url=url url=url
) )
return render_template( return render_template(

View file

@ -8,14 +8,14 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PROJECT VERSION\n" "Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2024-02-26 21:51+0100\n" "POT-Creation-Date: 2024-02-26 22:14+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n" "Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.12.1\n" "Generated-By: Babel 2.14.0\n"
#: app.py:150 #: app.py:150
msgid "App %(app_id) not found" msgid "App %(app_id) not found"
@ -95,7 +95,7 @@ msgid ""
msgstr "" msgstr ""
#: app.py:267 #: app.py:267
msgid "No need to repeat '{app} is'. Focus on what the app does." msgid "No need to repeat the name of the app. Focus on what the app does."
msgstr "" msgstr ""
#: app.py:301 #: app.py:301
@ -109,7 +109,7 @@ msgstr ""
#: app.py:325 #: app.py:325
#, python-format #, python-format
msgid "" msgid ""
"Failed to create the pull request to add the app to the wishlist... Maybe" "Failed to create the pull request to add the app to the wishlist… Maybe "
"there's already <a href='%(url)s'>a waiting PR for this app</a>? Else, " "there's already <a href='%(url)s'>a waiting PR for this app</a>? Else, "
"please report the issue to the YunoHost team." "please report the issue to the YunoHost team."
msgstr "" msgstr ""
@ -282,7 +282,7 @@ msgid "Search"
msgstr "" msgstr ""
#: templates/catalog.html:91 templates/wishlist.html:21 #: templates/catalog.html:91 templates/wishlist.html:21
msgid "Search for..." msgid "Search for"
msgstr "" msgstr ""
#: templates/catalog.html:107 #: templates/catalog.html:107
@ -409,7 +409,7 @@ msgstr ""
#: templates/wishlist_add.html:66 #: templates/wishlist_add.html:66
msgid "" msgid ""
"No need to repeat '[App] is ...'. No need to state that it is free/open-" "No need to repeat '[App] is '. No need to state that it is free/open-"
"source or self-hosted (otherwise it wouldn't be packaged for YunoHost). " "source or self-hosted (otherwise it wouldn't be packaged for YunoHost). "
"Avoid marketing stuff like 'the most', or vague properties like 'easy', " "Avoid marketing stuff like 'the most', or vague properties like 'easy', "
"'simple', 'lightweight'." "'simple', 'lightweight'."

View file

@ -88,7 +88,7 @@
<input <input
type="text" type="text"
id="search" id="search"
placeholder="{{ _('Search for...') }}" placeholder="{{ _('Search for') }}"
{% if init_search %}value="{{ init_search }}"{% endif %} {% if init_search %}value="{{ init_search }}"{% endif %}
class="w-full rounded-md border-gray-200 shadow-sm sm:text-sm py-2 pe-10" class="w-full rounded-md border-gray-200 shadow-sm sm:text-sm py-2 pe-10"
> >

View file

@ -18,7 +18,7 @@
<input <input
type="text" type="text"
id="search" id="search"
placeholder="{{ _('Search for...') }}" placeholder="{{ _('Search for') }}"
class="w-full rounded-md border-gray-200 shadow-sm sm:text-sm py-2 pe-10" class="w-full rounded-md border-gray-200 shadow-sm sm:text-sm py-2 pe-10"
> >

View file

@ -63,7 +63,7 @@
<label for="description" class="mt-5 block font-bold text-gray-700">{{ _("App's description") }}</label> <label for="description" class="mt-5 block font-bold text-gray-700">{{ _("App's description") }}</label>
<textarea name="description" type="text" class="w-full mt-1 rounded-md border-gray-200 text-gray-700 shadow-sm" required rows='3' maxlength='100'></textarea> <textarea name="description" type="text" class="w-full mt-1 rounded-md border-gray-200 text-gray-700 shadow-sm" required rows='3' maxlength='100'></textarea>
<span class="text-xs text-gray-600"><span class="font-bold">{{ _("Please be concise and focus on what the app does.") }}</span> {{ _("No need to repeat '[App] is ...'. No need to state that it is free/open-source or self-hosted (otherwise it wouldn't be packaged for YunoHost). Avoid marketing stuff like 'the most', or vague properties like 'easy', 'simple', 'lightweight'.") }}</span> <span class="text-xs text-gray-600"><span class="font-bold">{{ _("Please be concise and focus on what the app does.") }}</span> {{ _("No need to repeat '[App] is '. No need to state that it is free/open-source or self-hosted (otherwise it wouldn't be packaged for YunoHost). Avoid marketing stuff like 'the most', or vague properties like 'easy', 'simple', 'lightweight'.") }}</span>
<label for="upstream" class="mt-5 block font-bold text-gray-700">{{ _("Project code repository") }}</label> <label for="upstream" class="mt-5 block font-bold text-gray-700">{{ _("Project code repository") }}</label>
<input name="upstream" type="url" class="w-full mt-1 rounded-md border-gray-200 text-gray-700 shadow-sm" maxlength="150" required > <input name="upstream" type="url" class="w-full mt-1 rounded-md border-gray-200 text-gray-700 shadow-sm" maxlength="150" required >