mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-22 22:12:24 +01:00
Fix format instead of variable in gettext
This commit is contained in:
parent
beb916d521
commit
e02c014890
@ -155,7 +155,7 @@ def do_edit_package(user: User, package: Package, was_new: bool, was_web: bool,
|
|||||||
break
|
break
|
||||||
|
|
||||||
if tag.is_protected and tag not in old_tags and not user.rank.atLeast(UserRank.EDITOR):
|
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)
|
package.tags.append(tag)
|
||||||
|
|
||||||
|
@ -7,7 +7,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: 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"
|
"PO-Revision-Date: 2022-01-13 22:35+0000\n"
|
||||||
"Last-Translator: debiankaios <info@debiankaios.de>\n"
|
"Last-Translator: debiankaios <info@debiankaios.de>\n"
|
||||||
"Language: de\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"
|
msgstr "Sie haben nicht die Erlaubnis das zu tun"
|
||||||
|
|
||||||
#: app/logic/packages.py:158
|
#: 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 ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/logic/releases.py:32
|
#: app/logic/releases.py:32
|
||||||
@ -3348,3 +3349,6 @@ msgstr ""
|
|||||||
#~ msgid "Edit tags"
|
#~ msgid "Edit tags"
|
||||||
#~ msgstr "Tags bearbeiten"
|
#~ msgstr "Tags bearbeiten"
|
||||||
|
|
||||||
|
#~ msgid "Unable to add protected tag {tag.title} to package"
|
||||||
|
#~ msgstr ""
|
||||||
|
|
||||||
|
@ -7,7 +7,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: 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"
|
"PO-Revision-Date: 2022-01-13 15:48+0000\n"
|
||||||
"Last-Translator: Joaquín Villalba <joaco-mono@hotmail.com>\n"
|
"Last-Translator: Joaquín Villalba <joaco-mono@hotmail.com>\n"
|
||||||
"Language: es\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"
|
msgstr "No tienes permiso para hacer eso"
|
||||||
|
|
||||||
#: app/logic/packages.py:158
|
#: 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 ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/logic/releases.py:32
|
#: app/logic/releases.py:32
|
||||||
@ -3191,3 +3192,6 @@ msgstr ""
|
|||||||
#~ msgid "Edit tags"
|
#~ msgid "Edit tags"
|
||||||
#~ msgstr ""
|
#~ msgstr ""
|
||||||
|
|
||||||
|
#~ msgid "Unable to add protected tag {tag.title} to package"
|
||||||
|
#~ msgstr ""
|
||||||
|
|
||||||
|
@ -7,7 +7,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: 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"
|
"PO-Revision-Date: 2022-01-10 15:53+0000\n"
|
||||||
"Last-Translator: waxtatect <piero@live.ie>\n"
|
"Last-Translator: waxtatect <piero@live.ie>\n"
|
||||||
"Language: fr\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"
|
msgstr "Vous n'avez pas la permission de faire cela"
|
||||||
|
|
||||||
#: app/logic/packages.py:158
|
#: 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 ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/logic/releases.py:32
|
#: app/logic/releases.py:32
|
||||||
@ -3363,3 +3364,6 @@ msgstr ""
|
|||||||
#~ msgid "Edit tags"
|
#~ msgid "Edit tags"
|
||||||
#~ msgstr "Modifier les étiquettes"
|
#~ msgstr "Modifier les étiquettes"
|
||||||
|
|
||||||
|
#~ msgid "Unable to add protected tag {tag.title} to package"
|
||||||
|
#~ msgstr ""
|
||||||
|
|
||||||
|
@ -7,7 +7,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: 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"
|
"PO-Revision-Date: 2022-01-13 22:35+0000\n"
|
||||||
"Last-Translator: pampogo kiraly <pampogo.kiraly@gmail.com>\n"
|
"Last-Translator: pampogo kiraly <pampogo.kiraly@gmail.com>\n"
|
||||||
"Language: hu\n"
|
"Language: hu\n"
|
||||||
@ -862,7 +862,8 @@ msgid "You do not have permission to change the package name"
|
|||||||
msgstr "Nincs erre engedélye"
|
msgstr "Nincs erre engedélye"
|
||||||
|
|
||||||
#: app/logic/packages.py:158
|
#: 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 ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/logic/releases.py:32
|
#: app/logic/releases.py:32
|
||||||
@ -3154,3 +3155,6 @@ msgstr ""
|
|||||||
#~ msgid "Edit tags"
|
#~ msgid "Edit tags"
|
||||||
#~ msgstr ""
|
#~ msgstr ""
|
||||||
|
|
||||||
|
#~ msgid "Unable to add protected tag {tag.title} to package"
|
||||||
|
#~ msgstr ""
|
||||||
|
|
||||||
|
@ -7,7 +7,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: 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"
|
"PO-Revision-Date: 2022-01-12 20:50+0000\n"
|
||||||
"Last-Translator: Muhammad Rifqi Priyo Susanto "
|
"Last-Translator: Muhammad Rifqi Priyo Susanto "
|
||||||
"<muhammadrifqipriyosusanto@gmail.com>\n"
|
"<muhammadrifqipriyosusanto@gmail.com>\n"
|
||||||
@ -850,7 +850,8 @@ msgid "You do not have permission to change the package name"
|
|||||||
msgstr "Anda tidak memiliki izin untuk melakukannya"
|
msgstr "Anda tidak memiliki izin untuk melakukannya"
|
||||||
|
|
||||||
#: app/logic/packages.py:158
|
#: 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 ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/logic/releases.py:32
|
#: app/logic/releases.py:32
|
||||||
@ -3285,3 +3286,6 @@ msgstr ""
|
|||||||
#~ msgid "Edit tags"
|
#~ msgid "Edit tags"
|
||||||
#~ msgstr "Ubah label"
|
#~ msgstr "Ubah label"
|
||||||
|
|
||||||
|
#~ msgid "Unable to add protected tag {tag.title} to package"
|
||||||
|
#~ msgstr ""
|
||||||
|
|
||||||
|
@ -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: 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"
|
"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"
|
||||||
@ -832,7 +832,8 @@ msgid "You do not have permission to change the package name"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/logic/packages.py:158
|
#: 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 ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/logic/releases.py:32
|
#: app/logic/releases.py:32
|
||||||
|
@ -7,7 +7,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: 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"
|
"PO-Revision-Date: 2022-01-12 20:50+0000\n"
|
||||||
"Last-Translator: Yaya - Nurul Azeera Hidayah @ Muhammad Nur Hidayat "
|
"Last-Translator: Yaya - Nurul Azeera Hidayah @ Muhammad Nur Hidayat "
|
||||||
"Yasuyoshi <translation@mnh48.moe>\n"
|
"Yasuyoshi <translation@mnh48.moe>\n"
|
||||||
@ -862,7 +862,8 @@ msgid "You do not have permission to change the package name"
|
|||||||
msgstr "Anda tiada kebenaran untuk berbuat sedemikian"
|
msgstr "Anda tiada kebenaran untuk berbuat sedemikian"
|
||||||
|
|
||||||
#: app/logic/packages.py:158
|
#: 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 ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/logic/releases.py:32
|
#: app/logic/releases.py:32
|
||||||
@ -3339,3 +3340,6 @@ msgstr ""
|
|||||||
#~ msgid "Edit tags"
|
#~ msgid "Edit tags"
|
||||||
#~ msgstr "Edit tag"
|
#~ msgstr "Edit tag"
|
||||||
|
|
||||||
|
#~ msgid "Unable to add protected tag {tag.title} to package"
|
||||||
|
#~ msgstr ""
|
||||||
|
|
||||||
|
@ -7,7 +7,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: 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"
|
"PO-Revision-Date: 2022-01-10 15:53+0000\n"
|
||||||
"Last-Translator: Imre Kristoffer Eilertsen <imreeil42@gmail.com>\n"
|
"Last-Translator: Imre Kristoffer Eilertsen <imreeil42@gmail.com>\n"
|
||||||
"Language: nb_NO\n"
|
"Language: nb_NO\n"
|
||||||
@ -834,7 +834,8 @@ msgid "You do not have permission to change the package name"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/logic/packages.py:158
|
#: 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 ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/logic/releases.py:32
|
#: app/logic/releases.py:32
|
||||||
@ -3158,3 +3159,6 @@ msgstr ""
|
|||||||
#~ msgid "Edit tags"
|
#~ msgid "Edit tags"
|
||||||
#~ msgstr ""
|
#~ msgstr ""
|
||||||
|
|
||||||
|
#~ msgid "Unable to add protected tag {tag.title} to package"
|
||||||
|
#~ msgstr ""
|
||||||
|
|
||||||
|
@ -7,7 +7,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: 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"
|
"PO-Revision-Date: 2022-01-10 15:53+0000\n"
|
||||||
"Last-Translator: Mikitko <rudzik8@protonmail.com>\n"
|
"Last-Translator: Mikitko <rudzik8@protonmail.com>\n"
|
||||||
"Language: ru\n"
|
"Language: ru\n"
|
||||||
@ -856,7 +856,8 @@ msgid "You do not have permission to change the package name"
|
|||||||
msgstr "У вас нету разрешения это делать"
|
msgstr "У вас нету разрешения это делать"
|
||||||
|
|
||||||
#: app/logic/packages.py:158
|
#: 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 ""
|
msgstr ""
|
||||||
|
|
||||||
#: app/logic/releases.py:32
|
#: app/logic/releases.py:32
|
||||||
@ -3152,3 +3153,6 @@ msgstr ""
|
|||||||
#~ msgid "Edit tags"
|
#~ msgid "Edit tags"
|
||||||
#~ msgstr ""
|
#~ msgstr ""
|
||||||
|
|
||||||
|
#~ msgid "Unable to add protected tag {tag.title} to package"
|
||||||
|
#~ msgstr ""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user