diff --git a/documentation/localization_guide/README.md b/documentation/localization_guide/README.md index 659e211..c86b8b2 100644 --- a/documentation/localization_guide/README.md +++ b/documentation/localization_guide/README.md @@ -21,9 +21,9 @@ Current translation status: | Locale | Progress | Translated | | :----- | -------: | ---------: | -| [de_DE](./de_DE/LC_MESSAGES/messages.po) | 0% | 0 of 204 | -| [es_ES](./es_ES/LC_MESSAGES/messages.po) | 0% | 0 of 204 | -| [ru_RU](./ru_RU/LC_MESSAGES/messages.po) | 100% | 204 of 204 | +| [de_DE](./de_DE/LC_MESSAGES/messages.po) | 0% | 0 of 193 | +| [es_ES](./es_ES/LC_MESSAGES/messages.po) | 0% | 0 of 193 | +| [ru_RU](./ru_RU/LC_MESSAGES/messages.po) | 100% | 193 of 193 | --- diff --git a/documentation/localization_guide/README.ru.md b/documentation/localization_guide/README.ru.md index 618f81e..1e6cb0a 100644 --- a/documentation/localization_guide/README.ru.md +++ b/documentation/localization_guide/README.ru.md @@ -21,9 +21,9 @@ | Локаль | Прогресс | Переведено | | :----- | -------: | ---------: | -| [de_DE](./de_DE/LC_MESSAGES/messages.po) | 0% | 0 из 204 | -| [es_ES](./es_ES/LC_MESSAGES/messages.po) | 0% | 0 из 204 | -| [ru_RU](./ru_RU/LC_MESSAGES/messages.po) | 100% | 204 из 204 | +| [de_DE](./de_DE/LC_MESSAGES/messages.po) | 0% | 0 из 193 | +| [es_ES](./es_ES/LC_MESSAGES/messages.po) | 0% | 0 из 193 | +| [ru_RU](./ru_RU/LC_MESSAGES/messages.po) | 100% | 193 из 193 | --- diff --git a/portprotonqt/dialogs.py b/portprotonqt/dialogs.py index e0f0525..9cb0a90 100644 --- a/portprotonqt/dialogs.py +++ b/portprotonqt/dialogs.py @@ -336,7 +336,7 @@ class FileExplorer(QDialog): mounted_drives.append(mount_point) return sorted(mounted_drives) except Exception as e: - logger.error(_("Error retrieving mounted drives: %s"), str(e)) + logger.error(f"Error retrieving mounted drives: {e}") return [] def setup_ui(self): @@ -398,7 +398,7 @@ class FileExplorer(QDialog): if self.context_menu_manager: self.context_menu_manager.show_folder_context_menu(self, pos) else: - logger.warning(_("ContextMenuManager not found in parent")) + logger.warning("ContextMenuManager not found in parent") def move_selection(self, direction): """Move selection in the list.""" diff --git a/portprotonqt/locales/de_DE/LC_MESSAGES/messages.mo b/portprotonqt/locales/de_DE/LC_MESSAGES/messages.mo index ad295e6..bc8f1aa 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 28cdcf3..184dfe8 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-09-13 11:51+0500\n" +"POT-Creation-Date: 2025-09-23 22:23+0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language: de_DE\n" @@ -23,7 +23,7 @@ msgstr "" msgid "Error" msgstr "" -msgid "PortProton is not found" +msgid "PortProton directory not found" msgstr "" msgid "Remove from Favorites" @@ -155,7 +155,7 @@ msgid "Menu" msgstr "" #, python-brace-format -msgid "No executable command in .desktop file for '{game_name}'" +msgid "No executable command found in .desktop file for '{game_name}'" msgstr "" #, python-brace-format @@ -163,7 +163,7 @@ msgid "Failed to parse .desktop file for '{game_name}'" msgstr "" #, python-brace-format -msgid "Failed to read .desktop file: {error}" +msgid "Error reading .desktop file: {error}" msgstr "" #, python-brace-format @@ -264,6 +264,10 @@ msgstr "" msgid "Path: " msgstr "" +#, python-format +msgid "Access denied: %s" +msgstr "" + msgid "Edit Game" msgstr "" @@ -456,21 +460,6 @@ msgstr "" msgid "Gamepad haptic feedback:" 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 "" @@ -480,28 +469,6 @@ msgstr "" msgid "Clear Cache" msgstr "" -msgid "Opened Legendary login page in browser" -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 "" diff --git a/portprotonqt/locales/es_ES/LC_MESSAGES/messages.mo b/portprotonqt/locales/es_ES/LC_MESSAGES/messages.mo index 44cb289..28f3ddf 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 f088311..c50ddfb 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-09-13 11:51+0500\n" +"POT-Creation-Date: 2025-09-23 22:23+0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language: es_ES\n" @@ -23,7 +23,7 @@ msgstr "" msgid "Error" msgstr "" -msgid "PortProton is not found" +msgid "PortProton directory not found" msgstr "" msgid "Remove from Favorites" @@ -155,7 +155,7 @@ msgid "Menu" msgstr "" #, python-brace-format -msgid "No executable command in .desktop file for '{game_name}'" +msgid "No executable command found in .desktop file for '{game_name}'" msgstr "" #, python-brace-format @@ -163,7 +163,7 @@ msgid "Failed to parse .desktop file for '{game_name}'" msgstr "" #, python-brace-format -msgid "Failed to read .desktop file: {error}" +msgid "Error reading .desktop file: {error}" msgstr "" #, python-brace-format @@ -264,6 +264,10 @@ msgstr "" msgid "Path: " msgstr "" +#, python-format +msgid "Access denied: %s" +msgstr "" + msgid "Edit Game" msgstr "" @@ -456,21 +460,6 @@ msgstr "" msgid "Gamepad haptic feedback:" 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 "" @@ -480,28 +469,6 @@ msgstr "" msgid "Clear Cache" msgstr "" -msgid "Opened Legendary login page in browser" -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 "" diff --git a/portprotonqt/locales/messages.pot b/portprotonqt/locales/messages.pot index 9ba6d7d..79bb871 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-09-13 11:51+0500\n" +"POT-Creation-Date: 2025-09-23 22:23+0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -21,7 +21,7 @@ msgstr "" msgid "Error" msgstr "" -msgid "PortProton is not found" +msgid "PortProton directory not found" msgstr "" msgid "Remove from Favorites" @@ -153,7 +153,7 @@ msgid "Menu" msgstr "" #, python-brace-format -msgid "No executable command in .desktop file for '{game_name}'" +msgid "No executable command found in .desktop file for '{game_name}'" msgstr "" #, python-brace-format @@ -161,7 +161,7 @@ msgid "Failed to parse .desktop file for '{game_name}'" msgstr "" #, python-brace-format -msgid "Failed to read .desktop file: {error}" +msgid "Error reading .desktop file: {error}" msgstr "" #, python-brace-format @@ -262,6 +262,10 @@ msgstr "" msgid "Path: " msgstr "" +#, python-format +msgid "Access denied: %s" +msgstr "" + msgid "Edit Game" msgstr "" @@ -454,21 +458,6 @@ msgstr "" msgid "Gamepad haptic feedback:" 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 "" @@ -478,28 +467,6 @@ msgstr "" msgid "Clear Cache" msgstr "" -msgid "Opened Legendary login page in browser" -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 "" diff --git a/portprotonqt/locales/ru_RU/LC_MESSAGES/messages.mo b/portprotonqt/locales/ru_RU/LC_MESSAGES/messages.mo index ca14c43..597ad48 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 d559f34..ccb5e7c 100644 --- a/portprotonqt/locales/ru_RU/LC_MESSAGES/messages.po +++ b/portprotonqt/locales/ru_RU/LC_MESSAGES/messages.po @@ -9,23 +9,24 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2025-09-13 11:51+0500\n" -"PO-Revision-Date: 2025-09-13 11:47+0500\n" +"POT-Creation-Date: 2025-09-23 22:23+0500\n" +"PO-Revision-Date: 2025-09-23 22:23+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 "Ошибка" -msgid "PortProton is not found" -msgstr "PortProton не найден" +msgid "PortProton directory not found" +msgstr "Не найден каталог PortProton" msgid "Remove from Favorites" msgstr "Удалить из Избранного" @@ -86,11 +87,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}" @@ -158,16 +159,16 @@ msgid "Menu" msgstr "Меню" #, python-brace-format -msgid "No executable command in .desktop file for '{game_name}'" -msgstr "В файле .desktop для '{game_name}' отсутствует исполняемая команда" +msgid "No executable command found in .desktop file for '{game_name}'" +msgstr "В файле .desktop не найдена исполняемая команда для '{game_name}'" #, python-brace-format msgid "Failed to parse .desktop file for '{game_name}'" msgstr "Не удалось разобрать файл .desktop для '{game_name}'" #, python-brace-format -msgid "Failed to read .desktop file: {error}" -msgstr "Не удалось прочитать файл .desktop: {error}" +msgid "Error reading .desktop file: {error}" +msgstr "Ошибка при чтении файла .desktop: {error}" #, python-brace-format msgid "No .desktop file found for '{game_name}'" @@ -178,11 +179,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}" @@ -224,11 +225,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," -" чтобы изменения вступили в силу." +"'{game_name}' был(а) удалён(а) из Steam. Пожалуйста, перезапустите Steam, чтобы " +"изменения вступили в силу." #, python-brace-format msgid "Failed to remove game '{game_name}' from Steam: {error}" @@ -271,6 +272,10 @@ msgstr "Выбрать" msgid "Path: " msgstr "Путь: " +#, python-format +msgid "Access denied: %s" +msgstr "Доступ запрещен: %s" + msgid "Edit Game" msgstr "Редактировать игру" @@ -370,7 +375,6 @@ msgstr "Темы" msgid "Back" msgstr "Назад" -#, fuzzy msgid "Fullscreen" msgstr "Полный экран" @@ -464,21 +468,6 @@ msgstr "Тактильная отдача на геймпаде" msgid "Gamepad haptic feedback:" 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 "Сохранить настройки" @@ -488,35 +477,12 @@ msgstr "Сбросить настройки" msgid "Clear Cache" msgstr "Очистить кэш" -msgid "Opened Legendary login page in browser" -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 "Подтвердите удаление" msgid "Are you sure you want to reset all settings? This action cannot be undone." msgstr "" -"Вы уверены, что хотите сбросить все настройки? Это действие нельзя " -"отменить." +"Вы уверены, что хотите сбросить все настройки? Это действие нельзя отменить." msgid "Settings reset. Restarting..." msgstr "Настройки сброшены. Перезапуск..." @@ -688,4 +654,3 @@ msgstr "Нет избранных" msgid "No recent games" msgstr "Нет недавних игр" -