From e02c014890b13e0968ebb7003ca70a76b2e8d636 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Fri, 14 Jan 2022 18:28:22 +0000 Subject: [PATCH] Fix format instead of variable in gettext --- app/logic/packages.py | 2 +- translations/de/LC_MESSAGES/messages.po | 8 ++++++-- translations/es/LC_MESSAGES/messages.po | 8 ++++++-- translations/fr/LC_MESSAGES/messages.po | 8 ++++++-- translations/hu/LC_MESSAGES/messages.po | 8 ++++++-- translations/id/LC_MESSAGES/messages.po | 8 ++++++-- translations/messages.pot | 5 +++-- translations/ms/LC_MESSAGES/messages.po | 8 ++++++-- translations/nb_NO/LC_MESSAGES/messages.po | 8 ++++++-- translations/ru/LC_MESSAGES/messages.po | 8 ++++++-- 10 files changed, 52 insertions(+), 19 deletions(-) diff --git a/app/logic/packages.py b/app/logic/packages.py index 6c03d8b..adff744 100644 --- a/app/logic/packages.py +++ b/app/logic/packages.py @@ -155,7 +155,7 @@ def do_edit_package(user: User, package: Package, was_new: bool, was_web: bool, break if tag.is_protected and tag not in old_tags and not user.rank.atLeast(UserRank.EDITOR): - raise LogicError(400, lazy_gettext("Unable to add protected tag {tag.title} to package")) + raise LogicError(400, lazy_gettext("Unable to add protected tag %(title)s to package", title=tag.title)) package.tags.append(tag) diff --git a/translations/de/LC_MESSAGES/messages.po b/translations/de/LC_MESSAGES/messages.po index 6d39133..56a12cf 100644 --- a/translations/de/LC_MESSAGES/messages.po +++ b/translations/de/LC_MESSAGES/messages.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-01-14 18:24+0000\n" +"POT-Creation-Date: 2022-01-14 18:27+0000\n" "PO-Revision-Date: 2022-01-13 22:35+0000\n" "Last-Translator: debiankaios \n" "Language: de\n" @@ -866,7 +866,8 @@ msgid "You do not have permission to change the package name" msgstr "Sie haben nicht die Erlaubnis das zu tun" #: app/logic/packages.py:158 -msgid "Unable to add protected tag {tag.title} to package" +#, python-format +msgid "Unable to add protected tag %(title)s to package" msgstr "" #: app/logic/releases.py:32 @@ -3348,3 +3349,6 @@ msgstr "" #~ msgid "Edit tags" #~ msgstr "Tags bearbeiten" +#~ msgid "Unable to add protected tag {tag.title} to package" +#~ msgstr "" + diff --git a/translations/es/LC_MESSAGES/messages.po b/translations/es/LC_MESSAGES/messages.po index f3a528a..f31885a 100644 --- a/translations/es/LC_MESSAGES/messages.po +++ b/translations/es/LC_MESSAGES/messages.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-01-14 18:24+0000\n" +"POT-Creation-Date: 2022-01-14 18:27+0000\n" "PO-Revision-Date: 2022-01-13 15:48+0000\n" "Last-Translator: Joaquín Villalba \n" "Language: es\n" @@ -841,7 +841,8 @@ msgid "You do not have permission to change the package name" msgstr "No tienes permiso para hacer eso" #: app/logic/packages.py:158 -msgid "Unable to add protected tag {tag.title} to package" +#, python-format +msgid "Unable to add protected tag %(title)s to package" msgstr "" #: app/logic/releases.py:32 @@ -3191,3 +3192,6 @@ msgstr "" #~ msgid "Edit tags" #~ msgstr "" +#~ msgid "Unable to add protected tag {tag.title} to package" +#~ msgstr "" + diff --git a/translations/fr/LC_MESSAGES/messages.po b/translations/fr/LC_MESSAGES/messages.po index e9032dc..aa31eae 100644 --- a/translations/fr/LC_MESSAGES/messages.po +++ b/translations/fr/LC_MESSAGES/messages.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-01-14 18:24+0000\n" +"POT-Creation-Date: 2022-01-14 18:27+0000\n" "PO-Revision-Date: 2022-01-10 15:53+0000\n" "Last-Translator: waxtatect \n" "Language: fr\n" @@ -881,7 +881,8 @@ msgid "You do not have permission to change the package name" msgstr "Vous n'avez pas la permission de faire cela" #: app/logic/packages.py:158 -msgid "Unable to add protected tag {tag.title} to package" +#, python-format +msgid "Unable to add protected tag %(title)s to package" msgstr "" #: app/logic/releases.py:32 @@ -3363,3 +3364,6 @@ msgstr "" #~ msgid "Edit tags" #~ msgstr "Modifier les étiquettes" +#~ msgid "Unable to add protected tag {tag.title} to package" +#~ msgstr "" + diff --git a/translations/hu/LC_MESSAGES/messages.po b/translations/hu/LC_MESSAGES/messages.po index 488e91f..ca8a9f7 100644 --- a/translations/hu/LC_MESSAGES/messages.po +++ b/translations/hu/LC_MESSAGES/messages.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-01-14 18:24+0000\n" +"POT-Creation-Date: 2022-01-14 18:27+0000\n" "PO-Revision-Date: 2022-01-13 22:35+0000\n" "Last-Translator: pampogo kiraly \n" "Language: hu\n" @@ -862,7 +862,8 @@ msgid "You do not have permission to change the package name" msgstr "Nincs erre engedélye" #: app/logic/packages.py:158 -msgid "Unable to add protected tag {tag.title} to package" +#, python-format +msgid "Unable to add protected tag %(title)s to package" msgstr "" #: app/logic/releases.py:32 @@ -3154,3 +3155,6 @@ msgstr "" #~ msgid "Edit tags" #~ msgstr "" +#~ msgid "Unable to add protected tag {tag.title} to package" +#~ msgstr "" + diff --git a/translations/id/LC_MESSAGES/messages.po b/translations/id/LC_MESSAGES/messages.po index f752ec9..1f5efdb 100644 --- a/translations/id/LC_MESSAGES/messages.po +++ b/translations/id/LC_MESSAGES/messages.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-01-14 18:24+0000\n" +"POT-Creation-Date: 2022-01-14 18:27+0000\n" "PO-Revision-Date: 2022-01-12 20:50+0000\n" "Last-Translator: Muhammad Rifqi Priyo Susanto " "\n" @@ -850,7 +850,8 @@ msgid "You do not have permission to change the package name" msgstr "Anda tidak memiliki izin untuk melakukannya" #: app/logic/packages.py:158 -msgid "Unable to add protected tag {tag.title} to package" +#, python-format +msgid "Unable to add protected tag %(title)s to package" msgstr "" #: app/logic/releases.py:32 @@ -3285,3 +3286,6 @@ msgstr "" #~ msgid "Edit tags" #~ msgstr "Ubah label" +#~ msgid "Unable to add protected tag {tag.title} to package" +#~ msgstr "" + diff --git a/translations/messages.pot b/translations/messages.pot index 6939afc..2c13c3c 100644 --- a/translations/messages.pot +++ b/translations/messages.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-01-14 18:24+0000\n" +"POT-Creation-Date: 2022-01-14 18:27+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -832,7 +832,8 @@ msgid "You do not have permission to change the package name" msgstr "" #: app/logic/packages.py:158 -msgid "Unable to add protected tag {tag.title} to package" +#, python-format +msgid "Unable to add protected tag %(title)s to package" msgstr "" #: app/logic/releases.py:32 diff --git a/translations/ms/LC_MESSAGES/messages.po b/translations/ms/LC_MESSAGES/messages.po index c4586f7..4790e53 100644 --- a/translations/ms/LC_MESSAGES/messages.po +++ b/translations/ms/LC_MESSAGES/messages.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-01-14 18:24+0000\n" +"POT-Creation-Date: 2022-01-14 18:27+0000\n" "PO-Revision-Date: 2022-01-12 20:50+0000\n" "Last-Translator: Yaya - Nurul Azeera Hidayah @ Muhammad Nur Hidayat " "Yasuyoshi \n" @@ -862,7 +862,8 @@ msgid "You do not have permission to change the package name" msgstr "Anda tiada kebenaran untuk berbuat sedemikian" #: app/logic/packages.py:158 -msgid "Unable to add protected tag {tag.title} to package" +#, python-format +msgid "Unable to add protected tag %(title)s to package" msgstr "" #: app/logic/releases.py:32 @@ -3339,3 +3340,6 @@ msgstr "" #~ msgid "Edit tags" #~ msgstr "Edit tag" +#~ msgid "Unable to add protected tag {tag.title} to package" +#~ msgstr "" + diff --git a/translations/nb_NO/LC_MESSAGES/messages.po b/translations/nb_NO/LC_MESSAGES/messages.po index 4793814..1f93a77 100644 --- a/translations/nb_NO/LC_MESSAGES/messages.po +++ b/translations/nb_NO/LC_MESSAGES/messages.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-01-14 18:24+0000\n" +"POT-Creation-Date: 2022-01-14 18:27+0000\n" "PO-Revision-Date: 2022-01-10 15:53+0000\n" "Last-Translator: Imre Kristoffer Eilertsen \n" "Language: nb_NO\n" @@ -834,7 +834,8 @@ msgid "You do not have permission to change the package name" msgstr "" #: app/logic/packages.py:158 -msgid "Unable to add protected tag {tag.title} to package" +#, python-format +msgid "Unable to add protected tag %(title)s to package" msgstr "" #: app/logic/releases.py:32 @@ -3158,3 +3159,6 @@ msgstr "" #~ msgid "Edit tags" #~ msgstr "" +#~ msgid "Unable to add protected tag {tag.title} to package" +#~ msgstr "" + diff --git a/translations/ru/LC_MESSAGES/messages.po b/translations/ru/LC_MESSAGES/messages.po index 3e4075b..7aee436 100644 --- a/translations/ru/LC_MESSAGES/messages.po +++ b/translations/ru/LC_MESSAGES/messages.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2022-01-14 18:24+0000\n" +"POT-Creation-Date: 2022-01-14 18:27+0000\n" "PO-Revision-Date: 2022-01-10 15:53+0000\n" "Last-Translator: Mikitko \n" "Language: ru\n" @@ -856,7 +856,8 @@ msgid "You do not have permission to change the package name" msgstr "У вас нету разрешения это делать" #: app/logic/packages.py:158 -msgid "Unable to add protected tag {tag.title} to package" +#, python-format +msgid "Unable to add protected tag %(title)s to package" msgstr "" #: app/logic/releases.py:32 @@ -3152,3 +3153,6 @@ msgstr "" #~ msgid "Edit tags" #~ msgstr "" +#~ msgid "Unable to add protected tag {tag.title} to package" +#~ msgstr "" +