From 95d47815ab303b529d2be44b1baa69bf14c2ad54 Mon Sep 17 00:00:00 2001 From: kramo <93832451+kra-mo@users.noreply.github.com> Date: Sat, 1 Jul 2023 11:36:45 +0200 Subject: [PATCH] Add translation comments --- po/cartridges.pot | 14 ++++++++------ src/preferences.py | 6 ++++-- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/po/cartridges.pot b/po/cartridges.pot index 914a8ae..a935323 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-07-01 11:35+0200\n" +"POT-Creation-Date: 2023-07-01 11:36+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -494,19 +494,21 @@ msgid "" "An API key is required to use SteamGridDB. You can generate one {}here{}." msgstr "" -#: src/preferences.py:289 src/preferences.py:292 -msgid "Directory not Valid" +#: src/preferences.py:289 src/preferences.py:293 +msgid "Invalid Directory" msgstr "" -#: src/preferences.py:290 +#. The variable is the name of the source +#: src/preferences.py:291 msgid "Select the {} cache directory." msgstr "" -#: src/preferences.py:293 +#. The variable is the name of the source +#: src/preferences.py:295 msgid "Select the {} installation directory." msgstr "" -#: src/preferences.py:299 +#: src/preferences.py:301 msgid "Set Location" msgstr "" diff --git a/src/preferences.py b/src/preferences.py index bc1a79f..0cc31a1 100644 --- a/src/preferences.py +++ b/src/preferences.py @@ -286,10 +286,12 @@ class PreferencesWindow(Adw.PreferencesWindow): # Bad picked location, inform user else: if location_name == "cache": - title = _("Directory not Valid") + title = _("Invalid Directory") + # The variable is the name of the source subtitle_format = _("Select the {} cache directory.") else: - title = _("Directory not Valid") + title = _("Invalid Directory") + # The variable is the name of the source subtitle_format = _("Select the {} installation directory.") dialog = create_dialog( self,