Added comments for translators

This commit is contained in:
kramo
2023-03-26 11:53:37 +02:00
parent a154c76744
commit 7200d45303
2 changed files with 34 additions and 24 deletions

View File

@@ -1,14 +1,14 @@
# SOME DESCRIPTIVE TITLE. # SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # Copyright (C) YEAR kramo
# This file is distributed under the same license as the cartridges package. # This file is distributed under the same license as the Cartridges package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
# #
#, fuzzy #, fuzzy
msgid "" 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-03-26 11:04+0200\n" "POT-Creation-Date: 2023-03-26 11:51+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"
@@ -407,36 +407,41 @@ msgstr ""
msgid "The developer or publisher (optional)" msgid "The developer or publisher (optional)"
msgstr "" msgstr ""
#: src/utils/create_details_window.py:111 #. Translate this string as you would translate "file"
#: src/utils/create_details_window.py:112
msgid "file.txt" msgid "file.txt"
msgstr "" msgstr ""
#. As in software #. As in software
#: src/utils/create_details_window.py:113 #: src/utils/create_details_window.py:114
msgid "program" msgid "program"
msgstr "" msgstr ""
#: src/utils/create_details_window.py:117 #. Translate this string as you would translate "path to {exe_name}"
#: src/utils/create_details_window.py:119
#, python-brace-format #, python-brace-format
msgid "C:\\path\\to\\{exe_name}" msgid "C:\\path\\to\\{exe_name}"
msgstr "" msgstr ""
#: src/utils/create_details_window.py:118 #. Translate this string as you would translate "path to {file_name}"
#: src/utils/create_details_window.py:121
#, python-brace-format #, python-brace-format
msgid "C:\\path\\to\\{file_name}" msgid "C:\\path\\to\\{file_name}"
msgstr "" msgstr ""
#: src/utils/create_details_window.py:121 #. Translate this string as you would translate "path to {exe_name}"
#: src/utils/create_details_window.py:125
#, python-brace-format #, python-brace-format
msgid "/path/to/{exe_name}" msgid "/path/to/{exe_name}"
msgstr "" msgstr ""
#: src/utils/create_details_window.py:122 #. Translate this string as you would translate "path to {file_name}"
#: src/utils/create_details_window.py:127
#, python-brace-format #, python-brace-format
msgid "/path/to/{file_name}" msgid "/path/to/{file_name}"
msgstr "" msgstr ""
#: src/utils/create_details_window.py:126 #: src/utils/create_details_window.py:131
#, python-brace-format #, python-brace-format
msgid "" msgid ""
"To launch the executable \"{exe_name}\", use the command:\n" "To launch the executable \"{exe_name}\", use the command:\n"
@@ -450,37 +455,37 @@ msgid ""
"If the path contains spaces, make sure to wrap it in double quotes!" "If the path contains spaces, make sure to wrap it in double quotes!"
msgstr "" msgstr ""
#: src/utils/create_details_window.py:149 #: src/utils/create_details_window.py:154
msgid "Executable" msgid "Executable"
msgstr "" msgstr ""
#: src/utils/create_details_window.py:150 #: src/utils/create_details_window.py:155
msgid "File to open or command to run when launching the game" msgid "File to open or command to run when launching the game"
msgstr "" msgstr ""
#: src/utils/create_details_window.py:162 #: src/utils/create_details_window.py:167
msgid "Cancel" msgid "Cancel"
msgstr "" msgstr ""
#: src/utils/create_details_window.py:212 #: src/utils/create_details_window.py:217
#: src/utils/create_details_window.py:222 #: src/utils/create_details_window.py:227
#: src/utils/create_details_window.py:228 #: src/utils/create_details_window.py:233
msgid "Couldn't Add Game" msgid "Couldn't Add Game"
msgstr "" msgstr ""
#: src/utils/create_details_window.py:214 #: src/utils/create_details_window.py:219
#: src/utils/create_details_window.py:252 #: src/utils/create_details_window.py:257
#: src/utils/create_details_window.py:260 #: src/utils/create_details_window.py:265
msgid "Couldn't Apply Preferences" msgid "Couldn't Apply Preferences"
msgstr "" msgstr ""
#: src/utils/create_details_window.py:222 #: src/utils/create_details_window.py:227
#: src/utils/create_details_window.py:253 #: src/utils/create_details_window.py:258
msgid "Game title cannot be empty." msgid "Game title cannot be empty."
msgstr "" msgstr ""
#: src/utils/create_details_window.py:228 #: src/utils/create_details_window.py:233
#: src/utils/create_details_window.py:261 #: src/utils/create_details_window.py:266
msgid "Executable cannot be empty." msgid "Executable cannot be empty."
msgstr "" msgstr ""

View File

@@ -108,17 +108,22 @@ def create_details_window(parent_widget, game_id=None):
css_classes=["flat", "circular"], css_classes=["flat", "circular"],
) )
# Translate this string as you would translate "file"
file_name = _("file.txt") file_name = _("file.txt")
# As in software # As in software
exe_name = _("program") exe_name = _("program")
if os.name == "nt": if os.name == "nt":
exe_name += ".exe" exe_name += ".exe"
# Translate this string as you would translate "path to {exe_name}"
exe_path = _(f"C:\\path\\to\\{exe_name}") exe_path = _(f"C:\\path\\to\\{exe_name}")
# Translate this string as you would translate "path to {file_name}"
file_path = _(f"C:\\path\\to\\{file_name}") file_path = _(f"C:\\path\\to\\{file_name}")
command = "start" command = "start"
else: else:
# Translate this string as you would translate "path to {exe_name}"
exe_path = _(f"/path/to/{exe_name}") exe_path = _(f"/path/to/{exe_name}")
# Translate this string as you would translate "path to {file_name}"
file_path = _(f"/path/to/{file_name}") file_path = _(f"/path/to/{file_name}")
command = "xdg-open" command = "xdg-open"