Fix translations

This commit is contained in:
kramo
2023-07-01 11:30:32 +02:00
parent e7d2f58416
commit 7311015549
2 changed files with 23 additions and 7 deletions

View File

@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Cartridges\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-07-01 11:15+0200\n"
"POT-Creation-Date: 2023-07-01 11:30+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -494,6 +494,22 @@ msgid ""
"An API key is required to use SteamGridDB. You can generate one {}here{}."
msgstr ""
#: src/preferences.py:289
msgid "Cache directory not found"
msgstr ""
#: src/preferences.py:290
msgid "Select the {} cache directory."
msgstr ""
#: src/preferences.py:292
msgid "Installation directory not found"
msgstr ""
#: src/preferences.py:293
msgid "Select the {} installation directory."
msgstr ""
#: src/preferences.py:299
msgid "Set Location"
msgstr ""

View File

@@ -286,15 +286,15 @@ class PreferencesWindow(Adw.PreferencesWindow):
# Bad picked location, inform user
else:
if location_name == "cache":
title = "Cache directory not found"
subtitle_format = "Select the {} cache directory."
title = _("Cache directory not found")
subtitle_format = _("Select the {} cache directory.")
else:
title = "Installation directory not found"
subtitle_format = "Select the {} installation directory."
title = _("Installation directory not found")
subtitle_format = _("Select the {} installation directory.")
dialog = create_dialog(
self,
_(title),
_(subtitle_format).format(source.name),
title,
subtitle_format.format(source.name),
"choose_folder",
_("Set Location"),
)