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 0f3b271..71e89d7 100644 Binary files a/portprotonqt/locales/de_DE/LC_MESSAGES/messages.mo and b/portprotonqt/locales/de_DE/LC_MESSAGES/messages.mo differ 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 50770aa..1c9c621 100644 Binary files a/portprotonqt/locales/es_ES/LC_MESSAGES/messages.mo and b/portprotonqt/locales/es_ES/LC_MESSAGES/messages.mo differ 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 d774613..6ce2539 100644 Binary files a/portprotonqt/locales/ru_RU/LC_MESSAGES/messages.mo and b/portprotonqt/locales/ru_RU/LC_MESSAGES/messages.mo differ diff --git a/portprotonqt/locales/ru_RU/LC_MESSAGES/messages.po b/portprotonqt/locales/ru_RU/LC_MESSAGES/messages.po index 3fe79d9..d555b37 100644 --- a/portprotonqt/locales/ru_RU/LC_MESSAGES/messages.po +++ b/portprotonqt/locales/ru_RU/LC_MESSAGES/messages.po @@ -9,8 +9,8 @@ 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" -"PO-Revision-Date: 2025-06-06 20:01+0500\n" +"POT-Creation-Date: 2025-06-08 09:31+0500\n" +"PO-Revision-Date: 2025-06-08 09:31+0500\n" "Last-Translator: \n" "Language: ru_RU\n" "Language-Team: ru_RU \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)