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.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the cartridges package.
# Copyright (C) YEAR kramo
# This file is distributed under the same license as the Cartridges package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: cartridges\n"
"Project-Id-Version: Cartridges\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"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -407,36 +407,41 @@ msgstr ""
msgid "The developer or publisher (optional)"
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"
msgstr ""
#. As in software
#: src/utils/create_details_window.py:113
#: src/utils/create_details_window.py:114
msgid "program"
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
msgid "C:\\path\\to\\{exe_name}"
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
msgid "C:\\path\\to\\{file_name}"
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
msgid "/path/to/{exe_name}"
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
msgid "/path/to/{file_name}"
msgstr ""
#: src/utils/create_details_window.py:126
#: src/utils/create_details_window.py:131
#, python-brace-format
msgid ""
"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!"
msgstr ""
#: src/utils/create_details_window.py:149
#: src/utils/create_details_window.py:154
msgid "Executable"
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"
msgstr ""
#: src/utils/create_details_window.py:162
#: src/utils/create_details_window.py:167
msgid "Cancel"
msgstr ""
#: src/utils/create_details_window.py:212
#: src/utils/create_details_window.py:222
#: src/utils/create_details_window.py:228
#: src/utils/create_details_window.py:217
#: src/utils/create_details_window.py:227
#: src/utils/create_details_window.py:233
msgid "Couldn't Add Game"
msgstr ""
#: src/utils/create_details_window.py:214
#: src/utils/create_details_window.py:252
#: src/utils/create_details_window.py:260
#: src/utils/create_details_window.py:219
#: src/utils/create_details_window.py:257
#: src/utils/create_details_window.py:265
msgid "Couldn't Apply Preferences"
msgstr ""
#: src/utils/create_details_window.py:222
#: src/utils/create_details_window.py:253
#: src/utils/create_details_window.py:227
#: src/utils/create_details_window.py:258
msgid "Game title cannot be empty."
msgstr ""
#: src/utils/create_details_window.py:228
#: src/utils/create_details_window.py:261
#: src/utils/create_details_window.py:233
#: src/utils/create_details_window.py:266
msgid "Executable cannot be empty."
msgstr ""

View File

@@ -108,17 +108,22 @@ def create_details_window(parent_widget, game_id=None):
css_classes=["flat", "circular"],
)
# Translate this string as you would translate "file"
file_name = _("file.txt")
# As in software
exe_name = _("program")
if os.name == "nt":
exe_name += ".exe"
# Translate this string as you would translate "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}")
command = "start"
else:
# Translate this string as you would translate "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}")
command = "xdg-open"