From ba944fdaabda9afdaf0764d5ce2165c2901697c2 Mon Sep 17 00:00:00 2001 From: kramo <93832451+kra-mo@users.noreply.github.com> Date: Sun, 19 Mar 2023 12:53:49 +0100 Subject: [PATCH] Revert to resolve Weblate conflict --- po/cartridges.pot | 193 ++++++++++---------------- po/fr.po | 209 ++++++++++------------------- po/hu.po | 209 ++++++++++------------------- po/nb_NO.po | 201 ++++++++++----------------- po/ta.po | 209 ++++++++++------------------- po/uk.po | 209 ++++++++++------------------- 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 | 9 +- src/window.py | 13 +- 12 files changed, 447 insertions(+), 847 deletions(-) diff --git a/po/cartridges.pot b/po/cartridges.pot index 9dddf51..b4caf86 100644 --- a/po/cartridges.pot +++ b/po/cartridges.pot @@ -8,18 +8,18 @@ msgid "" msgstr "" "Project-Id-Version: cartridges\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-03-19 12:43+0100\n" +"POT-Creation-Date: 2023-03-15 21:17+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" +"Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" #: data/hu.kramo.Cartridges.desktop.in:3 #: data/hu.kramo.Cartridges.metainfo.xml.in:6 data/gtk/window.blp:29 -#: src/main.py:116 +#: src/main.py:112 msgid "Cartridges" msgstr "" @@ -42,8 +42,9 @@ 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:142 -#: src/utils/heroic_parser.py:241 src/utils/steam_parser.py:157 +#: 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 msgid "No Games Found" msgstr "" @@ -139,21 +140,21 @@ msgstr "" msgid "Bottles" msgstr "" -#: data/gtk/window.blp:404 data/gtk/window.blp:423 data/gtk/game.blp:87 +#: data/gtk/window.blp:403 data/gtk/window.blp:422 data/gtk/game.blp:87 #: data/gtk/game.blp:106 msgid "Edit" msgstr "" -#: data/gtk/window.blp:409 data/gtk/game.blp:92 +#: data/gtk/window.blp:408 data/gtk/game.blp:92 msgid "Hide" msgstr "" -#: data/gtk/window.blp:414 data/gtk/window.blp:433 data/gtk/game.blp:97 +#: data/gtk/window.blp:413 data/gtk/window.blp:432 data/gtk/game.blp:97 #: data/gtk/game.blp:116 msgid "Remove" msgstr "" -#: data/gtk/window.blp:428 data/gtk/game.blp:111 +#: data/gtk/window.blp:427 data/gtk/game.blp:111 msgid "Unhide" msgstr "" @@ -248,73 +249,74 @@ msgstr "" msgid "Bottles Install Location" msgstr "" -#. Translators: Replace this with your name for it to show up in the about window -#: src/main.py:130 +#. Translators: Replace this with your name for it to show up in the about window. +#: src/main.py:126 msgid "translator_credits" msgstr "" -#. The variable is the title of the game -#: src/main.py:194 -#, python-brace-format -msgid "{self.win.games[game_id].name} removed" +#. Create toast for undoing the remove action +#: src/main.py:190 +msgid "removed" msgstr "" -#: src/main.py:195 +#: src/main.py:191 msgid "Undo" msgstr "" -#: src/window.py:229 +#: src/window.py:225 msgid "Today" msgstr "" -#: src/window.py:231 +#: src/window.py:227 msgid "Yesterday" msgstr "" -#. The variable is the date when the game was added +#: src/window.py:259 +msgid "Added:" +msgstr "" + +#: src/window.py:262 +msgid "Last played:" +msgstr "" + #: src/window.py:264 -msgid "Added: {self.get_time(current_game.added)}" +msgid "Last played: Never" msgstr "" -#: 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 +#: src/utils/bottles_parser.py:70 src/utils/heroic_parser.py:72 +#: src/utils/steam_parser.py:69 msgid "Couldn't Import Games" msgstr "" -#: src/utils/bottles_parser.py:81 +#: src/utils/bottles_parser.py:71 msgid "The Bottles directory cannot be found." msgstr "" -#: src/utils/bottles_parser.py:83 +#: src/utils/bottles_parser.py:73 msgid "Set Bottles Location" msgstr "" -#: src/utils/bottles_parser.py:143 +#: src/utils/bottles_parser.py:133 msgid "No new games were found in the Bottles library." msgstr "" -#: src/utils/bottles_parser.py:148 src/utils/bottles_parser.py:154 +#: src/utils/bottles_parser.py:138 src/utils/bottles_parser.py:144 msgid "Bottles Games Imported" msgstr "" -#: src/utils/bottles_parser.py:149 src/utils/heroic_parser.py:248 -#: src/utils/steam_parser.py:164 +#: src/utils/bottles_parser.py:139 src/utils/heroic_parser.py:233 +#: src/utils/steam_parser.py:169 msgid "Successfully imported 1 game." msgstr "" -#. The variable is the number of games -#: src/utils/bottles_parser.py:156 -msgid "Successfully imported {str(len(bottles_games))} games." +#: 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 "" #: src/utils/create_details_window.py:41 @@ -349,78 +351,35 @@ msgstr "" msgid "The developer or publisher (optional)" msgstr "" -#: 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 +#: src/utils/create_details_window.py:106 msgid "Executable" msgstr "" -#: src/utils/create_details_window.py:150 +#: src/utils/create_details_window.py:107 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:117 msgid "Cancel" msgstr "" -#: src/utils/create_details_window.py:208 -#: src/utils/create_details_window.py:214 +#: src/utils/create_details_window.py:163 +#: src/utils/create_details_window.py:169 msgid "Couldn't Add Game" msgstr "" -#: src/utils/create_details_window.py:208 -#: src/utils/create_details_window.py:239 +#: src/utils/create_details_window.py:163 +#: src/utils/create_details_window.py:194 msgid "Game title cannot be empty." msgstr "" -#: src/utils/create_details_window.py:214 -#: src/utils/create_details_window.py:247 +#: src/utils/create_details_window.py:169 +#: src/utils/create_details_window.py:202 msgid "Executable cannot be empty." msgstr "" -#: src/utils/create_details_window.py:238 -#: src/utils/create_details_window.py:246 +#: src/utils/create_details_window.py:193 +#: src/utils/create_details_window.py:201 msgid "Couldn't Apply Preferences" msgstr "" @@ -428,52 +387,42 @@ msgstr "" msgid "Dismiss" msgstr "" -#: src/utils/heroic_parser.py:88 +#: src/utils/heroic_parser.py:73 msgid "The Heroic directory cannot be found." msgstr "" -#: src/utils/heroic_parser.py:90 +#: src/utils/heroic_parser.py:75 msgid "Set Heroic Location" msgstr "" -#: src/utils/heroic_parser.py:242 +#: src/utils/heroic_parser.py:227 msgid "No new games were found in the Heroic library." msgstr "" -#: src/utils/heroic_parser.py:247 src/utils/heroic_parser.py:253 +#: src/utils/heroic_parser.py:232 src/utils/heroic_parser.py:238 msgid "Heroic Games Imported" msgstr "" -#. 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 +#: src/utils/steam_parser.py:70 msgid "The Steam directory cannot be found." msgstr "" -#: src/utils/steam_parser.py:232 +#: src/utils/steam_parser.py:72 msgid "Set Steam Location" msgstr "" -#: src/utils/steam_parser.py:248 -msgid "Importing Games…" +#: src/utils/steam_parser.py:98 +msgid "Importing Games..." msgstr "" -#: src/utils/steam_parser.py:249 +#: src/utils/steam_parser.py:99 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 "" + +#: src/utils/steam_parser.py:168 src/utils/steam_parser.py:174 +msgid "Steam Games Imported" +msgstr "" diff --git a/po/fr.po b/po/fr.po index b53c058..6fa412a 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-19 12:43+0100\n" +"POT-Creation-Date: 2023-03-15 21:17+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 +#: src/utils/create_details_window.py:106 msgid "Executable" msgstr "Exécutable" -#: src/utils/create_details_window.py:150 +#: src/utils/create_details_window.py:107 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:162 +#: src/utils/create_details_window.py:117 msgid "Cancel" msgstr "Annuler" -#: src/utils/create_details_window.py:208 -#: src/utils/create_details_window.py:214 +#: src/utils/create_details_window.py:163 +#: src/utils/create_details_window.py:169 msgid "Couldn't Add Game" msgstr "Impossible d'ajouter un jeu" -#: src/utils/create_details_window.py:208 -#: src/utils/create_details_window.py:239 +#: src/utils/create_details_window.py:163 +#: src/utils/create_details_window.py:194 msgid "Game title cannot be empty." msgstr "Le titre du jeu ne peut pas être vide." -#: src/utils/create_details_window.py:214 -#: src/utils/create_details_window.py:247 +#: src/utils/create_details_window.py:169 +#: src/utils/create_details_window.py:202 msgid "Executable cannot be empty." msgstr "L'exécutable ne peut pas être vide." -#: src/utils/create_details_window.py:238 -#: src/utils/create_details_window.py:246 +#: src/utils/create_details_window.py:193 +#: src/utils/create_details_window.py:201 msgid "Couldn't Apply Preferences" msgstr "Impossible d'appliquer les préférences" @@ -435,70 +393,43 @@ msgstr "Impossible d'appliquer les préférences" msgid "Dismiss" msgstr "Rejeter" -#: src/utils/heroic_parser.py:88 +#: src/utils/heroic_parser.py:73 msgid "The Heroic directory cannot be found." msgstr "Le répertoire Heroic est introuvable." -#: src/utils/heroic_parser.py:90 +#: src/utils/heroic_parser.py:75 msgid "Set Heroic Location" msgstr "Définir l'emplacement Heroic" -#: src/utils/heroic_parser.py:242 +#: src/utils/heroic_parser.py:227 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:247 src/utils/heroic_parser.py:253 +#: src/utils/heroic_parser.py:232 src/utils/heroic_parser.py:238 msgid "Heroic Games Imported" msgstr "Jeux Heroic importés" -#. 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 +#: src/utils/steam_parser.py:70 msgid "The Steam directory cannot be found." msgstr "Le répertoire Steam est introuvable." -#: src/utils/steam_parser.py:232 +#: src/utils/steam_parser.py:72 msgid "Set Steam Location" msgstr "Définir l'emplacement Steam" -#: src/utils/steam_parser.py:248 +#: src/utils/steam_parser.py:98 #, fuzzy -msgid "Importing Games…" +msgid "Importing Games..." msgstr "Importer Epic Games" -#: src/utils/steam_parser.py:249 +#: src/utils/steam_parser.py:99 msgid "Talking to Steam" msgstr "" -#~ msgid "removed" -#~ msgstr "retiré" +#: 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 "Added:" -#~ msgstr "Ajouté :" - -#~ msgid "Last played:" -#~ msgstr "Dernière session :" - -#~ msgid "Successfully imported" -#~ msgstr "Importation réussie" - -#~ msgid "games." -#~ msgstr "jeux." +#: src/utils/steam_parser.py:168 src/utils/steam_parser.py:174 +msgid "Steam Games Imported" +msgstr "Jeux Steam importés" diff --git a/po/hu.po b/po/hu.po index b027bd4..da0b705 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-19 12:43+0100\n" +"POT-Creation-Date: 2023-03-15 21:17+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 +#: src/utils/create_details_window.py:106 msgid "Executable" msgstr "Program" -#: src/utils/create_details_window.py:150 +#: src/utils/create_details_window.py:107 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:162 +#: src/utils/create_details_window.py:117 msgid "Cancel" msgstr "Mégse" -#: src/utils/create_details_window.py:208 -#: src/utils/create_details_window.py:214 +#: src/utils/create_details_window.py:163 +#: src/utils/create_details_window.py:169 msgid "Couldn't Add Game" msgstr "Nem Lehet Hozzáadni a Játékot" -#: src/utils/create_details_window.py:208 -#: src/utils/create_details_window.py:239 +#: src/utils/create_details_window.py:163 +#: src/utils/create_details_window.py:194 msgid "Game title cannot be empty." msgstr "A cím nem lehet üres." -#: src/utils/create_details_window.py:214 -#: src/utils/create_details_window.py:247 +#: src/utils/create_details_window.py:169 +#: src/utils/create_details_window.py:202 msgid "Executable cannot be empty." msgstr "A program nem lehet üres." -#: src/utils/create_details_window.py:238 -#: src/utils/create_details_window.py:246 +#: src/utils/create_details_window.py:193 +#: src/utils/create_details_window.py:201 msgid "Couldn't Apply Preferences" msgstr "Nem Lehet Menteni a Beállításokat" @@ -434,73 +392,46 @@ msgstr "Nem Lehet Menteni a Beállításokat" msgid "Dismiss" msgstr "Rendben" -#: src/utils/heroic_parser.py:88 +#: src/utils/heroic_parser.py:73 msgid "The Heroic directory cannot be found." msgstr "A Heroic mappa nem található." -#: src/utils/heroic_parser.py:90 +#: src/utils/heroic_parser.py:75 msgid "Set Heroic Location" msgstr "Heroic Mappa Kiválasztása" -#: src/utils/heroic_parser.py:242 +#: src/utils/heroic_parser.py:227 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:247 src/utils/heroic_parser.py:253 +#: src/utils/heroic_parser.py:232 src/utils/heroic_parser.py:238 msgid "Heroic Games Imported" msgstr "Heroic Játékok Importálva" -#. 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 +#: src/utils/steam_parser.py:70 msgid "The Steam directory cannot be found." msgstr "A Steam mappa nem található." -#: src/utils/steam_parser.py:232 +#: src/utils/steam_parser.py:72 msgid "Set Steam Location" msgstr "Steam Mappa Kiválasztása" -#: src/utils/steam_parser.py:248 +#: src/utils/steam_parser.py:98 #, fuzzy -msgid "Importing Games…" +msgid "Importing Games..." msgstr "Epic Games Játékok Importálása" -#: src/utils/steam_parser.py:249 +#: src/utils/steam_parser.py:99 msgid "Talking to Steam" msgstr "" -#~ msgid "removed" -#~ msgstr "eltávolítva" +#: 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 "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." +#: src/utils/steam_parser.py:168 src/utils/steam_parser.py:174 +msgid "Steam Games Imported" +msgstr "Steam Játékok Importálva" #~ msgid "kramo" #~ msgstr "kramo" diff --git a/po/nb_NO.po b/po/nb_NO.po index 618be5a..dbb21b8 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-19 12:43+0100\n" +"POT-Creation-Date: 2023-03-15 21:17+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 +#: src/utils/create_details_window.py:106 msgid "Executable" msgstr "Kjørbar" -#: src/utils/create_details_window.py:150 +#: src/utils/create_details_window.py:107 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:117 msgid "Cancel" msgstr "Avbryt" -#: src/utils/create_details_window.py:208 -#: src/utils/create_details_window.py:214 +#: src/utils/create_details_window.py:163 +#: src/utils/create_details_window.py:169 msgid "Couldn't Add Game" msgstr "Kunne ikke legge til spill" -#: src/utils/create_details_window.py:208 -#: src/utils/create_details_window.py:239 +#: src/utils/create_details_window.py:163 +#: src/utils/create_details_window.py:194 msgid "Game title cannot be empty." msgstr "" -#: src/utils/create_details_window.py:214 -#: src/utils/create_details_window.py:247 +#: src/utils/create_details_window.py:169 +#: src/utils/create_details_window.py:202 msgid "Executable cannot be empty." msgstr "" -#: src/utils/create_details_window.py:238 -#: src/utils/create_details_window.py:246 +#: src/utils/create_details_window.py:193 +#: src/utils/create_details_window.py:201 msgid "Couldn't Apply Preferences" msgstr "" @@ -434,65 +393,43 @@ msgstr "" msgid "Dismiss" msgstr "" -#: src/utils/heroic_parser.py:88 +#: src/utils/heroic_parser.py:73 msgid "The Heroic directory cannot be found." msgstr "" -#: src/utils/heroic_parser.py:90 +#: src/utils/heroic_parser.py:75 msgid "Set Heroic Location" msgstr "" -#: src/utils/heroic_parser.py:242 +#: src/utils/heroic_parser.py:227 msgid "No new games were found in the Heroic library." msgstr "" -#: src/utils/heroic_parser.py:247 src/utils/heroic_parser.py:253 +#: src/utils/heroic_parser.py:232 src/utils/heroic_parser.py:238 msgid "Heroic Games Imported" msgstr "Heroic-spill importert" -#. 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 +#: src/utils/steam_parser.py:70 msgid "The Steam directory cannot be found." msgstr "" -#: src/utils/steam_parser.py:232 +#: src/utils/steam_parser.py:72 msgid "Set Steam Location" msgstr "" -#: src/utils/steam_parser.py:248 +#: src/utils/steam_parser.py:98 #, fuzzy -msgid "Importing Games…" +msgid "Importing Games..." msgstr "Kunne ikke importere spill" -#: src/utils/steam_parser.py:249 +#: src/utils/steam_parser.py:99 msgid "Talking to Steam" msgstr "" -#~ msgid "removed" -#~ msgstr "fjernet" +#: src/utils/steam_parser.py:163 src/utils/steam_parser.py:219 +msgid "No new games were found in the Steam library." +msgstr "" -#~ msgid "Added:" -#~ msgstr "Tillagt:" - -#~ msgid "Last played:" -#~ msgstr "Sist spilt:" - -#~ msgid "games." -#~ msgstr "spill." +#: src/utils/steam_parser.py:168 src/utils/steam_parser.py:174 +msgid "Steam Games Imported" +msgstr "" diff --git a/po/ta.po b/po/ta.po index d97f769..6d89439 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-19 12:43+0100\n" +"POT-Creation-Date: 2023-03-15 21:17+0100\n" "PO-Revision-Date: 2023-03-14 17:59+0000\n" "Last-Translator: kramo \n" "Language-Team: Tamil " -#. The variable is the title of the game -#: src/main.py:194 -#, python-brace-format -msgid "{self.win.games[game_id].name} removed" -msgstr "" +#. Create toast for undoing the remove action +#: src/main.py:190 +msgid "removed" +msgstr "அகற்றப்பட்டது" -#: src/main.py:195 +#: src/main.py:191 msgid "Undo" msgstr "செயல்தவிர்" -#: src/window.py:229 +#: src/window.py:225 msgid "Today" msgstr "இன்று" -#: src/window.py:231 +#: src/window.py:227 msgid "Yesterday" msgstr "நேற்று" -#. The variable is the date when the game was added +#: src/window.py:259 +msgid "Added:" +msgstr "சேர்க்கப்பட்டது:" + +#: src/window.py:262 +msgid "Last played:" +msgstr "கடைசியாக விளையாடியது:" + #: src/window.py:264 -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}" +msgid "Last played: Never" msgstr "கடைசியாக விளையாடியது: ஒருபோதும் இல்லை" -#: src/utils/bottles_parser.py:80 src/utils/heroic_parser.py:87 -#: src/utils/steam_parser.py:229 +#: src/utils/bottles_parser.py:70 src/utils/heroic_parser.py:72 +#: src/utils/steam_parser.py:69 msgid "Couldn't Import Games" msgstr "கேம்களை இறக்குமதி செய்ய முடியவில்லை" -#: src/utils/bottles_parser.py:81 +#: src/utils/bottles_parser.py:71 msgid "The Bottles directory cannot be found." msgstr "பாட்டில்கள் கோப்பகத்தைக் கண்டறிய முடியவில்லை." -#: src/utils/bottles_parser.py:83 +#: src/utils/bottles_parser.py:73 msgid "Set Bottles Location" msgstr "பாட்டில்களின் இடத்தை அமைக்கவும்" -#: src/utils/bottles_parser.py:143 +#: src/utils/bottles_parser.py:133 msgid "No new games were found in the Bottles library." msgstr "பாட்டில்கள் நூலகத்தில் புதிய விளையாட்டுகள் எதுவும் இல்லை." -#: src/utils/bottles_parser.py:148 src/utils/bottles_parser.py:154 +#: src/utils/bottles_parser.py:138 src/utils/bottles_parser.py:144 msgid "Bottles Games Imported" msgstr "பாட்டில் விளையாட்டுகள் இறக்குமதி செய்யப்பட்டன" -#: src/utils/bottles_parser.py:149 src/utils/heroic_parser.py:248 -#: src/utils/steam_parser.py:164 +#: src/utils/bottles_parser.py:139 src/utils/heroic_parser.py:233 +#: src/utils/steam_parser.py:169 msgid "Successfully imported 1 game." msgstr "1 விளையாட்டு வெற்றிகரமாக இறக்குமதி செய்யப்பட்டது." -#. 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/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 "விளையாட்டுகள்." #: src/utils/create_details_window.py:41 msgid "Add New Game" @@ -359,78 +360,35 @@ msgstr "" msgid "The developer or publisher (optional)" msgstr "" -#: 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 +#: src/utils/create_details_window.py:106 msgid "Executable" msgstr "செயல்படுத்தக்கூடியது" -#: src/utils/create_details_window.py:150 +#: src/utils/create_details_window.py:107 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:117 msgid "Cancel" msgstr "ரத்துசெய்" -#: src/utils/create_details_window.py:208 -#: src/utils/create_details_window.py:214 +#: src/utils/create_details_window.py:163 +#: src/utils/create_details_window.py:169 msgid "Couldn't Add Game" msgstr "விளையாட்டைச் சேர்க்க முடியவில்லை" -#: src/utils/create_details_window.py:208 -#: src/utils/create_details_window.py:239 +#: src/utils/create_details_window.py:163 +#: src/utils/create_details_window.py:194 msgid "Game title cannot be empty." msgstr "விளையாட்டு தலைப்பு காலியாக இருக்கக்கூடாது." -#: src/utils/create_details_window.py:214 -#: src/utils/create_details_window.py:247 +#: src/utils/create_details_window.py:169 +#: src/utils/create_details_window.py:202 msgid "Executable cannot be empty." msgstr "இயங்கக்கூடியது காலியாக இருக்க முடியாது." -#: src/utils/create_details_window.py:238 -#: src/utils/create_details_window.py:246 +#: src/utils/create_details_window.py:193 +#: src/utils/create_details_window.py:201 msgid "Couldn't Apply Preferences" msgstr "விருப்பத்தேர்வுகளைப் பயன்படுத்த முடியவில்லை" @@ -438,73 +396,46 @@ msgstr "விருப்பத்தேர்வுகளைப் பயன msgid "Dismiss" msgstr "நிராகரி" -#: src/utils/heroic_parser.py:88 +#: src/utils/heroic_parser.py:73 msgid "The Heroic directory cannot be found." msgstr "Heroic (ஹீரோயிக்) கோப்பகத்தைக் கண்டுபிடிக்க முடியவில்லை." -#: src/utils/heroic_parser.py:90 +#: src/utils/heroic_parser.py:75 msgid "Set Heroic Location" msgstr "Heroic (ஹீரோயிக்) இருப்பிடத்தை அமைக்கவும்" -#: src/utils/heroic_parser.py:242 +#: src/utils/heroic_parser.py:227 msgid "No new games were found in the Heroic library." msgstr "Heroic (ஹீரோயிக்) நூலகத்தில் புதிய விளையாட்டுகள் எதுவும் இல்லை." -#: src/utils/heroic_parser.py:247 src/utils/heroic_parser.py:253 +#: src/utils/heroic_parser.py:232 src/utils/heroic_parser.py:238 msgid "Heroic Games Imported" msgstr "Heroic (ஹீரோயிக்) விளையாட்டுகள் இறக்குமதி செய்யப்பட்டன" -#. 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 +#: src/utils/steam_parser.py:70 msgid "The Steam directory cannot be found." msgstr "Steam (ஸ்டீம்) கோப்பகத்தைக் கண்டறிய முடியவில்லை." -#: src/utils/steam_parser.py:232 +#: src/utils/steam_parser.py:72 msgid "Set Steam Location" msgstr "Steam (ஸ்டீம் இடத்தை அமைக்கவும்" -#: src/utils/steam_parser.py:248 +#: src/utils/steam_parser.py:98 #, fuzzy -msgid "Importing Games…" +msgid "Importing Games..." msgstr "Epic விளையாட்டுகளை இறக்குமதி செய்" -#: src/utils/steam_parser.py:249 +#: src/utils/steam_parser.py:99 msgid "Talking to Steam" msgstr "" -#~ msgid "removed" -#~ 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 "Added:" -#~ msgstr "சேர்க்கப்பட்டது:" - -#~ msgid "Last played:" -#~ msgstr "கடைசியாக விளையாடியது:" - -#~ msgid "Successfully imported" -#~ msgstr "வெற்றிகரமாக இறக்குமதி செய்யப்பட்டது" - -#~ msgid "games." -#~ msgstr "விளையாட்டுகள்." +#: src/utils/steam_parser.py:168 src/utils/steam_parser.py:174 +msgid "Steam Games Imported" +msgstr "Steam (ஸ்டீம்) விளையாட்டுகள் இறக்குமதி செய்யப்பட்டன" #~ msgid "kramo" #~ msgstr "கிராமோ" diff --git a/po/uk.po b/po/uk.po index 763712e..e0aec10 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-19 12:43+0100\n" +"POT-Creation-Date: 2023-03-15 21:17+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 +#: src/utils/create_details_window.py:106 msgid "Executable" msgstr "Виконуваний" -#: src/utils/create_details_window.py:150 +#: src/utils/create_details_window.py:107 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:117 msgid "Cancel" msgstr "Скасувати" -#: src/utils/create_details_window.py:208 -#: src/utils/create_details_window.py:214 +#: src/utils/create_details_window.py:163 +#: src/utils/create_details_window.py:169 msgid "Couldn't Add Game" msgstr "Не вдалося додати гру" -#: src/utils/create_details_window.py:208 -#: src/utils/create_details_window.py:239 +#: src/utils/create_details_window.py:163 +#: src/utils/create_details_window.py:194 msgid "Game title cannot be empty." msgstr "Назва гри не може бути порожньою." -#: src/utils/create_details_window.py:214 -#: src/utils/create_details_window.py:247 +#: src/utils/create_details_window.py:169 +#: src/utils/create_details_window.py:202 msgid "Executable cannot be empty." msgstr "Виконуваний файл не може бути порожнім." -#: src/utils/create_details_window.py:238 -#: src/utils/create_details_window.py:246 +#: src/utils/create_details_window.py:193 +#: src/utils/create_details_window.py:201 msgid "Couldn't Apply Preferences" msgstr "Не вдалося застосувати параметри" @@ -434,70 +392,43 @@ msgstr "Не вдалося застосувати параметри" msgid "Dismiss" msgstr "Відхилити" -#: src/utils/heroic_parser.py:88 +#: src/utils/heroic_parser.py:73 msgid "The Heroic directory cannot be found." msgstr "Не вдається знайти каталог Heroic." -#: src/utils/heroic_parser.py:90 +#: src/utils/heroic_parser.py:75 msgid "Set Heroic Location" msgstr "Встановіть розташування Heroic" -#: src/utils/heroic_parser.py:242 +#: src/utils/heroic_parser.py:227 msgid "No new games were found in the Heroic library." msgstr "У бібліотеці Heroic нових ігор не знайдено." -#: src/utils/heroic_parser.py:247 src/utils/heroic_parser.py:253 +#: src/utils/heroic_parser.py:232 src/utils/heroic_parser.py:238 msgid "Heroic Games Imported" msgstr "Ігри Heroic імпортовано" -#. 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 +#: src/utils/steam_parser.py:70 msgid "The Steam directory cannot be found." msgstr "Каталог Steam знайти неможливо." -#: src/utils/steam_parser.py:232 +#: src/utils/steam_parser.py:72 msgid "Set Steam Location" msgstr "Встановіть розташування Steam" -#: src/utils/steam_parser.py:248 +#: src/utils/steam_parser.py:98 #, fuzzy -msgid "Importing Games…" +msgid "Importing Games..." msgstr "Імпорт Epic Games" -#: src/utils/steam_parser.py:249 +#: src/utils/steam_parser.py:99 msgid "Talking to Steam" msgstr "" -#~ msgid "removed" -#~ 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 "Added:" -#~ msgstr "Додано:" - -#~ msgid "Last played:" -#~ msgstr "Остання гра:" - -#~ msgid "Successfully imported" -#~ msgstr "Успішно імпортовано" - -#~ msgid "games." -#~ msgstr "ігри." +#: src/utils/steam_parser.py:168 src/utils/steam_parser.py:174 +msgid "Steam Games Imported" +msgstr "Ігри Steam імпортовано" diff --git a/src/main.py b/src/main.py index 51709d7..e8db59e 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) - # The variable is the title of the game - toast = Adw.Toast.new(_(f"{self.win.games[game_id].name} removed")) + # Create toast for undoing the remove action + toast = Adw.Toast.new(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 2d5c332..49f5f33 100644 --- a/src/utils/bottles_parser.py +++ b/src/utils/bottles_parser.py @@ -152,7 +152,10 @@ def bottles_parser(parent_widget, action): create_dialog( parent_widget, _("Bottles Games Imported"), - # The variable is the number of games - _(f"Successfully imported {str(len(bottles_games))} games."), + _("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 f3a43a4..81945cb 100644 --- a/src/utils/create_details_window.py +++ b/src/utils/create_details_window.py @@ -108,26 +108,12 @@ def create_details_window(parent_widget, game_id=None): css_classes=["flat", "circular"], ) - file_name = _("file.txt") - # As in software - exe_name = _("program") + 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!' - 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_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!' exec_info_label = Gtk.Label( - label=exec_info_text, + label=exec_info_text_win if os.name == "nt" else 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 725149a..a0f353b 100644 --- a/src/utils/heroic_parser.py +++ b/src/utils/heroic_parser.py @@ -251,7 +251,10 @@ def heroic_parser(parent_widget, action): create_dialog( parent_widget, _("Heroic Games Imported"), - # The variable is the number of games - _(f"Successfully imported {str(len(heroic_games))} games."), + _("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 938845f..75d8f95 100644 --- a/src/utils/steam_parser.py +++ b/src/utils/steam_parser.py @@ -167,8 +167,11 @@ def get_games_async(parent_widget, appmanifests, steam_dir, import_dialog): create_dialog( parent_widget, _("Steam Games Imported"), - # The variable is the number of games - _(f"Successfully imported {str(games_no)} games."), + _("Successfully imported") + + " " + + str(games_no) + + " " + + _("games."), ) for appmanifest in appmanifests: @@ -245,7 +248,7 @@ def steam_parser(parent_widget, action): steam_dir = os.path.expanduser(schema.get_string("steam-location")) import_statuspage = Adw.StatusPage( - title=_("Importing Games…"), + title=_("Importing Games..."), description=_("Talking to Steam"), ) diff --git a/src/window.py b/src/window.py index c6bb379..1e84f1f 100644 --- a/src/window.py +++ b/src/window.py @@ -260,17 +260,12 @@ 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( - # 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") + _("Added:") + " " + self.get_time(current_game.added) ) self.overview_last_played.set_label( - # The variable is the date when the game was last played - _(f"Last played: {last_played_date}") + _("Last played:") + " " + self.get_time(current_game.last_played) + if current_game.last_played != 0 + else _("Last played: Never") ) def a_z_sort(self, child1, child2):