From 647394ca92d3acb415f9e1da28baa586f3125159 Mon Sep 17 00:00:00 2001 From: Boris Yumankulov Date: Sun, 8 Jun 2025 09:34:24 +0500 Subject: [PATCH] chore(localization): update Signed-off-by: Boris Yumankulov --- documentation/localization_guide/README.md | 6 +- documentation/localization_guide/README.ru.md | 6 +- .../locales/de_DE/LC_MESSAGES/messages.mo | Bin 451 -> 451 bytes .../locales/de_DE/LC_MESSAGES/messages.po | 60 ++++++++--------- .../locales/es_ES/LC_MESSAGES/messages.mo | Bin 451 -> 451 bytes .../locales/es_ES/LC_MESSAGES/messages.po | 60 ++++++++--------- portprotonqt/locales/messages.pot | 60 ++++++++--------- .../locales/ru_RU/LC_MESSAGES/messages.mo | Bin 13281 -> 12956 bytes .../locales/ru_RU/LC_MESSAGES/messages.po | 62 ++++++++---------- portprotonqt/system_overlay.py | 15 +---- 10 files changed, 120 insertions(+), 149 deletions(-) diff --git a/documentation/localization_guide/README.md b/documentation/localization_guide/README.md index 84fdcc5..d4b50af 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 154 | -| [es_ES](./es_ES/LC_MESSAGES/messages.po) | 0% | 0 of 154 | -| [ru_RU](./ru_RU/LC_MESSAGES/messages.po) | 100% | 154 of 154 | +| [de_DE](./de_DE/LC_MESSAGES/messages.po) | 0% | 0 of 153 | +| [es_ES](./es_ES/LC_MESSAGES/messages.po) | 0% | 0 of 153 | +| [ru_RU](./ru_RU/LC_MESSAGES/messages.po) | 100% | 153 of 153 | --- diff --git a/documentation/localization_guide/README.ru.md b/documentation/localization_guide/README.ru.md index eb4ccca..1c4c7e0 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 из 154 | -| [es_ES](./es_ES/LC_MESSAGES/messages.po) | 0% | 0 из 154 | -| [ru_RU](./ru_RU/LC_MESSAGES/messages.po) | 100% | 154 из 154 | +| [de_DE](./de_DE/LC_MESSAGES/messages.po) | 0% | 0 из 153 | +| [es_ES](./es_ES/LC_MESSAGES/messages.po) | 0% | 0 из 153 | +| [ru_RU](./ru_RU/LC_MESSAGES/messages.po) | 100% | 153 из 153 | --- diff --git a/portprotonqt/locales/de_DE/LC_MESSAGES/messages.mo b/portprotonqt/locales/de_DE/LC_MESSAGES/messages.mo index 0f3b2716b55ae08460c7354be3f460f4ddd4a5dc..71e89d71fd38dbc3f0b0bbe95dcf91bd71e501ba 100644 GIT binary patch delta 17 YcmX@ie3*H{L^cZr14}F8jnj1)0W`%0R{#J2 delta 17 YcmX@ie3*H{L^d-8BLgdgjnj1)0W@<3O8@`> diff --git a/portprotonqt/locales/de_DE/LC_MESSAGES/messages.po b/portprotonqt/locales/de_DE/LC_MESSAGES/messages.po index 882d392..4145e5e 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-06 20:01+0500\n" +"POT-Creation-Date: 2025-06-08 09:31+0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language: de_DE\n" @@ -362,21 +362,6 @@ msgstr "" msgid "Auto Fullscreen on Gamepad connected:" msgstr "" -msgid "Open Legendary Login" -msgstr "" - -msgid "Legendary Authentication:" -msgstr "" - -msgid "Enter Legendary Authorization Code" -msgstr "" - -msgid "Authorization Code:" -msgstr "" - -msgid "Submit Code" -msgstr "" - msgid "Save Settings" msgstr "" @@ -392,22 +377,6 @@ msgstr "" msgid "Failed to open Legendary login page" msgstr "" -msgid "Please enter an authorization code" -msgstr "" - -msgid "Successfully authenticated with Legendary" -msgstr "" - -#, python-brace-format -msgid "Legendary authentication failed: {0}" -msgstr "" - -msgid "Legendary executable not found" -msgstr "" - -msgid "Unexpected error during authentication" -msgstr "" - msgid "Confirm Reset" msgstr "" @@ -505,6 +474,33 @@ msgstr "" msgid "Launching" msgstr "" +msgid "System Overlay" +msgstr "" + +msgid "Reboot" +msgstr "" + +msgid "Shutdown" +msgstr "" + +msgid "Suspend" +msgstr "" + +msgid "Exit Application" +msgstr "" + +msgid "Cancel" +msgstr "" + +msgid "Failed to reboot the system" +msgstr "" + +msgid "Failed to shutdown the system" +msgstr "" + +msgid "Failed to suspend the system" +msgstr "" + msgid "just now" msgstr "" diff --git a/portprotonqt/locales/es_ES/LC_MESSAGES/messages.mo b/portprotonqt/locales/es_ES/LC_MESSAGES/messages.mo index 50770aafe487a049f1dcf75e6fbc437b043c3864..1c9c621316c433ce09621e87918dc6b8898ca4e6 100644 GIT binary patch delta 17 YcmX@ie3*H{L^cZr14}F8jnj1)0W`%0R{#J2 delta 17 YcmX@ie3*H{L^d-8BLgdgjnj1)0W@<3O8@`> diff --git a/portprotonqt/locales/es_ES/LC_MESSAGES/messages.po b/portprotonqt/locales/es_ES/LC_MESSAGES/messages.po index b67ae5b..74cfe8c 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-06 20:01+0500\n" +"POT-Creation-Date: 2025-06-08 09:31+0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language: es_ES\n" @@ -362,21 +362,6 @@ msgstr "" msgid "Auto Fullscreen on Gamepad connected:" msgstr "" -msgid "Open Legendary Login" -msgstr "" - -msgid "Legendary Authentication:" -msgstr "" - -msgid "Enter Legendary Authorization Code" -msgstr "" - -msgid "Authorization Code:" -msgstr "" - -msgid "Submit Code" -msgstr "" - msgid "Save Settings" msgstr "" @@ -392,22 +377,6 @@ msgstr "" msgid "Failed to open Legendary login page" msgstr "" -msgid "Please enter an authorization code" -msgstr "" - -msgid "Successfully authenticated with Legendary" -msgstr "" - -#, python-brace-format -msgid "Legendary authentication failed: {0}" -msgstr "" - -msgid "Legendary executable not found" -msgstr "" - -msgid "Unexpected error during authentication" -msgstr "" - msgid "Confirm Reset" msgstr "" @@ -505,6 +474,33 @@ msgstr "" msgid "Launching" msgstr "" +msgid "System Overlay" +msgstr "" + +msgid "Reboot" +msgstr "" + +msgid "Shutdown" +msgstr "" + +msgid "Suspend" +msgstr "" + +msgid "Exit Application" +msgstr "" + +msgid "Cancel" +msgstr "" + +msgid "Failed to reboot the system" +msgstr "" + +msgid "Failed to shutdown the system" +msgstr "" + +msgid "Failed to suspend the system" +msgstr "" + msgid "just now" msgstr "" diff --git a/portprotonqt/locales/messages.pot b/portprotonqt/locales/messages.pot index 46314b4..14160cf 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-06 20:01+0500\n" +"POT-Creation-Date: 2025-06-08 09:31+0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -360,21 +360,6 @@ msgstr "" msgid "Auto Fullscreen on Gamepad connected:" msgstr "" -msgid "Open Legendary Login" -msgstr "" - -msgid "Legendary Authentication:" -msgstr "" - -msgid "Enter Legendary Authorization Code" -msgstr "" - -msgid "Authorization Code:" -msgstr "" - -msgid "Submit Code" -msgstr "" - msgid "Save Settings" msgstr "" @@ -390,22 +375,6 @@ msgstr "" msgid "Failed to open Legendary login page" msgstr "" -msgid "Please enter an authorization code" -msgstr "" - -msgid "Successfully authenticated with Legendary" -msgstr "" - -#, python-brace-format -msgid "Legendary authentication failed: {0}" -msgstr "" - -msgid "Legendary executable not found" -msgstr "" - -msgid "Unexpected error during authentication" -msgstr "" - msgid "Confirm Reset" msgstr "" @@ -503,6 +472,33 @@ msgstr "" msgid "Launching" msgstr "" +msgid "System Overlay" +msgstr "" + +msgid "Reboot" +msgstr "" + +msgid "Shutdown" +msgstr "" + +msgid "Suspend" +msgstr "" + +msgid "Exit Application" +msgstr "" + +msgid "Cancel" +msgstr "" + +msgid "Failed to reboot the system" +msgstr "" + +msgid "Failed to shutdown the system" +msgstr "" + +msgid "Failed to suspend the system" +msgstr "" + msgid "just now" msgstr "" diff --git a/portprotonqt/locales/ru_RU/LC_MESSAGES/messages.mo b/portprotonqt/locales/ru_RU/LC_MESSAGES/messages.mo index d774613691595af35eabde04fe679ac19651fe3d..6ce2539ba3f46b89cc5f313d42c068e26e5fbdbb 100644 GIT binary patch delta 3126 zcmajgdrXye9LMqB0a5`4L6lUCN4y{*f|%wdGqcoLYD(U!<&9&K=s`GmD?0+27s#|n zans7x)M>Y=M-dd1Hq(u4K4-0^%b6|zXzJ{?(kX4dKj%DV{n28_=k@zN&+qd6eSg2_ z@%xwF@dhp>$80nF?ciS;|E|ZVcJHq-)|ft2o3I`JfC+dV(WAEyrHew_#7_Hw_f};ZRsLZM%E)u%{!=ZKElBL6wXl4gqK|vzB*dSqRdES+sp)1K+`Yi%aS|$^ z1<22oa8bY4U29Np$5vDZ-bH@q11_4d4wd?INRrJZ)Oa@n6qMRqZi8s@ss_oZ! z9ctiYREKUj1+%aKUqK7cq5A)fn)oKFUmW|QGn9;(n2ri~97gN?pXN50h1#a(4!ZY`;b{+t6w{gCyuk)_rNLgz!DiIy zzv14G=i#%|`=AcnDqMlJ_#r0p5vayvs6fWjs1m1Q6@HESPRwFZZM7f6smJ!rZ#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yj_Uc%xEy!mb@&C=;WcIKzdCN>9nl0&q6P%WO4p63=Y77%P=V9=_28J8 za#X(ss4ZKIGjKOvi7#L!=1)8GdM`p%pc(JNu4!@hoyJ?-;0-ak99fle8fxVY*o>=C zfexY0z-e5JjdZ>YH=`0eg7x?o*5YjTffvNYkX+3Ds7mg|1^9NHh5}#2JElFKk2m18 zSdH6I2_8doG@s%uoXpKUY(SlzJCNd;Fe=c)*o6C0XQ+@e%*W|SZl)Pkq4@nY8fZL& zEUh&P~X!C}c`KSq2BHL~vXrY5jWDr%6*ypS8)kiv(HSp8kNX8)N8l{wc>x_ zSUiaee9AXx4nKUibEBL_K34cHK$Z4K>VUUm0p5WM(1qutgQ~=%sPX%-0FR)azdXl1 zIPTs+&gw`sv^E$EMZ(tNNUQD4%G~7sB{LA18jjgftKM$6!>z&SJyvaZ?3-N=k8gHX zW)-uES zUUya}dyU=F9Sb&h*j6|av)Urv;a2zQy!JrxS=rS`+CyP;eWx9^TbV7Vs~}5b$4{! zlN|0RYqwf=hhnQ!@#)#w8HvUSUQzgFxxJ>-ZsEeRqtQszYVD4O!tG~IK(*a*MHdFf z&b4M&*Hk;xi_83`+gO~IUh->i)El(Ces5o5gEyM!@rJ!8y#B<`aoAlxIUI10mz)Y* z{)o5F8}bIdVR{W&-oft}mCDt5YRXP$qE+B-FC9p8vdbnqyUI>DSC?9DNqJj(yzkpF z6AxM5zSIOY#@p!)5bFRLCVCayJH+>JVk7w-{9m5uj!AB+w?k$w7dbTKs4$wl<2V-K9Wo;@iQ&j>pv%&`}U<{0=19v zWIwS+7\n" @@ -369,21 +369,6 @@ msgstr "Режим полноэкранного отображения прил msgid "Auto Fullscreen on Gamepad connected:" msgstr "Режим полноэкранного отображения приложения при подключении геймпада:" -msgid "Open Legendary Login" -msgstr "Открыть браузер для входа в Legendary" - -msgid "Legendary Authentication:" -msgstr "Авторизация в Legendary:" - -msgid "Enter Legendary Authorization Code" -msgstr "Введите код авторизации Legendary" - -msgid "Authorization Code:" -msgstr "Код авторизации:" - -msgid "Submit Code" -msgstr "Отправить код" - msgid "Save Settings" msgstr "Сохранить настройки" @@ -399,22 +384,6 @@ msgstr "Открытие страницы входа в Legendary в брауз msgid "Failed to open Legendary login page" msgstr "Не удалось открыть страницу входа в Legendary" -msgid "Please enter an authorization code" -msgstr "Пожалуйста, введите код авторизации" - -msgid "Successfully authenticated with Legendary" -msgstr "Успешная аутентификация с Legendary" - -#, python-brace-format -msgid "Legendary authentication failed: {0}" -msgstr "Сбой аутентификации в Legendary: {0}" - -msgid "Legendary executable not found" -msgstr "Не найден исполняемый файл Legendary" - -msgid "Unexpected error during authentication" -msgstr "Неожиданная ошибка при аутентификации" - msgid "Confirm Reset" msgstr "Подтвердите удаление" @@ -514,6 +483,33 @@ msgstr "Невозможно запустить игру пока запущен msgid "Launching" msgstr "Идёт запуск" +msgid "System Overlay" +msgstr "Системный оверлей" + +msgid "Reboot" +msgstr "Перезагрузить" + +msgid "Shutdown" +msgstr "Выключить" + +msgid "Suspend" +msgstr "Перейти в ждущий режим" + +msgid "Exit Application" +msgstr "Выйти из приложения" + +msgid "Cancel" +msgstr "Отмена" + +msgid "Failed to reboot the system" +msgstr "Не удалось перезагрузить систему" + +msgid "Failed to shutdown the system" +msgstr "Не удалось завершить работу системы" + +msgid "Failed to suspend the system" +msgstr "Не удалось перейти в ждущий режим" + msgid "just now" msgstr "только что" diff --git a/portprotonqt/system_overlay.py b/portprotonqt/system_overlay.py index a64b45e..f62bb10 100644 --- a/portprotonqt/system_overlay.py +++ b/portprotonqt/system_overlay.py @@ -1,5 +1,5 @@ import subprocess -from PySide6.QtWidgets import QDialog, QVBoxLayout, QPushButton, QLabel, QMessageBox +from PySide6.QtWidgets import QDialog, QVBoxLayout, QPushButton, QMessageBox from PySide6.QtWidgets import QApplication from PySide6.QtCore import Qt from portprotonqt.logger import get_logger @@ -20,11 +20,6 @@ class SystemOverlay(QDialog): layout.setContentsMargins(20, 20, 20, 20) layout.setSpacing(10) - title = QLabel(_("System Actions")) - title.setStyleSheet(self.theme.TAB_TITLE_STYLE) - title.setAlignment(Qt.AlignmentFlag.AlignCenter) - layout.addWidget(title) - # Reboot button reboot_button = QPushButton(_("Reboot")) #reboot_button.setStyleSheet(self.theme.ACTION_BUTTON_STYLE) @@ -71,14 +66,6 @@ class SystemOverlay(QDialog): QMessageBox.warning(self, _("Error"), _("Failed to reboot the system")) self.accept() - def sleep(self): - try: - subprocess.run(["systemctl", "suspend-then-hibernate"], check=True) - except subprocess.CalledProcessError as e: - logger.error(f"Failed to sleep: {e}") - QMessageBox.warning(self, _("Error"), _("Failed to put the system to sleep")) - self.accept() - def shutdown(self): try: subprocess.run(["systemctl", "poweroff"], check=True)