From bcfa3cdb89185ab5458ab5fe663308fc8fe50f84 Mon Sep 17 00:00:00 2001 From: Boris Yumankulov Date: Sat, 28 Jun 2025 09:07:32 +0500 Subject: [PATCH] chore(FileExplorer): added localization to path label Signed-off-by: Boris Yumankulov --- documentation/localization_guide/README.md | 6 +- documentation/localization_guide/README.ru.md | 6 +- portprotonqt/dialogs.py | 2 +- .../locales/de_DE/LC_MESSAGES/messages.mo | Bin 451 -> 451 bytes .../locales/de_DE/LC_MESSAGES/messages.po | 37 +-------- .../locales/es_ES/LC_MESSAGES/messages.mo | Bin 451 -> 451 bytes .../locales/es_ES/LC_MESSAGES/messages.po | 37 +-------- portprotonqt/locales/messages.pot | 37 +-------- .../locales/ru_RU/LC_MESSAGES/messages.mo | Bin 17175 -> 17124 bytes .../locales/ru_RU/LC_MESSAGES/messages.po | 74 ++++++------------ 10 files changed, 41 insertions(+), 158 deletions(-) diff --git a/documentation/localization_guide/README.md b/documentation/localization_guide/README.md index 7f9ea30..b5d833f 100644 --- a/documentation/localization_guide/README.md +++ b/documentation/localization_guide/README.md @@ -20,9 +20,9 @@ Current translation status: | Locale | Progress | Translated | | :----- | -------: | ---------: | -| [de_DE](./de_DE/LC_MESSAGES/messages.po) | 0% | 0 of 190 | -| [es_ES](./es_ES/LC_MESSAGES/messages.po) | 0% | 0 of 190 | -| [ru_RU](./ru_RU/LC_MESSAGES/messages.po) | 100% | 190 of 190 | +| [de_DE](./de_DE/LC_MESSAGES/messages.po) | 0% | 0 of 182 | +| [es_ES](./es_ES/LC_MESSAGES/messages.po) | 0% | 0 of 182 | +| [ru_RU](./ru_RU/LC_MESSAGES/messages.po) | 100% | 182 of 182 | --- diff --git a/documentation/localization_guide/README.ru.md b/documentation/localization_guide/README.ru.md index 5582354..7b01eac 100644 --- a/documentation/localization_guide/README.ru.md +++ b/documentation/localization_guide/README.ru.md @@ -20,9 +20,9 @@ | Локаль | Прогресс | Переведено | | :----- | -------: | ---------: | -| [de_DE](./de_DE/LC_MESSAGES/messages.po) | 0% | 0 из 190 | -| [es_ES](./es_ES/LC_MESSAGES/messages.po) | 0% | 0 из 190 | -| [ru_RU](./ru_RU/LC_MESSAGES/messages.po) | 100% | 190 из 190 | +| [de_DE](./de_DE/LC_MESSAGES/messages.po) | 0% | 0 из 182 | +| [es_ES](./es_ES/LC_MESSAGES/messages.po) | 0% | 0 из 182 | +| [ru_RU](./ru_RU/LC_MESSAGES/messages.po) | 100% | 182 из 182 | --- diff --git a/portprotonqt/dialogs.py b/portprotonqt/dialogs.py index 48992e0..adca5fc 100644 --- a/portprotonqt/dialogs.py +++ b/portprotonqt/dialogs.py @@ -322,7 +322,7 @@ class FileExplorer(QDialog): self.file_list.addItem(item) - self.path_label.setText(f"Path: {self.current_path}") + self.path_label.setText(_("Path: ") + self.current_path) self.file_list.setCurrentRow(0) except PermissionError: diff --git a/portprotonqt/locales/de_DE/LC_MESSAGES/messages.mo b/portprotonqt/locales/de_DE/LC_MESSAGES/messages.mo index 6877ef0a4992fb3a57f1b8a22ba5d72d117a275d..0fa8072081da13f3226c7e26826a7637f214feae 100644 GIT binary patch delta 18 ZcmX@ie3*H{M0N`W14}CdlZ`X9838$_1&IIv delta 18 ZcmX@ie3*H{M0PU;LlY}g(~UE<838$z1&IIv diff --git a/portprotonqt/locales/de_DE/LC_MESSAGES/messages.po b/portprotonqt/locales/de_DE/LC_MESSAGES/messages.po index 50c2c3b..14470c7 100644 --- a/portprotonqt/locales/de_DE/LC_MESSAGES/messages.po +++ b/portprotonqt/locales/de_DE/LC_MESSAGES/messages.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2025-06-26 14:55+0500\n" +"POT-Creation-Date: 2025-06-28 09:04+0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language: de_DE\n" @@ -228,38 +228,6 @@ msgid "" " take effect." msgstr "" -msgid "PortProton directory not found" -msgstr "" - -msgid "Steam directory not found" -msgstr "" - -msgid "Failed to get Steam user ID" -msgstr "" - -msgid "Steam shortcuts file not found" -msgstr "" - -#, python-brace-format -msgid "Failed to create backup of shortcuts.vdf: {error}" -msgstr "" - -#, python-brace-format -msgid "Failed to load shortcuts.vdf: {error}" -msgstr "" - -#, python-brace-format -msgid "Game '{game_name}' not found in Steam shortcuts" -msgstr "" - -#, python-brace-format -msgid "Failed to update shortcuts.vdf: {error}" -msgstr "" - -#, python-brace-format -msgid "Failed to remove EGS game '{game_name}' from Steam: {error}" -msgstr "" - #, python-brace-format msgid "Failed to remove game '{game_name}' from Steam: {error}" msgstr "" @@ -270,6 +238,9 @@ msgstr "" msgid "Cancel" msgstr "" +msgid "Path: " +msgstr "" + msgid "Edit Game" msgstr "" diff --git a/portprotonqt/locales/es_ES/LC_MESSAGES/messages.mo b/portprotonqt/locales/es_ES/LC_MESSAGES/messages.mo index 8b1951e31081663053f31a0a05719c9becd9c54a..a5de06d81d6906390559c5e56f5b1460ebe02b97 100644 GIT binary patch delta 18 ZcmX@ie3*H{M0N`W14}CdlZ`X9838$_1&IIv delta 18 ZcmX@ie3*H{M0PU;LlY}g(~UE<838$z1&IIv diff --git a/portprotonqt/locales/es_ES/LC_MESSAGES/messages.po b/portprotonqt/locales/es_ES/LC_MESSAGES/messages.po index 1a022ba..24794a2 100644 --- a/portprotonqt/locales/es_ES/LC_MESSAGES/messages.po +++ b/portprotonqt/locales/es_ES/LC_MESSAGES/messages.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2025-06-26 14:55+0500\n" +"POT-Creation-Date: 2025-06-28 09:04+0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language: es_ES\n" @@ -228,38 +228,6 @@ msgid "" " take effect." msgstr "" -msgid "PortProton directory not found" -msgstr "" - -msgid "Steam directory not found" -msgstr "" - -msgid "Failed to get Steam user ID" -msgstr "" - -msgid "Steam shortcuts file not found" -msgstr "" - -#, python-brace-format -msgid "Failed to create backup of shortcuts.vdf: {error}" -msgstr "" - -#, python-brace-format -msgid "Failed to load shortcuts.vdf: {error}" -msgstr "" - -#, python-brace-format -msgid "Game '{game_name}' not found in Steam shortcuts" -msgstr "" - -#, python-brace-format -msgid "Failed to update shortcuts.vdf: {error}" -msgstr "" - -#, python-brace-format -msgid "Failed to remove EGS game '{game_name}' from Steam: {error}" -msgstr "" - #, python-brace-format msgid "Failed to remove game '{game_name}' from Steam: {error}" msgstr "" @@ -270,6 +238,9 @@ msgstr "" msgid "Cancel" msgstr "" +msgid "Path: " +msgstr "" + msgid "Edit Game" msgstr "" diff --git a/portprotonqt/locales/messages.pot b/portprotonqt/locales/messages.pot index 5c89a9e..49977ce 100644 --- a/portprotonqt/locales/messages.pot +++ b/portprotonqt/locales/messages.pot @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: PortProtonQt 0.1.1\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2025-06-26 14:55+0500\n" +"POT-Creation-Date: 2025-06-28 09:04+0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -226,38 +226,6 @@ msgid "" " take effect." msgstr "" -msgid "PortProton directory not found" -msgstr "" - -msgid "Steam directory not found" -msgstr "" - -msgid "Failed to get Steam user ID" -msgstr "" - -msgid "Steam shortcuts file not found" -msgstr "" - -#, python-brace-format -msgid "Failed to create backup of shortcuts.vdf: {error}" -msgstr "" - -#, python-brace-format -msgid "Failed to load shortcuts.vdf: {error}" -msgstr "" - -#, python-brace-format -msgid "Game '{game_name}' not found in Steam shortcuts" -msgstr "" - -#, python-brace-format -msgid "Failed to update shortcuts.vdf: {error}" -msgstr "" - -#, python-brace-format -msgid "Failed to remove EGS game '{game_name}' from Steam: {error}" -msgstr "" - #, python-brace-format msgid "Failed to remove game '{game_name}' from Steam: {error}" msgstr "" @@ -268,6 +236,9 @@ msgstr "" msgid "Cancel" msgstr "" +msgid "Path: " +msgstr "" + msgid "Edit Game" msgstr "" diff --git a/portprotonqt/locales/ru_RU/LC_MESSAGES/messages.mo b/portprotonqt/locales/ru_RU/LC_MESSAGES/messages.mo index ac3fd4283fa7ab1b6b4213d04047e04c8b4ccbd9..53a5fd3b95903c09fdc509b9c44ab60619618584 100644 GIT binary patch delta 4218 zcmYk-dvKM-8OQNGkb5AI3xR}?oB+81xgH21mqLPQ6e5HO5~LUtISC+y8i^1<50Xgb zQn9{LM3i6^4JsHpf-qF7ouM7j(MhHG!;xCcrPJF;Wm-E_rQhFqml<~QoX_ri+udjP zeY0n)=hBm&z#kLBb{oojL>h5E+?fC2&RBjZ>xUUrkDYigevDB#Zn!aVn1}qC3Vw7; zEe^p3^r9a#aVzTiy{PNXV2v>W(@&+D11a&w%*IU^iNC`{{1nIIMa;se1h<0%45M9v z5m;rd!D!lZaVR#}<1JW3do^kR`!SLJ%^Or0gE@`5;ZxMiF4*=zFq!ss9EPib`?^l!f`Ur=ky+;W*rb zIe5x?5tW(P5yniyVpMx6PQflzhbK_?e}?J!Ed~myBr`poxC3?LN*s;PU@5+3y=0H4 zjdZV@hGRH?KWgBckU5yWs0FO6dr=uXha|~dL1pH9)C5LzQuleS*{J8{1*ovG z%|c`nrWL2*W>f}FqB{N^Cb}Gz z`VGil3z!}%+O=m;9sUb-q4KYhC!p3a71cp5YQ}~3_&nqmvlMmzM$`{SQ*n%r4jye?c$puTc*ePH$R@k(iAWQ4g4p+TDvW2U}1BeHsVji}w5h z)Y>1$K^R00@Hj>XsQj9WMtBx=!6&E-`cWhP+@8N;{X1#^S5epf7faFOb)Qp)td5zE z$2`16_$KXm*7*>=kJ{|5yg~teV4k3&nZ1p=aR7C}HM|XnvS2^L`M3agA^Xl;!u6QI}r6E%=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Q~rkX={=<_#2x3`nZa$sKYHr)$`^>YubEd@H zvC@6J($nT|cUKW}g;nAyDRXgcX|7)N2#(8OW zMbX0r1I!YNY>Vt*rRcDKPyAog=GckFNufwlTudyrw6}Xw?YBL%?7i-!&>2su%kG?) z;$g`H;iG&X{J*o^Ebk}tm$>@vGmES&HWEH)MSj3`2P2QN)BebV(ej2Cl)OH{PG0;Q zS5fH5;@`!t+QYqG0v}|dkaGlB^{~a4l5&W|9W~+Sq8a+^oCNko<3l@^G{pWB^Bk6W diff --git a/portprotonqt/locales/ru_RU/LC_MESSAGES/messages.po b/portprotonqt/locales/ru_RU/LC_MESSAGES/messages.po index 1eee856..36a3fb9 100644 --- a/portprotonqt/locales/ru_RU/LC_MESSAGES/messages.po +++ b/portprotonqt/locales/ru_RU/LC_MESSAGES/messages.po @@ -9,17 +9,18 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2025-06-26 14:55+0500\n" -"PO-Revision-Date: 2025-06-26 14:55+0500\n" +"POT-Creation-Date: 2025-06-28 09:04+0500\n" +"PO-Revision-Date: 2025-06-28 09:05+0500\n" "Last-Translator: \n" -"Language: ru_RU\n" "Language-Team: ru_RU \n" -"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " -"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"Language: ru_RU\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 " +"&& (n%100<10 || n%100>=20) ? 1 : 2);\n" "Generated-By: Babel 2.17.0\n" +"X-Generator: Poedit 3.6\n" msgid "Error" msgstr "Ошибка" @@ -72,11 +73,11 @@ msgstr "Успешно" #, python-brace-format msgid "" -"'{game_name}' was added to Steam. Please restart Steam for changes to " -"take effect." +"'{game_name}' was added to Steam. Please restart Steam for changes to take " +"effect." msgstr "" -"'{game_name}' был(а) добавлен(а) в Steam. Пожалуйста, перезапустите " -"Steam, чтобы изменения вступили в силу." +"'{game_name}' был(а) добавлен(а) в Steam. Пожалуйста, перезапустите Steam, " +"чтобы изменения вступили в силу." #, python-brace-format msgid "Executable not found for game: {game_name}" @@ -183,11 +184,11 @@ msgstr "Подтвердите удаление" #, python-brace-format msgid "" -"Are you sure you want to delete '{game_name}'? This will remove the " -".desktop file and custom data." +"Are you sure you want to delete '{game_name}'? This will remove the .desktop " +"file and custom data." msgstr "" -"Вы уверены, что хотите удалить '{game_name}'? Это приведёт к удалению " -"файла .desktop и пользовательских данных." +"Вы уверены, что хотите удалить '{game_name}'? Это приведёт к удалению файла ." +"desktop и пользовательских данных." #, python-brace-format msgid "Failed to delete .desktop file: {error}" @@ -229,43 +230,11 @@ msgstr "Не удалось добавить '{game_name}' в Steam: {error}" #, python-brace-format msgid "" -"'{game_name}' was removed from Steam. Please restart Steam for changes to" -" take effect." +"'{game_name}' was removed from Steam. Please restart Steam for changes to take " +"effect." msgstr "" -"'{game_name}' был(а) удалён(а) из Steam. Пожалуйста, перезапустите Steam," -" чтобы изменения вступили в силу." - -msgid "PortProton directory not found" -msgstr "PortProton не найден." - -msgid "Steam directory not found" -msgstr "Каталог Steam не найден" - -msgid "Failed to get Steam user ID" -msgstr "Не удалось получить ID пользователя Steam" - -msgid "Steam shortcuts file not found" -msgstr "Файл ярлыков Steam не найден" - -#, python-brace-format -msgid "Failed to create backup of shortcuts.vdf: {error}" -msgstr "Не удалось создать резервную копию файла shortcuts.vdf: {error}" - -#, python-brace-format -msgid "Failed to load shortcuts.vdf: {error}" -msgstr "Не удалось загрузить файл shortcuts.vdf: {error}" - -#, python-brace-format -msgid "Game '{game_name}' not found in Steam shortcuts" -msgstr "Игра '{game_name}' не найдена в ярлыках Steam" - -#, python-brace-format -msgid "Failed to update shortcuts.vdf: {error}" -msgstr "Не удалось обновить файл shortcuts.vdf: {error}" - -#, python-brace-format -msgid "Failed to remove EGS game '{game_name}' from Steam: {error}" -msgstr "Не удалось удалить игру EGS '{game_name}' из Steam: {error}" +"'{game_name}' был(а) удалён(а) из Steam. Пожалуйста, перезапустите Steam, чтобы " +"изменения вступили в силу." #, python-brace-format msgid "Failed to remove game '{game_name}' from Steam: {error}" @@ -277,6 +246,9 @@ msgstr "Выбрать" msgid "Cancel" msgstr "Отмена" +msgid "Path: " +msgstr "Путь: " + msgid "Edit Game" msgstr "Редактировать игру" @@ -505,8 +477,7 @@ msgstr "Подтвердите удаление" msgid "Are you sure you want to reset all settings? This action cannot be undone." msgstr "" -"Вы уверены, что хотите сбросить все настройки? Это действие нельзя " -"отменить." +"Вы уверены, что хотите сбросить все настройки? Это действие нельзя отменить." msgid "Settings reset. Restarting..." msgstr "Настройки сброшены. Перезапуск..." @@ -651,4 +622,3 @@ msgstr "мин." msgid "sec." msgstr "сек." -