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

smol fix: fix a gettext variable

This commit is contained in:
OniriCorpe 2024-03-22 04:59:24 +01:00 committed by Bram
parent 8749278507
commit b534989019
2 changed files with 4 additions and 3 deletions

View file

@ -147,7 +147,7 @@ def app_info(app_id):
def star_app(app_id, action): def star_app(app_id, action):
assert action in ["star", "unstar"] assert action in ["star", "unstar"]
if app_id not in get_catalog()["apps"] and app_id not in get_wishlist(): if app_id not in get_catalog()["apps"] and app_id not in get_wishlist():
return _("App %(app_id) not found", app_id=app_id), 404 return _("App %(app_id)s not found", app_id=app_id), 404
if not session.get("user", {}): if not session.get("user", {}):
return ( return (
_("You must be logged in to be able to star an app") _("You must be logged in to be able to star an app")

View file

@ -8,7 +8,7 @@ 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-03-22 04:56+0100\n" "POT-Creation-Date: 2024-03-22 04:59+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"
@ -18,7 +18,8 @@ msgstr ""
"Generated-By: Babel 2.14.0\n" "Generated-By: Babel 2.14.0\n"
#: app.py:150 #: app.py:150
msgid "App %(app_id) not found" #, python-format
msgid "App %(app_id)s not found"
msgstr "" msgstr ""
#: app.py:153 #: app.py:153