From cad5c3fd3654a0691b0567f6152bc1e05ff0b39f Mon Sep 17 00:00:00 2001 From: kramo <93832451+kra-mo@users.noreply.github.com> Date: Sun, 19 Mar 2023 12:42:00 +0100 Subject: [PATCH] Update translations --- po/cartridges.pot | 199 ++++++++++++++++----------- po/fr.po | 207 +++++++++++++++++++---------- po/hu.po | 207 +++++++++++++++++++---------- po/nb_NO.po | 203 ++++++++++++++++++---------- po/ta.po | 207 +++++++++++++++++++---------- po/uk.po | 207 +++++++++++++++++++---------- src/main.py | 8 +- src/utils/bottles_parser.py | 7 +- src/utils/create_details_window.py | 20 ++- src/utils/heroic_parser.py | 7 +- src/utils/steam_parser.py | 7 +- src/window.py | 13 +- 12 files changed, 846 insertions(+), 446 deletions(-) diff --git a/po/cartridges.pot b/po/cartridges.pot index b4caf86..c709ebc 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-03-15 21:17+0100\n" +"POT-Creation-Date: 2023-03-19 12:40+0100\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:29 -#: src/main.py:112 +#: src/main.py:116 msgid "Cartridges" msgstr "" @@ -42,9 +42,8 @@ msgid "" "hiding and sorting by date added or last played." msgstr "" -#: data/gtk/window.blp:6 data/gtk/window.blp:14 src/utils/bottles_parser.py:132 -#: src/utils/heroic_parser.py:226 src/utils/steam_parser.py:162 -#: src/utils/steam_parser.py:218 +#: data/gtk/window.blp:6 data/gtk/window.blp:14 src/utils/bottles_parser.py:142 +#: src/utils/heroic_parser.py:241 src/utils/steam_parser.py:157 msgid "No Games Found" msgstr "" @@ -140,21 +139,21 @@ msgstr "" msgid "Bottles" msgstr "" -#: data/gtk/window.blp:403 data/gtk/window.blp:422 data/gtk/game.blp:87 +#: data/gtk/window.blp:404 data/gtk/window.blp:423 data/gtk/game.blp:87 #: data/gtk/game.blp:106 msgid "Edit" msgstr "" -#: data/gtk/window.blp:408 data/gtk/game.blp:92 +#: data/gtk/window.blp:409 data/gtk/game.blp:92 msgid "Hide" msgstr "" -#: data/gtk/window.blp:413 data/gtk/window.blp:432 data/gtk/game.blp:97 +#: data/gtk/window.blp:414 data/gtk/window.blp:433 data/gtk/game.blp:97 #: data/gtk/game.blp:116 msgid "Remove" msgstr "" -#: data/gtk/window.blp:427 data/gtk/game.blp:111 +#: data/gtk/window.blp:428 data/gtk/game.blp:111 msgid "Unhide" msgstr "" @@ -249,74 +248,73 @@ msgstr "" msgid "Bottles Install Location" msgstr "" -#. Translators: Replace this with your name for it to show up in the about window. -#: src/main.py:126 +#. Translators: Replace this with your name for it to show up in the about window +#: src/main.py:130 msgid "translator_credits" msgstr "" -#. Create toast for undoing the remove action -#: src/main.py:190 -msgid "removed" +#. The variable is the title of the game +#: src/main.py:194 +#, python-brace-format +msgid "{self.win.games[game_id].name} removed" msgstr "" -#: src/main.py:191 +#: src/main.py:195 msgid "Undo" msgstr "" -#: src/window.py:225 +#: src/window.py:229 msgid "Today" msgstr "" -#: src/window.py:227 +#: src/window.py:231 msgid "Yesterday" msgstr "" -#: src/window.py:259 -msgid "Added:" -msgstr "" - -#: src/window.py:262 -msgid "Last played:" -msgstr "" - +#. The variable is the date when the game was added #: src/window.py:264 -msgid "Last played: Never" +msgid "Added: {self.get_time(current_game.added)}" msgstr "" -#: src/utils/bottles_parser.py:70 src/utils/heroic_parser.py:72 -#: src/utils/steam_parser.py:69 +#: src/window.py:269 +msgid "Never" +msgstr "" + +#. The variable is the date when the game was last played +#: src/window.py:273 +#, python-brace-format +msgid "Last played: {last_played_date}" +msgstr "" + +#: src/utils/bottles_parser.py:80 src/utils/heroic_parser.py:87 +#: src/utils/steam_parser.py:229 msgid "Couldn't Import Games" msgstr "" -#: src/utils/bottles_parser.py:71 +#: src/utils/bottles_parser.py:81 msgid "The Bottles directory cannot be found." msgstr "" -#: src/utils/bottles_parser.py:73 +#: src/utils/bottles_parser.py:83 msgid "Set Bottles Location" msgstr "" -#: src/utils/bottles_parser.py:133 +#: src/utils/bottles_parser.py:143 msgid "No new games were found in the Bottles library." msgstr "" -#: src/utils/bottles_parser.py:138 src/utils/bottles_parser.py:144 +#: src/utils/bottles_parser.py:148 src/utils/bottles_parser.py:154 msgid "Bottles Games Imported" msgstr "" -#: src/utils/bottles_parser.py:139 src/utils/heroic_parser.py:233 -#: src/utils/steam_parser.py:169 +#: src/utils/bottles_parser.py:149 src/utils/heroic_parser.py:248 +#: src/utils/steam_parser.py:164 msgid "Successfully imported 1 game." msgstr "" -#: src/utils/bottles_parser.py:145 src/utils/heroic_parser.py:239 -#: src/utils/steam_parser.py:175 -msgid "Successfully imported" -msgstr "" - -#: src/utils/bottles_parser.py:149 src/utils/heroic_parser.py:243 -#: src/utils/steam_parser.py:179 -msgid "games." +#. The variable is the number of games +#: src/utils/bottles_parser.py:156 +msgid "Successfully imported {str(len(bottles_games))} games." msgstr "" #: src/utils/create_details_window.py:41 @@ -351,35 +349,78 @@ msgstr "" msgid "The developer or publisher (optional)" msgstr "" -#: src/utils/create_details_window.py:106 -msgid "Executable" +#: src/utils/create_details_window.py:111 +msgid "file.txt" msgstr "" -#: src/utils/create_details_window.py:107 -msgid "File to open or command to run when launching the game" +#. As in software +#: src/utils/create_details_window.py:113 +msgid "program" msgstr "" #: src/utils/create_details_window.py:117 +#, python-brace-format +msgid "C:\\path\\to\\{exe_name}" +msgstr "" + +#: src/utils/create_details_window.py:118 +#, python-brace-format +msgid "C:\\path\\to\\{file_name}" +msgstr "" + +#: src/utils/create_details_window.py:121 +#, python-brace-format +msgid "/path/to/{exe_name}" +msgstr "" + +#: src/utils/create_details_window.py:122 +#, python-brace-format +msgid "/path/to/{file_name}" +msgstr "" + +#: src/utils/create_details_window.py:126 +#, python-brace-format +msgid "" +"To launch the executable \"{exe_name}\", use the command:\n" +"\n" +"\"{exe_path}\"\n" +"\n" +"To open the file \"{file_name}\" with the default application, use:\n" +"\n" +"{command} \"{file_path}\"\n" +"\n" +"If the path contains spaces, make sure to wrap it in double quotes!" +msgstr "" + +#: src/utils/create_details_window.py:149 +msgid "Executable" +msgstr "" + +#: src/utils/create_details_window.py:150 +msgid "File to open or command to run when launching the game" +msgstr "" + +#: src/utils/create_details_window.py:162 msgid "Cancel" msgstr "" -#: src/utils/create_details_window.py:163 -#: src/utils/create_details_window.py:169 +#: src/utils/create_details_window.py:208 +#: src/utils/create_details_window.py:214 msgid "Couldn't Add Game" msgstr "" -#: src/utils/create_details_window.py:163 -#: src/utils/create_details_window.py:194 +#: src/utils/create_details_window.py:208 +#: src/utils/create_details_window.py:239 msgid "Game title cannot be empty." msgstr "" -#: src/utils/create_details_window.py:169 -#: src/utils/create_details_window.py:202 +#: src/utils/create_details_window.py:214 +#: src/utils/create_details_window.py:247 msgid "Executable cannot be empty." msgstr "" -#: src/utils/create_details_window.py:193 -#: src/utils/create_details_window.py:201 +#: src/utils/create_details_window.py:238 +#: src/utils/create_details_window.py:246 msgid "Couldn't Apply Preferences" msgstr "" @@ -387,42 +428,52 @@ msgstr "" msgid "Dismiss" msgstr "" -#: src/utils/heroic_parser.py:73 +#: src/utils/heroic_parser.py:88 msgid "The Heroic directory cannot be found." msgstr "" -#: src/utils/heroic_parser.py:75 +#: src/utils/heroic_parser.py:90 msgid "Set Heroic Location" msgstr "" -#: src/utils/heroic_parser.py:227 +#: src/utils/heroic_parser.py:242 msgid "No new games were found in the Heroic library." msgstr "" -#: src/utils/heroic_parser.py:232 src/utils/heroic_parser.py:238 +#: src/utils/heroic_parser.py:247 src/utils/heroic_parser.py:253 msgid "Heroic Games Imported" msgstr "" -#: src/utils/steam_parser.py:70 -msgid "The Steam directory cannot be found." +#. The variable is the number of games +#: src/utils/heroic_parser.py:255 +msgid "Successfully imported {str(len(heroic_games))} games." msgstr "" -#: src/utils/steam_parser.py:72 -msgid "Set Steam Location" -msgstr "" - -#: src/utils/steam_parser.py:98 -msgid "Importing Games..." -msgstr "" - -#: src/utils/steam_parser.py:99 -msgid "Talking to Steam" -msgstr "" - -#: src/utils/steam_parser.py:163 src/utils/steam_parser.py:219 +#: src/utils/steam_parser.py:158 msgid "No new games were found in the Steam library." msgstr "" -#: src/utils/steam_parser.py:168 src/utils/steam_parser.py:174 +#: src/utils/steam_parser.py:163 src/utils/steam_parser.py:169 msgid "Steam Games Imported" msgstr "" + +#. The variable is the number of games +#: src/utils/steam_parser.py:171 +msgid "Successfully imported {str(games_no)} games." +msgstr "" + +#: src/utils/steam_parser.py:230 +msgid "The Steam directory cannot be found." +msgstr "" + +#: src/utils/steam_parser.py:232 +msgid "Set Steam Location" +msgstr "" + +#: src/utils/steam_parser.py:248 +msgid "Importing Games..." +msgstr "" + +#: src/utils/steam_parser.py:249 +msgid "Talking to Steam" +msgstr "" diff --git a/po/fr.po b/po/fr.po index 6fa412a..d0c1b48 100644 --- a/po/fr.po +++ b/po/fr.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: cartridges\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-03-15 21:17+0100\n" +"POT-Creation-Date: 2023-03-19 12:40+0100\n" "PO-Revision-Date: 2023-03-14 17:59+0000\n" "Last-Translator: kramo \n" "Language-Team: French \"{exe_path}\"\n" +"\n" +"To open the file \"{file_name}\" with the default application, use:\n" +"\n" +"{command} \"{file_path}\"\n" +"\n" +"If the path contains spaces, make sure to wrap it in double quotes!" +msgstr "" + +#: src/utils/create_details_window.py:149 msgid "Executable" msgstr "Exécutable" -#: src/utils/create_details_window.py:107 +#: src/utils/create_details_window.py:150 msgid "File to open or command to run when launching the game" msgstr "Fichier à ouvrir ou commande à exécuter au lancement du jeu" -#: src/utils/create_details_window.py:117 +#: src/utils/create_details_window.py:162 msgid "Cancel" msgstr "Annuler" -#: src/utils/create_details_window.py:163 -#: src/utils/create_details_window.py:169 +#: src/utils/create_details_window.py:208 +#: src/utils/create_details_window.py:214 msgid "Couldn't Add Game" msgstr "Impossible d'ajouter un jeu" -#: src/utils/create_details_window.py:163 -#: src/utils/create_details_window.py:194 +#: src/utils/create_details_window.py:208 +#: src/utils/create_details_window.py:239 msgid "Game title cannot be empty." msgstr "Le titre du jeu ne peut pas être vide." -#: src/utils/create_details_window.py:169 -#: src/utils/create_details_window.py:202 +#: src/utils/create_details_window.py:214 +#: src/utils/create_details_window.py:247 msgid "Executable cannot be empty." msgstr "L'exécutable ne peut pas être vide." -#: src/utils/create_details_window.py:193 -#: src/utils/create_details_window.py:201 +#: src/utils/create_details_window.py:238 +#: src/utils/create_details_window.py:246 msgid "Couldn't Apply Preferences" msgstr "Impossible d'appliquer les préférences" @@ -393,43 +435,70 @@ msgstr "Impossible d'appliquer les préférences" msgid "Dismiss" msgstr "Rejeter" -#: src/utils/heroic_parser.py:73 +#: src/utils/heroic_parser.py:88 msgid "The Heroic directory cannot be found." msgstr "Le répertoire Heroic est introuvable." -#: src/utils/heroic_parser.py:75 +#: src/utils/heroic_parser.py:90 msgid "Set Heroic Location" msgstr "Définir l'emplacement Heroic" -#: src/utils/heroic_parser.py:227 +#: src/utils/heroic_parser.py:242 msgid "No new games were found in the Heroic library." msgstr "Aucun nouveau jeu n'a été trouvé dans la bibliothèque Heroic." -#: src/utils/heroic_parser.py:232 src/utils/heroic_parser.py:238 +#: src/utils/heroic_parser.py:247 src/utils/heroic_parser.py:253 msgid "Heroic Games Imported" msgstr "Jeux Heroic importés" -#: src/utils/steam_parser.py:70 +#. The variable is the number of games +#: src/utils/heroic_parser.py:255 +#, fuzzy +msgid "Successfully imported {str(len(heroic_games))} games." +msgstr "Importation réussie de 1 jeu." + +#: src/utils/steam_parser.py:158 +msgid "No new games were found in the Steam library." +msgstr "Aucun nouveau jeu n'a été trouvé dans la bibliothèque Steam." + +#: src/utils/steam_parser.py:163 src/utils/steam_parser.py:169 +msgid "Steam Games Imported" +msgstr "Jeux Steam importés" + +#. The variable is the number of games +#: src/utils/steam_parser.py:171 +#, fuzzy +msgid "Successfully imported {str(games_no)} games." +msgstr "Importation réussie de 1 jeu." + +#: src/utils/steam_parser.py:230 msgid "The Steam directory cannot be found." msgstr "Le répertoire Steam est introuvable." -#: src/utils/steam_parser.py:72 +#: src/utils/steam_parser.py:232 msgid "Set Steam Location" msgstr "Définir l'emplacement Steam" -#: src/utils/steam_parser.py:98 +#: src/utils/steam_parser.py:248 #, fuzzy msgid "Importing Games..." msgstr "Importer Epic Games" -#: src/utils/steam_parser.py:99 +#: src/utils/steam_parser.py:249 msgid "Talking to Steam" msgstr "" -#: src/utils/steam_parser.py:163 src/utils/steam_parser.py:219 -msgid "No new games were found in the Steam library." -msgstr "Aucun nouveau jeu n'a été trouvé dans la bibliothèque Steam." +#~ msgid "removed" +#~ msgstr "retiré" -#: src/utils/steam_parser.py:168 src/utils/steam_parser.py:174 -msgid "Steam Games Imported" -msgstr "Jeux Steam importés" +#~ msgid "Added:" +#~ msgstr "Ajouté :" + +#~ msgid "Last played:" +#~ msgstr "Dernière session :" + +#~ msgid "Successfully imported" +#~ msgstr "Importation réussie" + +#~ msgid "games." +#~ msgstr "jeux." diff --git a/po/hu.po b/po/hu.po index da0b705..3924097 100644 --- a/po/hu.po +++ b/po/hu.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-03-15 21:17+0100\n" +"POT-Creation-Date: 2023-03-19 12:40+0100\n" "PO-Revision-Date: 2023-03-14 17:59+0000\n" "Last-Translator: kramo \n" "Language-Team: Hungarian \"{exe_path}\"\n" +"\n" +"To open the file \"{file_name}\" with the default application, use:\n" +"\n" +"{command} \"{file_path}\"\n" +"\n" +"If the path contains spaces, make sure to wrap it in double quotes!" +msgstr "" + +#: src/utils/create_details_window.py:149 msgid "Executable" msgstr "Program" -#: src/utils/create_details_window.py:107 +#: src/utils/create_details_window.py:150 msgid "File to open or command to run when launching the game" msgstr "Fájl megnyitása vagy parancs futtatása a játék indításakor" -#: src/utils/create_details_window.py:117 +#: src/utils/create_details_window.py:162 msgid "Cancel" msgstr "Mégse" -#: src/utils/create_details_window.py:163 -#: src/utils/create_details_window.py:169 +#: src/utils/create_details_window.py:208 +#: src/utils/create_details_window.py:214 msgid "Couldn't Add Game" msgstr "Nem Lehet Hozzáadni a Játékot" -#: src/utils/create_details_window.py:163 -#: src/utils/create_details_window.py:194 +#: src/utils/create_details_window.py:208 +#: src/utils/create_details_window.py:239 msgid "Game title cannot be empty." msgstr "A cím nem lehet üres." -#: src/utils/create_details_window.py:169 -#: src/utils/create_details_window.py:202 +#: src/utils/create_details_window.py:214 +#: src/utils/create_details_window.py:247 msgid "Executable cannot be empty." msgstr "A program nem lehet üres." -#: src/utils/create_details_window.py:193 -#: src/utils/create_details_window.py:201 +#: src/utils/create_details_window.py:238 +#: src/utils/create_details_window.py:246 msgid "Couldn't Apply Preferences" msgstr "Nem Lehet Menteni a Beállításokat" @@ -392,46 +434,73 @@ msgstr "Nem Lehet Menteni a Beállításokat" msgid "Dismiss" msgstr "Rendben" -#: src/utils/heroic_parser.py:73 +#: src/utils/heroic_parser.py:88 msgid "The Heroic directory cannot be found." msgstr "A Heroic mappa nem található." -#: src/utils/heroic_parser.py:75 +#: src/utils/heroic_parser.py:90 msgid "Set Heroic Location" msgstr "Heroic Mappa Kiválasztása" -#: src/utils/heroic_parser.py:227 +#: src/utils/heroic_parser.py:242 msgid "No new games were found in the Heroic library." msgstr "Nem találhatók új játékok a Heroic könyvtárban." -#: src/utils/heroic_parser.py:232 src/utils/heroic_parser.py:238 +#: src/utils/heroic_parser.py:247 src/utils/heroic_parser.py:253 msgid "Heroic Games Imported" msgstr "Heroic Játékok Importálva" -#: src/utils/steam_parser.py:70 +#. The variable is the number of games +#: src/utils/heroic_parser.py:255 +#, fuzzy +msgid "Successfully imported {str(len(heroic_games))} games." +msgstr "1 játék sikeresen importálva." + +#: src/utils/steam_parser.py:158 +msgid "No new games were found in the Steam library." +msgstr "Nem találhatók új játékok a Steam könyvtárban." + +#: src/utils/steam_parser.py:163 src/utils/steam_parser.py:169 +msgid "Steam Games Imported" +msgstr "Steam Játékok Importálva" + +#. The variable is the number of games +#: src/utils/steam_parser.py:171 +#, fuzzy +msgid "Successfully imported {str(games_no)} games." +msgstr "1 játék sikeresen importálva." + +#: src/utils/steam_parser.py:230 msgid "The Steam directory cannot be found." msgstr "A Steam mappa nem található." -#: src/utils/steam_parser.py:72 +#: src/utils/steam_parser.py:232 msgid "Set Steam Location" msgstr "Steam Mappa Kiválasztása" -#: src/utils/steam_parser.py:98 +#: src/utils/steam_parser.py:248 #, fuzzy msgid "Importing Games..." msgstr "Epic Games Játékok Importálása" -#: src/utils/steam_parser.py:99 +#: src/utils/steam_parser.py:249 msgid "Talking to Steam" msgstr "" -#: src/utils/steam_parser.py:163 src/utils/steam_parser.py:219 -msgid "No new games were found in the Steam library." -msgstr "Nem találhatók új játékok a Steam könyvtárban." +#~ msgid "removed" +#~ msgstr "eltávolítva" -#: src/utils/steam_parser.py:168 src/utils/steam_parser.py:174 -msgid "Steam Games Imported" -msgstr "Steam Játékok Importálva" +#~ msgid "Added:" +#~ msgstr "Hozzáadva:" + +#~ msgid "Last played:" +#~ msgstr "Legutóbb játszva:" + +#~ msgid "Successfully imported" +#~ msgstr "Sikeresen importálva" + +#~ msgid "games." +#~ msgstr "játék." #~ msgid "kramo" #~ msgstr "kramo" diff --git a/po/nb_NO.po b/po/nb_NO.po index dbb21b8..0f204b7 100644 --- a/po/nb_NO.po +++ b/po/nb_NO.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: cartridges\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-03-15 21:17+0100\n" +"POT-Creation-Date: 2023-03-19 12:40+0100\n" "PO-Revision-Date: 2023-03-14 17:59+0000\n" "Last-Translator: kramo \n" "Language-Team: Norwegian Bokmål \"{exe_path}\"\n" +"\n" +"To open the file \"{file_name}\" with the default application, use:\n" +"\n" +"{command} \"{file_path}\"\n" +"\n" +"If the path contains spaces, make sure to wrap it in double quotes!" +msgstr "" + +#: src/utils/create_details_window.py:149 +msgid "Executable" +msgstr "Kjørbar" + +#: src/utils/create_details_window.py:150 +msgid "File to open or command to run when launching the game" +msgstr "" + +#: src/utils/create_details_window.py:162 msgid "Cancel" msgstr "Avbryt" -#: src/utils/create_details_window.py:163 -#: src/utils/create_details_window.py:169 +#: src/utils/create_details_window.py:208 +#: src/utils/create_details_window.py:214 msgid "Couldn't Add Game" msgstr "Kunne ikke legge til spill" -#: src/utils/create_details_window.py:163 -#: src/utils/create_details_window.py:194 +#: src/utils/create_details_window.py:208 +#: src/utils/create_details_window.py:239 msgid "Game title cannot be empty." msgstr "" -#: src/utils/create_details_window.py:169 -#: src/utils/create_details_window.py:202 +#: src/utils/create_details_window.py:214 +#: src/utils/create_details_window.py:247 msgid "Executable cannot be empty." msgstr "" -#: src/utils/create_details_window.py:193 -#: src/utils/create_details_window.py:201 +#: src/utils/create_details_window.py:238 +#: src/utils/create_details_window.py:246 msgid "Couldn't Apply Preferences" msgstr "" @@ -393,43 +434,65 @@ msgstr "" msgid "Dismiss" msgstr "" -#: src/utils/heroic_parser.py:73 +#: src/utils/heroic_parser.py:88 msgid "The Heroic directory cannot be found." msgstr "" -#: src/utils/heroic_parser.py:75 +#: src/utils/heroic_parser.py:90 msgid "Set Heroic Location" msgstr "" -#: src/utils/heroic_parser.py:227 +#: src/utils/heroic_parser.py:242 msgid "No new games were found in the Heroic library." msgstr "" -#: src/utils/heroic_parser.py:232 src/utils/heroic_parser.py:238 +#: src/utils/heroic_parser.py:247 src/utils/heroic_parser.py:253 msgid "Heroic Games Imported" msgstr "Heroic-spill importert" -#: src/utils/steam_parser.py:70 +#. The variable is the number of games +#: src/utils/heroic_parser.py:255 +msgid "Successfully imported {str(len(heroic_games))} games." +msgstr "" + +#: src/utils/steam_parser.py:158 +msgid "No new games were found in the Steam library." +msgstr "" + +#: src/utils/steam_parser.py:163 src/utils/steam_parser.py:169 +msgid "Steam Games Imported" +msgstr "" + +#. The variable is the number of games +#: src/utils/steam_parser.py:171 +msgid "Successfully imported {str(games_no)} games." +msgstr "" + +#: src/utils/steam_parser.py:230 msgid "The Steam directory cannot be found." msgstr "" -#: src/utils/steam_parser.py:72 +#: src/utils/steam_parser.py:232 msgid "Set Steam Location" msgstr "" -#: src/utils/steam_parser.py:98 +#: src/utils/steam_parser.py:248 #, fuzzy msgid "Importing Games..." msgstr "Kunne ikke importere spill" -#: src/utils/steam_parser.py:99 +#: src/utils/steam_parser.py:249 msgid "Talking to Steam" msgstr "" -#: src/utils/steam_parser.py:163 src/utils/steam_parser.py:219 -msgid "No new games were found in the Steam library." -msgstr "" +#~ msgid "removed" +#~ msgstr "fjernet" -#: src/utils/steam_parser.py:168 src/utils/steam_parser.py:174 -msgid "Steam Games Imported" -msgstr "" +#~ msgid "Added:" +#~ msgstr "Tillagt:" + +#~ msgid "Last played:" +#~ msgstr "Sist spilt:" + +#~ msgid "games." +#~ msgstr "spill." diff --git a/po/ta.po b/po/ta.po index 6d89439..94b5347 100644 --- a/po/ta.po +++ b/po/ta.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-03-15 21:17+0100\n" +"POT-Creation-Date: 2023-03-19 12:40+0100\n" "PO-Revision-Date: 2023-03-14 17:59+0000\n" "Last-Translator: kramo \n" "Language-Team: Tamil " -#. Create toast for undoing the remove action -#: src/main.py:190 -msgid "removed" -msgstr "அகற்றப்பட்டது" +#. The variable is the title of the game +#: src/main.py:194 +#, python-brace-format +msgid "{self.win.games[game_id].name} removed" +msgstr "" -#: src/main.py:191 +#: src/main.py:195 msgid "Undo" msgstr "செயல்தவிர்" -#: src/window.py:225 +#: src/window.py:229 msgid "Today" msgstr "இன்று" -#: src/window.py:227 +#: src/window.py:231 msgid "Yesterday" msgstr "நேற்று" -#: src/window.py:259 -msgid "Added:" -msgstr "சேர்க்கப்பட்டது:" - -#: src/window.py:262 -msgid "Last played:" -msgstr "கடைசியாக விளையாடியது:" - +#. The variable is the date when the game was added #: src/window.py:264 -msgid "Last played: Never" +msgid "Added: {self.get_time(current_game.added)}" +msgstr "" + +#: src/window.py:269 +msgid "Never" +msgstr "" + +#. The variable is the date when the game was last played +#: src/window.py:273 +#, fuzzy, python-brace-format +msgid "Last played: {last_played_date}" msgstr "கடைசியாக விளையாடியது: ஒருபோதும் இல்லை" -#: src/utils/bottles_parser.py:70 src/utils/heroic_parser.py:72 -#: src/utils/steam_parser.py:69 +#: src/utils/bottles_parser.py:80 src/utils/heroic_parser.py:87 +#: src/utils/steam_parser.py:229 msgid "Couldn't Import Games" msgstr "கேம்களை இறக்குமதி செய்ய முடியவில்லை" -#: src/utils/bottles_parser.py:71 +#: src/utils/bottles_parser.py:81 msgid "The Bottles directory cannot be found." msgstr "பாட்டில்கள் கோப்பகத்தைக் கண்டறிய முடியவில்லை." -#: src/utils/bottles_parser.py:73 +#: src/utils/bottles_parser.py:83 msgid "Set Bottles Location" msgstr "பாட்டில்களின் இடத்தை அமைக்கவும்" -#: src/utils/bottles_parser.py:133 +#: src/utils/bottles_parser.py:143 msgid "No new games were found in the Bottles library." msgstr "பாட்டில்கள் நூலகத்தில் புதிய விளையாட்டுகள் எதுவும் இல்லை." -#: src/utils/bottles_parser.py:138 src/utils/bottles_parser.py:144 +#: src/utils/bottles_parser.py:148 src/utils/bottles_parser.py:154 msgid "Bottles Games Imported" msgstr "பாட்டில் விளையாட்டுகள் இறக்குமதி செய்யப்பட்டன" -#: src/utils/bottles_parser.py:139 src/utils/heroic_parser.py:233 -#: src/utils/steam_parser.py:169 +#: src/utils/bottles_parser.py:149 src/utils/heroic_parser.py:248 +#: src/utils/steam_parser.py:164 msgid "Successfully imported 1 game." msgstr "1 விளையாட்டு வெற்றிகரமாக இறக்குமதி செய்யப்பட்டது." -#: src/utils/bottles_parser.py:145 src/utils/heroic_parser.py:239 -#: src/utils/steam_parser.py:175 -msgid "Successfully imported" -msgstr "வெற்றிகரமாக இறக்குமதி செய்யப்பட்டது" - -#: src/utils/bottles_parser.py:149 src/utils/heroic_parser.py:243 -#: src/utils/steam_parser.py:179 -msgid "games." -msgstr "விளையாட்டுகள்." +#. The variable is the number of games +#: src/utils/bottles_parser.py:156 +#, fuzzy +msgid "Successfully imported {str(len(bottles_games))} games." +msgstr "1 விளையாட்டு வெற்றிகரமாக இறக்குமதி செய்யப்பட்டது." #: src/utils/create_details_window.py:41 msgid "Add New Game" @@ -360,35 +359,78 @@ msgstr "" msgid "The developer or publisher (optional)" msgstr "" -#: src/utils/create_details_window.py:106 +#: src/utils/create_details_window.py:111 +msgid "file.txt" +msgstr "" + +#. As in software +#: src/utils/create_details_window.py:113 +msgid "program" +msgstr "" + +#: src/utils/create_details_window.py:117 +#, python-brace-format +msgid "C:\\path\\to\\{exe_name}" +msgstr "" + +#: src/utils/create_details_window.py:118 +#, python-brace-format +msgid "C:\\path\\to\\{file_name}" +msgstr "" + +#: src/utils/create_details_window.py:121 +#, python-brace-format +msgid "/path/to/{exe_name}" +msgstr "" + +#: src/utils/create_details_window.py:122 +#, python-brace-format +msgid "/path/to/{file_name}" +msgstr "" + +#: src/utils/create_details_window.py:126 +#, python-brace-format +msgid "" +"To launch the executable \"{exe_name}\", use the command:\n" +"\n" +"\"{exe_path}\"\n" +"\n" +"To open the file \"{file_name}\" with the default application, use:\n" +"\n" +"{command} \"{file_path}\"\n" +"\n" +"If the path contains spaces, make sure to wrap it in double quotes!" +msgstr "" + +#: src/utils/create_details_window.py:149 msgid "Executable" msgstr "செயல்படுத்தக்கூடியது" -#: src/utils/create_details_window.py:107 +#: src/utils/create_details_window.py:150 msgid "File to open or command to run when launching the game" msgstr "விளையாட்டைத் தொடங்கும் போது திறக்க கோப்பு அல்லது இயக்க கட்டளை" -#: src/utils/create_details_window.py:117 +#: src/utils/create_details_window.py:162 msgid "Cancel" msgstr "ரத்துசெய்" -#: src/utils/create_details_window.py:163 -#: src/utils/create_details_window.py:169 +#: src/utils/create_details_window.py:208 +#: src/utils/create_details_window.py:214 msgid "Couldn't Add Game" msgstr "விளையாட்டைச் சேர்க்க முடியவில்லை" -#: src/utils/create_details_window.py:163 -#: src/utils/create_details_window.py:194 +#: src/utils/create_details_window.py:208 +#: src/utils/create_details_window.py:239 msgid "Game title cannot be empty." msgstr "விளையாட்டு தலைப்பு காலியாக இருக்கக்கூடாது." -#: src/utils/create_details_window.py:169 -#: src/utils/create_details_window.py:202 +#: src/utils/create_details_window.py:214 +#: src/utils/create_details_window.py:247 msgid "Executable cannot be empty." msgstr "இயங்கக்கூடியது காலியாக இருக்க முடியாது." -#: src/utils/create_details_window.py:193 -#: src/utils/create_details_window.py:201 +#: src/utils/create_details_window.py:238 +#: src/utils/create_details_window.py:246 msgid "Couldn't Apply Preferences" msgstr "விருப்பத்தேர்வுகளைப் பயன்படுத்த முடியவில்லை" @@ -396,46 +438,73 @@ msgstr "விருப்பத்தேர்வுகளைப் பயன msgid "Dismiss" msgstr "நிராகரி" -#: src/utils/heroic_parser.py:73 +#: src/utils/heroic_parser.py:88 msgid "The Heroic directory cannot be found." msgstr "Heroic (ஹீரோயிக்) கோப்பகத்தைக் கண்டுபிடிக்க முடியவில்லை." -#: src/utils/heroic_parser.py:75 +#: src/utils/heroic_parser.py:90 msgid "Set Heroic Location" msgstr "Heroic (ஹீரோயிக்) இருப்பிடத்தை அமைக்கவும்" -#: src/utils/heroic_parser.py:227 +#: src/utils/heroic_parser.py:242 msgid "No new games were found in the Heroic library." msgstr "Heroic (ஹீரோயிக்) நூலகத்தில் புதிய விளையாட்டுகள் எதுவும் இல்லை." -#: src/utils/heroic_parser.py:232 src/utils/heroic_parser.py:238 +#: src/utils/heroic_parser.py:247 src/utils/heroic_parser.py:253 msgid "Heroic Games Imported" msgstr "Heroic (ஹீரோயிக்) விளையாட்டுகள் இறக்குமதி செய்யப்பட்டன" -#: src/utils/steam_parser.py:70 +#. The variable is the number of games +#: src/utils/heroic_parser.py:255 +#, fuzzy +msgid "Successfully imported {str(len(heroic_games))} games." +msgstr "1 விளையாட்டு வெற்றிகரமாக இறக்குமதி செய்யப்பட்டது." + +#: src/utils/steam_parser.py:158 +msgid "No new games were found in the Steam library." +msgstr "Steam (ஸ்டீம்) நூலகத்தில் புதிய விளையாட்டுகள் எதுவும் இல்லை." + +#: src/utils/steam_parser.py:163 src/utils/steam_parser.py:169 +msgid "Steam Games Imported" +msgstr "Steam (ஸ்டீம்) விளையாட்டுகள் இறக்குமதி செய்யப்பட்டன" + +#. The variable is the number of games +#: src/utils/steam_parser.py:171 +#, fuzzy +msgid "Successfully imported {str(games_no)} games." +msgstr "1 விளையாட்டு வெற்றிகரமாக இறக்குமதி செய்யப்பட்டது." + +#: src/utils/steam_parser.py:230 msgid "The Steam directory cannot be found." msgstr "Steam (ஸ்டீம்) கோப்பகத்தைக் கண்டறிய முடியவில்லை." -#: src/utils/steam_parser.py:72 +#: src/utils/steam_parser.py:232 msgid "Set Steam Location" msgstr "Steam (ஸ்டீம் இடத்தை அமைக்கவும்" -#: src/utils/steam_parser.py:98 +#: src/utils/steam_parser.py:248 #, fuzzy msgid "Importing Games..." msgstr "Epic விளையாட்டுகளை இறக்குமதி செய்" -#: src/utils/steam_parser.py:99 +#: src/utils/steam_parser.py:249 msgid "Talking to Steam" msgstr "" -#: src/utils/steam_parser.py:163 src/utils/steam_parser.py:219 -msgid "No new games were found in the Steam library." -msgstr "Steam (ஸ்டீம்) நூலகத்தில் புதிய விளையாட்டுகள் எதுவும் இல்லை." +#~ msgid "removed" +#~ msgstr "அகற்றப்பட்டது" -#: src/utils/steam_parser.py:168 src/utils/steam_parser.py:174 -msgid "Steam Games Imported" -msgstr "Steam (ஸ்டீம்) விளையாட்டுகள் இறக்குமதி செய்யப்பட்டன" +#~ msgid "Added:" +#~ msgstr "சேர்க்கப்பட்டது:" + +#~ msgid "Last played:" +#~ msgstr "கடைசியாக விளையாடியது:" + +#~ msgid "Successfully imported" +#~ msgstr "வெற்றிகரமாக இறக்குமதி செய்யப்பட்டது" + +#~ msgid "games." +#~ msgstr "விளையாட்டுகள்." #~ msgid "kramo" #~ msgstr "கிராமோ" diff --git a/po/uk.po b/po/uk.po index e0aec10..7f673a0 100644 --- a/po/uk.po +++ b/po/uk.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: cartridges\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-03-15 21:17+0100\n" +"POT-Creation-Date: 2023-03-19 12:40+0100\n" "PO-Revision-Date: 2023-03-14 17:59+0000\n" "Last-Translator: kramo \n" "Language-Team: Ukrainian \"{exe_path}\"\n" +"\n" +"To open the file \"{file_name}\" with the default application, use:\n" +"\n" +"{command} \"{file_path}\"\n" +"\n" +"If the path contains spaces, make sure to wrap it in double quotes!" +msgstr "" + +#: src/utils/create_details_window.py:149 msgid "Executable" msgstr "Виконуваний" -#: src/utils/create_details_window.py:107 +#: src/utils/create_details_window.py:150 msgid "File to open or command to run when launching the game" msgstr "Файл для відкриття або команда для запуску під час запуску гри" -#: src/utils/create_details_window.py:117 +#: src/utils/create_details_window.py:162 msgid "Cancel" msgstr "Скасувати" -#: src/utils/create_details_window.py:163 -#: src/utils/create_details_window.py:169 +#: src/utils/create_details_window.py:208 +#: src/utils/create_details_window.py:214 msgid "Couldn't Add Game" msgstr "Не вдалося додати гру" -#: src/utils/create_details_window.py:163 -#: src/utils/create_details_window.py:194 +#: src/utils/create_details_window.py:208 +#: src/utils/create_details_window.py:239 msgid "Game title cannot be empty." msgstr "Назва гри не може бути порожньою." -#: src/utils/create_details_window.py:169 -#: src/utils/create_details_window.py:202 +#: src/utils/create_details_window.py:214 +#: src/utils/create_details_window.py:247 msgid "Executable cannot be empty." msgstr "Виконуваний файл не може бути порожнім." -#: src/utils/create_details_window.py:193 -#: src/utils/create_details_window.py:201 +#: src/utils/create_details_window.py:238 +#: src/utils/create_details_window.py:246 msgid "Couldn't Apply Preferences" msgstr "Не вдалося застосувати параметри" @@ -392,43 +434,70 @@ msgstr "Не вдалося застосувати параметри" msgid "Dismiss" msgstr "Відхилити" -#: src/utils/heroic_parser.py:73 +#: src/utils/heroic_parser.py:88 msgid "The Heroic directory cannot be found." msgstr "Не вдається знайти каталог Heroic." -#: src/utils/heroic_parser.py:75 +#: src/utils/heroic_parser.py:90 msgid "Set Heroic Location" msgstr "Встановіть розташування Heroic" -#: src/utils/heroic_parser.py:227 +#: src/utils/heroic_parser.py:242 msgid "No new games were found in the Heroic library." msgstr "У бібліотеці Heroic нових ігор не знайдено." -#: src/utils/heroic_parser.py:232 src/utils/heroic_parser.py:238 +#: src/utils/heroic_parser.py:247 src/utils/heroic_parser.py:253 msgid "Heroic Games Imported" msgstr "Ігри Heroic імпортовано" -#: src/utils/steam_parser.py:70 +#. The variable is the number of games +#: src/utils/heroic_parser.py:255 +#, fuzzy +msgid "Successfully imported {str(len(heroic_games))} games." +msgstr "Успішно імпортовано 1 гру." + +#: src/utils/steam_parser.py:158 +msgid "No new games were found in the Steam library." +msgstr "У бібліотеці Steam не знайдено жодної нової гри." + +#: src/utils/steam_parser.py:163 src/utils/steam_parser.py:169 +msgid "Steam Games Imported" +msgstr "Ігри Steam імпортовано" + +#. The variable is the number of games +#: src/utils/steam_parser.py:171 +#, fuzzy +msgid "Successfully imported {str(games_no)} games." +msgstr "Успішно імпортовано 1 гру." + +#: src/utils/steam_parser.py:230 msgid "The Steam directory cannot be found." msgstr "Каталог Steam знайти неможливо." -#: src/utils/steam_parser.py:72 +#: src/utils/steam_parser.py:232 msgid "Set Steam Location" msgstr "Встановіть розташування Steam" -#: src/utils/steam_parser.py:98 +#: src/utils/steam_parser.py:248 #, fuzzy msgid "Importing Games..." msgstr "Імпорт Epic Games" -#: src/utils/steam_parser.py:99 +#: src/utils/steam_parser.py:249 msgid "Talking to Steam" msgstr "" -#: src/utils/steam_parser.py:163 src/utils/steam_parser.py:219 -msgid "No new games were found in the Steam library." -msgstr "У бібліотеці Steam не знайдено жодної нової гри." +#~ msgid "removed" +#~ msgstr "видалено" -#: src/utils/steam_parser.py:168 src/utils/steam_parser.py:174 -msgid "Steam Games Imported" -msgstr "Ігри Steam імпортовано" +#~ msgid "Added:" +#~ msgstr "Додано:" + +#~ msgid "Last played:" +#~ msgstr "Остання гра:" + +#~ msgid "Successfully imported" +#~ msgstr "Успішно імпортовано" + +#~ msgid "games." +#~ msgstr "ігри." diff --git a/src/main.py b/src/main.py index e8db59e..51709d7 100644 --- a/src/main.py +++ b/src/main.py @@ -126,7 +126,7 @@ class CartridgesApplication(Adw.Application): license_type=Gtk.License.GPL_3_0, issue_url="https://github.com/kra-mo/cartridges/issues/new", website="https://github.com/kra-mo/cartridges", - # Translators: Replace this with your name for it to show up in the about window. + # Translators: Replace this with your name for it to show up in the about window translator_credits=_("translator_credits"), ) about.present() @@ -135,7 +135,7 @@ class CartridgesApplication(Adw.Application): PreferencesWindow(self.win).present() def on_steam_import_action(self, _widget, _callback=None): - # Handle the updating of games inside of the module because the function is async. + # Handle the updating of games inside of the module because the function is async steam_parser(self.win, self.on_steam_import_action) def on_heroic_import_action(self, _widget, _callback=None): @@ -190,8 +190,8 @@ class CartridgesApplication(Adw.Application): if self.win.stack.get_visible_child() == self.win.overview: self.win.on_go_back_action(None, None) - # Create toast for undoing the remove action - toast = Adw.Toast.new(self.win.games[game_id].name + " " + (_("removed"))) + # The variable is the title of the game + toast = Adw.Toast.new(_(f"{self.win.games[game_id].name} removed")) toast.set_button_label(_("Undo")) toast.connect("button-clicked", self.win.on_undo_remove_action, game_id) toast.set_priority(Adw.ToastPriority.HIGH) diff --git a/src/utils/bottles_parser.py b/src/utils/bottles_parser.py index 49f5f33..2d5c332 100644 --- a/src/utils/bottles_parser.py +++ b/src/utils/bottles_parser.py @@ -152,10 +152,7 @@ def bottles_parser(parent_widget, action): create_dialog( parent_widget, _("Bottles Games Imported"), - _("Successfully imported") - + " " - + str(len(bottles_games)) - + " " - + _("games."), + # The variable is the number of games + _(f"Successfully imported {str(len(bottles_games))} games."), ) return bottles_games diff --git a/src/utils/create_details_window.py b/src/utils/create_details_window.py index 81945cb..f3a43a4 100644 --- a/src/utils/create_details_window.py +++ b/src/utils/create_details_window.py @@ -108,12 +108,26 @@ def create_details_window(parent_widget, game_id=None): css_classes=["flat", "circular"], ) - exec_info_text = 'To launch the executable "program", use the command:\n\n"/path/to/program"\n\nTo open the file "file.txt" with the default application, use:\n\nxdg-open "/path/to/file.txt"\n\nIf the path contains spaces, make sure to wrap it in double quotes!' + file_name = _("file.txt") + # As in software + exe_name = _("program") - exec_info_text_win = 'To launch the executable "program.exe", use the command:\n\n"C:\\path\\to\\program.exe"\n\nTo open the file "file.txt" with the default application, use:\n\nstart "C:\\path\\to\\file.txt"\n\nIf the path contains spaces, make sure to wrap it in double quotes!' + if os.name == "nt": + exe_name += ".exe" + exe_path = _(f"C:\\path\\to\\{exe_name}") + file_path = _(f"C:\\path\\to\\{file_name}") + command = "start" + else: + exe_path = _(f"/path/to/{exe_name}") + file_path = _(f"/path/to/{file_name}") + command = "xdg-open" + + exec_info_text = _( + f'To launch the executable "{exe_name}", use the command:\n\n"{exe_path}"\n\nTo open the file "{file_name}" with the default application, use:\n\n{command} "{file_path}"\n\nIf the path contains spaces, make sure to wrap it in double quotes!' + ) exec_info_label = Gtk.Label( - label=exec_info_text_win if os.name == "nt" else exec_info_text, + label=exec_info_text, use_markup=True, wrap=True, max_width_chars=30, diff --git a/src/utils/heroic_parser.py b/src/utils/heroic_parser.py index a0f353b..725149a 100644 --- a/src/utils/heroic_parser.py +++ b/src/utils/heroic_parser.py @@ -251,10 +251,7 @@ def heroic_parser(parent_widget, action): create_dialog( parent_widget, _("Heroic Games Imported"), - _("Successfully imported") - + " " - + str(len(heroic_games)) - + " " - + _("games."), + # The variable is the number of games + _(f"Successfully imported {str(len(heroic_games))} games."), ) return heroic_games diff --git a/src/utils/steam_parser.py b/src/utils/steam_parser.py index 75d8f95..cc474c2 100644 --- a/src/utils/steam_parser.py +++ b/src/utils/steam_parser.py @@ -167,11 +167,8 @@ def get_games_async(parent_widget, appmanifests, steam_dir, import_dialog): create_dialog( parent_widget, _("Steam Games Imported"), - _("Successfully imported") - + " " - + str(games_no) - + " " - + _("games."), + # The variable is the number of games + _(f"Successfully imported {str(games_no)} games."), ) for appmanifest in appmanifests: diff --git a/src/window.py b/src/window.py index 1e84f1f..c6bb379 100644 --- a/src/window.py +++ b/src/window.py @@ -260,12 +260,17 @@ class CartridgesWindow(Adw.ApplicationWindow): self.overview_title.set_label(current_game.name) self.overview_header_bar_title.set_title(current_game.name) self.overview_added.set_label( - _("Added:") + " " + self.get_time(current_game.added) + # The variable is the date when the game was added + _(f"Added: {self.get_time(current_game.added)}") + ) + last_played_date = ( + self.get_time(current_game.last_played) + if current_game.last_played != 0 + else _("Never") ) self.overview_last_played.set_label( - _("Last played:") + " " + self.get_time(current_game.last_played) - if current_game.last_played != 0 - else _("Last played: Never") + # The variable is the date when the game was last played + _(f"Last played: {last_played_date}") ) def a_z_sort(self, child1, child2):