Mark to-be-reviewed strings as untranslatable

This commit is contained in:
kramo
2023-06-26 22:22:47 +02:00
parent 6b46efb0b8
commit 450cab9bbf
2 changed files with 8 additions and 29 deletions

View File

@@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Cartridges\n" "Project-Id-Version: Cartridges\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-06-26 12:01+0200\n" "POT-Creation-Date: 2023-06-26 22:22+0200\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"
@@ -19,7 +19,7 @@ msgstr ""
#: data/hu.kramo.Cartridges.desktop.in:3 #: data/hu.kramo.Cartridges.desktop.in:3
#: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:47 #: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:47
#: src/main.py:146 #: src/main.py:153
msgid "Cartridges" msgid "Cartridges"
msgstr "" msgstr ""
@@ -375,7 +375,7 @@ msgid "About Cartridges"
msgstr "" msgstr ""
#. Translators: Replace this with your name for it to show up in the about window #. Translators: Replace this with your name for it to show up in the about window
#: src/main.py:164 #: src/main.py:171
msgid "translator_credits" msgid "translator_credits"
msgstr "" msgstr ""
@@ -489,27 +489,6 @@ msgstr ""
msgid "Dismiss" msgid "Dismiss"
msgstr "" msgstr ""
#: src/importer/sources/source.py:106
msgid "Data"
msgstr ""
#: src/importer/sources/source.py:107
msgid "Cache"
msgstr ""
#: src/importer/sources/source.py:108
msgid "Configuration"
msgstr ""
#. The variables are the type of location (eg. cache) and the source's name (eg. Steam)
#: src/importer/sources/source.py:119
msgid "Invalid {} Location for {{}}"
msgstr ""
#: src/importer/sources/source.py:120
msgid "Pick a new one or disable the source in preferences"
msgstr ""
#: src/store/managers/sgdb_manager.py:47 #: src/store/managers/sgdb_manager.py:47
msgid "Couldn't Authenticate SteamGridDB" msgid "Couldn't Authenticate SteamGridDB"
msgstr "" msgstr ""

View File

@@ -103,9 +103,9 @@ class Source(Iterable):
"""Get an iterator for the source""" """Get an iterator for the source"""
for location_name in ( for location_name in (
locations := { locations := {
"data": _("Data"), "data": "Data",
"cache": _("Cache"), "cache": "Cache",
"config": _("Configuration"), "config": "Configuration",
}.keys() }.keys()
): ):
location = getattr(self, f"{location_name}_location", None) location = getattr(self, f"{location_name}_location", None)
@@ -116,8 +116,8 @@ class Source(Iterable):
except UnresolvableLocationError as error: except UnresolvableLocationError as error:
raise FriendlyError( raise FriendlyError(
# The variables are the type of location (eg. cache) and the source's name (eg. Steam) # The variables are the type of location (eg. cache) and the source's name (eg. Steam)
_("Invalid {} Location for {{}}").format(locations[location_name]), "Invalid {} Location for {{}}".format(locations[location_name]),
_("Pick a new one or disable the source in preferences"), "Pick a new one or disable the source in preferences",
(self.name,), (self.name,),
(self.name,), (self.name,),
) from error ) from error