Skip to content

Commit

Permalink
smol fix: fix a gettext variable
Browse files Browse the repository at this point in the history
  • Loading branch information
OniriCorpe authored and Psycojoker committed Mar 22, 2024
1 parent 8749278 commit b534989
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion store/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def app_info(app_id):
def star_app(app_id, action):
assert action in ["star", "unstar"]
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", {}):
return (
_("You must be logged in to be able to star an app")
Expand Down
5 changes: 3 additions & 2 deletions store/messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\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"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand All @@ -18,7 +18,8 @@ msgstr ""
"Generated-By: Babel 2.14.0\n"

#: app.py:150
msgid "App %(app_id) not found"
#, python-format
msgid "App %(app_id)s not found"
msgstr ""

#: app.py:153
Expand Down

0 comments on commit b534989

Please sign in to comment.