From 450cab9bbfbf6d0d3c54ff58e3d3018ee9936850 Mon Sep 17 00:00:00 2001 From: kramo <93832451+kra-mo@users.noreply.github.com> Date: Mon, 26 Jun 2023 22:22:47 +0200 Subject: [PATCH] Mark to-be-reviewed strings as untranslatable --- po/cartridges.pot | 27 +++------------------------ src/importer/sources/source.py | 10 +++++----- 2 files changed, 8 insertions(+), 29 deletions(-) diff --git a/po/cartridges.pot b/po/cartridges.pot index 734d8a6..d764e43 100644 --- a/po/cartridges.pot +++ b/po/cartridges.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Cartridges\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" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -19,7 +19,7 @@ msgstr "" #: data/hu.kramo.Cartridges.desktop.in:3 #: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:47 -#: src/main.py:146 +#: src/main.py:153 msgid "Cartridges" msgstr "" @@ -375,7 +375,7 @@ msgid "About Cartridges" msgstr "" #. 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" msgstr "" @@ -489,27 +489,6 @@ msgstr "" msgid "Dismiss" 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 msgid "Couldn't Authenticate SteamGridDB" msgstr "" diff --git a/src/importer/sources/source.py b/src/importer/sources/source.py index 9c40d14..71adaab 100644 --- a/src/importer/sources/source.py +++ b/src/importer/sources/source.py @@ -103,9 +103,9 @@ class Source(Iterable): """Get an iterator for the source""" for location_name in ( locations := { - "data": _("Data"), - "cache": _("Cache"), - "config": _("Configuration"), + "data": "Data", + "cache": "Cache", + "config": "Configuration", }.keys() ): location = getattr(self, f"{location_name}_location", None) @@ -116,8 +116,8 @@ class Source(Iterable): except UnresolvableLocationError as error: raise FriendlyError( # The variables are the type of location (eg. cache) and the source's name (eg. Steam) - _("Invalid {} Location for {{}}").format(locations[location_name]), - _("Pick a new one or disable the source in preferences"), + "Invalid {} Location for {{}}".format(locations[location_name]), + "Pick a new one or disable the source in preferences", (self.name,), (self.name,), ) from error