2 Commits

Author SHA1 Message Date
0f74a47aed chore(localization): update
All checks were successful
Check Translations (disabled until yaspeller is fixed) / check-translations (push) Has been skipped
Code check / Check code (push) Successful in 1m31s
Signed-off-by: Boris Yumankulov <boria138@altlinux.org>
2025-11-24 23:49:29 +05:00
666ec654a0 fix(ui): prevent text truncation in show_gamepad_tooltip
Signed-off-by: Boris Yumankulov <boria138@altlinux.org>
2025-11-24 23:34:57 +05:00
11 changed files with 87 additions and 202 deletions

View File

@@ -21,9 +21,9 @@ Current translation status:
| Locale | Progress | Translated |
| :----- | -------: | ---------: |
| [de_DE](./de_DE/LC_MESSAGES/messages.po) | 0% | 0 of 339 |
| [es_ES](./es_ES/LC_MESSAGES/messages.po) | 0% | 0 of 339 |
| [ru_RU](./ru_RU/LC_MESSAGES/messages.po) | 100% | 339 of 339 |
| [de_DE](./de_DE/LC_MESSAGES/messages.po) | 0% | 0 of 338 |
| [es_ES](./es_ES/LC_MESSAGES/messages.po) | 0% | 0 of 338 |
| [ru_RU](./ru_RU/LC_MESSAGES/messages.po) | 100% | 338 of 338 |
---

View File

@@ -21,9 +21,9 @@
| Локаль | Прогресс | Переведено |
| :----- | -------: | ---------: |
| [de_DE](./de_DE/LC_MESSAGES/messages.po) | 0% | 0 из 339 |
| [es_ES](./es_ES/LC_MESSAGES/messages.po) | 0% | 0 из 339 |
| [ru_RU](./ru_RU/LC_MESSAGES/messages.po) | 100% | 339 из 339 |
| [de_DE](./de_DE/LC_MESSAGES/messages.po) | 0% | 0 из 338 |
| [es_ES](./es_ES/LC_MESSAGES/messages.po) | 0% | 0 из 338 |
| [ru_RU](./ru_RU/LC_MESSAGES/messages.po) | 100% | 338 из 338 |
---

View File

@@ -2326,43 +2326,28 @@ class ExeSettingsDialog(QDialog):
def show_gamepad_tooltip(self, show=True, text=""):
"""Show or hide the gamepad tooltip with the provided text."""
if show and text:
# First set the text to measure the required size
# Set the text to the tooltip
self.gamepad_tooltip.setText(text)
# Calculate appropriate size based on text content
# Temporarily set a large size to allow proper text wrapping measurement
self.gamepad_tooltip.setFixedSize(500, 300)
# Use font metrics to calculate the proper size with Qt's wrapping
font_metrics = self.gamepad_tooltip.fontMetrics()
# Calculate text dimensions - wrap at max width
max_width = 500 # Maximum width in pixels
text_lines = text.split('\n') # Handle multiline text
# If text is longer than can fit in a single line at max width, wrap it
wrapped_lines = []
for line in text_lines:
if font_metrics.horizontalAdvance(line) <= max_width:
wrapped_lines.append(line)
else:
# Word wrap the line to fit within max width
words = line.split(' ')
current_line = ''
for word in words:
test_line = current_line + ' ' + word if current_line else word
if font_metrics.horizontalAdvance(test_line) <= max_width:
current_line = test_line
else:
if current_line:
wrapped_lines.append(current_line)
current_line = word
if current_line:
wrapped_lines.append(current_line)
# Calculate the required size using Qt's text wrapping functionality
# We'll allow Qt to do the wrapping and measure accordingly
# Using the boundingRect with TextWordWrap flag for accurate measurement
text_rect = font_metrics.boundingRect(
0, 0, max_width - 20, 1000, # Leave space for padding
Qt.TextFlag.TextWordWrap | Qt.TextFlag.TextExpandTabs,
text
)
# Set the final wrapped text
wrapped_text = '\n'.join(wrapped_lines)
self.gamepad_tooltip.setText(wrapped_text)
# Calculate the required size
rect = font_metrics.boundingRect(0, 0, max_width, 1000, Qt.TextFlag.TextWordWrap, wrapped_text)
required_width = min(max_width, rect.width() + 20) # Add padding
required_height = min(300, rect.height() + 16) # Add padding, max height 300
# Calculate final dimensions with sufficient padding
required_width = min(max_width, text_rect.width() + 25) # Add padding
required_height = min(300, text_rect.height() + 25) # Add padding
# Position the tooltip near the currently focused cell
current_table = self.advanced_table if self.tab_widget.currentIndex() == 1 else self.settings_table

View File

@@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2025-11-23 15:42+0500\n"
"POT-Creation-Date: 2025-11-24 23:48+0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: de_DE\n"
@@ -896,9 +896,6 @@ msgstr ""
msgid "Run the application in a terminal"
msgstr ""
msgid "Disable startup mode and WINE version selector window"
msgstr ""
msgid "Use system GameMode for performance optimization"
msgstr ""
@@ -971,10 +968,10 @@ msgstr ""
msgid "Prefix Name"
msgstr ""
msgid "Select the Wine prefix to use."
msgid "Specify the Wine prefix to run this game with"
msgstr ""
msgid "Latest"
msgid "Newest"
msgstr ""
msgid "Stable"
@@ -984,31 +981,15 @@ msgid "Vulkan Backend"
msgstr ""
msgid ""
"Select the rendering backend for translating DirectX → Vulkan/OpenGL:\n"
"Select the DirectX → Vulkan/OpenGL backend:\n"
"\n"
"• Auto latest DXVK + VKD3D (recommended)\n"
" The newest versions from the developers. Give the best compatibility "
"and performance in modern games.\n"
" Require up-to-date drivers:\n"
" AMD: Mesa 25.0+ or proprietary AMDVLK 2024.Q4+\n"
" NVIDIA: driver 550.54.14 or newer\n"
" Intel: Mesa 24.2+\n"
"\n"
"• Stable proven DXVK + VKD3D\n"
" Older but extremely well-tested versions. Work on any drivers that "
"support Vulkan 1.3+.\n"
" The best choice if you have problems with the newest versions.\n"
"\n"
"• Sarek experimental DXVK-Sarek + VKD3D-Sarek\n"
" Work even on older drivers and video cards that support at least "
"Vulkan 1.1.\n"
"\n"
"• WINED3D OpenGL translation (fallback)\n"
" No DXVK/VKD3D used. DirectX is translated to OpenGL via built-in "
"WineD3D.\n"
" Works on absolutely any hardware, but performance is significantly "
"lower.\n"
" Use only as a last resort when nothing else starts."
"• Newest latest DXVK + VKD3D (best compatibility/performance, requires "
"modern drivers: AMD Mesa 25+, NVIDIA 550.54.14+, Intel Mesa 24.2+)\n"
"• Stable older, well-tested DXVK + VKD3D (works on any Vulkan 1.3+ "
"driver)\n"
"• Sarek experimental DXVK-Sarek + VKD3D-Sarek (supports older drivers, "
"Vulkan 1.1+)\n"
"• WINED3D OpenGL fallback (lowest performance, use only if others fail)"
msgstr ""
msgid "Windows version"

View File

@@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2025-11-23 15:42+0500\n"
"POT-Creation-Date: 2025-11-24 23:48+0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: es_ES\n"
@@ -896,9 +896,6 @@ msgstr ""
msgid "Run the application in a terminal"
msgstr ""
msgid "Disable startup mode and WINE version selector window"
msgstr ""
msgid "Use system GameMode for performance optimization"
msgstr ""
@@ -971,10 +968,10 @@ msgstr ""
msgid "Prefix Name"
msgstr ""
msgid "Select the Wine prefix to use."
msgid "Specify the Wine prefix to run this game with"
msgstr ""
msgid "Latest"
msgid "Newest"
msgstr ""
msgid "Stable"
@@ -984,31 +981,15 @@ msgid "Vulkan Backend"
msgstr ""
msgid ""
"Select the rendering backend for translating DirectX → Vulkan/OpenGL:\n"
"Select the DirectX → Vulkan/OpenGL backend:\n"
"\n"
"• Auto latest DXVK + VKD3D (recommended)\n"
" The newest versions from the developers. Give the best compatibility "
"and performance in modern games.\n"
" Require up-to-date drivers:\n"
" AMD: Mesa 25.0+ or proprietary AMDVLK 2024.Q4+\n"
" NVIDIA: driver 550.54.14 or newer\n"
" Intel: Mesa 24.2+\n"
"\n"
"• Stable proven DXVK + VKD3D\n"
" Older but extremely well-tested versions. Work on any drivers that "
"support Vulkan 1.3+.\n"
" The best choice if you have problems with the newest versions.\n"
"\n"
"• Sarek experimental DXVK-Sarek + VKD3D-Sarek\n"
" Work even on older drivers and video cards that support at least "
"Vulkan 1.1.\n"
"\n"
"• WINED3D OpenGL translation (fallback)\n"
" No DXVK/VKD3D used. DirectX is translated to OpenGL via built-in "
"WineD3D.\n"
" Works on absolutely any hardware, but performance is significantly "
"lower.\n"
" Use only as a last resort when nothing else starts."
"• Newest latest DXVK + VKD3D (best compatibility/performance, requires "
"modern drivers: AMD Mesa 25+, NVIDIA 550.54.14+, Intel Mesa 24.2+)\n"
"• Stable older, well-tested DXVK + VKD3D (works on any Vulkan 1.3+ "
"driver)\n"
"• Sarek experimental DXVK-Sarek + VKD3D-Sarek (supports older drivers, "
"Vulkan 1.1+)\n"
"• WINED3D OpenGL fallback (lowest performance, use only if others fail)"
msgstr ""
msgid "Windows version"

View File

@@ -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-11-23 15:43+0500\n"
"POT-Creation-Date: 2025-11-24 23:48+0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -894,9 +894,6 @@ msgstr ""
msgid "Run the application in a terminal"
msgstr ""
msgid "Disable startup mode and WINE version selector window"
msgstr ""
msgid "Use system GameMode for performance optimization"
msgstr ""
@@ -969,10 +966,10 @@ msgstr ""
msgid "Prefix Name"
msgstr ""
msgid "Select the Wine prefix to use."
msgid "Specify the Wine prefix to run this game with"
msgstr ""
msgid "Latest"
msgid "Newest"
msgstr ""
msgid "Stable"
@@ -982,31 +979,15 @@ msgid "Vulkan Backend"
msgstr ""
msgid ""
"Select the rendering backend for translating DirectX → Vulkan/OpenGL:\n"
"Select the DirectX → Vulkan/OpenGL backend:\n"
"\n"
"• Auto latest DXVK + VKD3D (recommended)\n"
" The newest versions from the developers. Give the best compatibility "
"and performance in modern games.\n"
" Require up-to-date drivers:\n"
" AMD: Mesa 25.0+ or proprietary AMDVLK 2024.Q4+\n"
" NVIDIA: driver 550.54.14 or newer\n"
" Intel: Mesa 24.2+\n"
"\n"
"• Stable proven DXVK + VKD3D\n"
" Older but extremely well-tested versions. Work on any drivers that "
"support Vulkan 1.3+.\n"
" The best choice if you have problems with the newest versions.\n"
"\n"
"• Sarek experimental DXVK-Sarek + VKD3D-Sarek\n"
" Work even on older drivers and video cards that support at least "
"Vulkan 1.1.\n"
"\n"
"• WINED3D OpenGL translation (fallback)\n"
" No DXVK/VKD3D used. DirectX is translated to OpenGL via built-in "
"WineD3D.\n"
" Works on absolutely any hardware, but performance is significantly "
"lower.\n"
" Use only as a last resort when nothing else starts."
"• Newest latest DXVK + VKD3D (best compatibility/performance, requires "
"modern drivers: AMD Mesa 25+, NVIDIA 550.54.14+, Intel Mesa 24.2+)\n"
"• Stable older, well-tested DXVK + VKD3D (works on any Vulkan 1.3+ "
"driver)\n"
"• Sarek experimental DXVK-Sarek + VKD3D-Sarek (supports older drivers, "
"Vulkan 1.1+)\n"
"• WINED3D OpenGL fallback (lowest performance, use only if others fail)"
msgstr ""
msgid "Windows version"

View File

@@ -9,8 +9,8 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2025-11-23 15:42+0500\n"
"PO-Revision-Date: 2025-11-23 15:42+0500\n"
"POT-Creation-Date: 2025-11-24 23:48+0500\n"
"PO-Revision-Date: 2025-11-24 23:47+0500\n"
"Last-Translator: \n"
"Language: ru_RU\n"
"Language-Team: ru_RU <LL@li.org>\n"
@@ -921,9 +921,6 @@ msgstr "Запускать приложение в виртуальном раб
msgid "Run the application in a terminal"
msgstr "Запускать приложение в терминале"
msgid "Disable startup mode and WINE version selector window"
msgstr "Отключить окно выбора режима запуска и версии WINE"
msgid "Use system GameMode for performance optimization"
msgstr "Использовать системный GameMode для оптимизации производительности"
@@ -996,68 +993,40 @@ msgstr "Выбор версии Wine или Proton для использован
msgid "Prefix Name"
msgstr "Имя префикса"
msgid "Select the Wine prefix to use."
msgstr "Выбор версии Wine для использования."
msgid "Specify the Wine prefix to run this game with"
msgstr "Укажите префикс Wine для запуска этой игры"
msgid "Latest"
msgstr "Последние"
msgid "Newest"
msgstr "Новейший"
msgid "Stable"
msgstr "Стабильные"
msgstr "Стабильный"
msgid "Vulkan Backend"
msgstr "Vulkan рендеринг"
msgid ""
"Select the rendering backend for translating DirectX → Vulkan/OpenGL:\n"
"Select the DirectX → Vulkan/OpenGL backend:\n"
"\n"
"• Auto latest DXVK + VKD3D (recommended)\n"
" The newest versions from the developers. Give the best compatibility "
"and performance in modern games.\n"
" Require up-to-date drivers:\n"
" AMD: Mesa 25.0+ or proprietary AMDVLK 2024.Q4+\n"
" NVIDIA: driver 550.54.14 or newer\n"
" Intel: Mesa 24.2+\n"
"\n"
"• Stable proven DXVK + VKD3D\n"
" Older but extremely well-tested versions. Work on any drivers that "
"support Vulkan 1.3+.\n"
" The best choice if you have problems with the newest versions.\n"
"\n"
"• Sarek experimental DXVK-Sarek + VKD3D-Sarek\n"
" Work even on older drivers and video cards that support at least "
"Vulkan 1.1.\n"
"\n"
"• WINED3D OpenGL translation (fallback)\n"
" No DXVK/VKD3D used. DirectX is translated to OpenGL via built-in "
"WineD3D.\n"
" Works on absolutely any hardware, but performance is significantly "
"lower.\n"
" Use only as a last resort when nothing else starts."
"• Newest latest DXVK + VKD3D (best compatibility/performance, requires "
"modern drivers: AMD Mesa 25+, NVIDIA 550.54.14+, Intel Mesa 24.2+)\n"
"• Stable older, well-tested DXVK + VKD3D (works on any Vulkan 1.3+ "
"driver)\n"
"• Sarek experimental DXVK-Sarek + VKD3D-Sarek (supports older drivers, "
"Vulkan 1.1+)\n"
"• WINED3D OpenGL fallback (lowest performance, use only if others fail)"
msgstr ""
"Выбор рендеринга для трансляции DirectX → Vulkan/OpenGL:\n"
"Выберите бэкэнд DirectX → Vulkan/OpenGL:\n"
"\n"
"• Авто последние версии DXVK + VKD3D (рекомендуется)\n"
" Новейшие версии от разработчиков. Обеспечивают наилучшую совместимость и"
" производительность в современных играх.\n"
" Требуются актуальные драйверы:\n"
" AMD: Mesa 25.0+ или проприетарный AMDVLK 2024.Q4+\n"
" NVIDIA: 550.54.14 или новее\n"
" Intel: Mesa 24.2+\n"
"\n"
"• Стабильный проверенные версии DXVK + VKD3D\n"
" Более старые, но тщательно протестированные версии. Работают с любыми "
"драйверами, поддерживающие Vulkan 1.3+.\n"
" Лучший выбор, если у вас возникли проблемы с последними версиями.\n"
"\n"
"• Sarek экспериментальная версия DXVK-Sarek + VKD3D-Sarek\n"
"Работает даже на старых драйверах и видеокартах, поддерживающих как "
"минимум Vulkan 1.1.\n"
"• WINED3D трансляция OpenGL (для видеокарт без поддержки Vulkan)\n"
"DXVK/VKD3D не используется. DirectX транслируется в OpenGL через "
"встроенную WineD3D.Работает абсолютно на любом оборудовании, но "
"производительность значительно снижается.Используйте только в крайнем "
"случае, когда ничего другое не запускается."
"• Новейший — последние версии DXVK + VKD3D (наилучшая "
"совместимость/производительность, требует современных драйверов: AMD Mesa"
" 25+, NVIDIA 550.54.14+, Intel Mesa 24.2+)\n"
"• Стабильный — более старая, хорошо протестированная версия DXVK + VKD3D "
"(работает с любыми драйверами Vulkan 1.3+)\n"
"• Sarek — экспериментальная версия DXVK-Sarek + VKD3D-Sarek (поддерживает"
" более старые драйверы, Vulkan 1.1+)\n"
"• WINED3D — резервный вариант OpenGL (наименьшая производительность, "
"используйте только в случае сбоя других вариантов)"
msgid "Windows version"
msgstr "Версия Windows"

View File

@@ -20,7 +20,6 @@ def get_toggle_settings():
'PW_HIDE_NVIDIA_GPU': _("Disguise all NVIDIA GPU features"),
'PW_VIRTUAL_DESKTOP': _("Run the application in WINE virtual desktop"),
'PW_USE_TERMINAL': _("Run the application in a terminal"),
'PW_GUI_DISABLED_CS': _("Disable startup mode and WINE version selector window"),
'PW_USE_GAMEMODE': _("Use system GameMode for performance optimization"),
'PW_USE_D3D_EXTRAS': _("Enable forced use of third-party DirectX libraries"),
'PW_FIX_VIDEO_IN_GAME': _("Fix pink-tinted video playback in some games"),
@@ -70,7 +69,7 @@ def get_advanced_settings(disabled_text, logical_core_options, locale_options,
advanced_settings.append({
'key': 'PW_PREFIX_NAME',
'name': _("Prefix Name"),
'description': _("Select the Wine prefix to use."),
'description': _("Specify the Wine prefix to run this game with"),
'type': 'combo',
'options': prefix_options,
'default': 'DEFAULT'
@@ -78,7 +77,7 @@ def get_advanced_settings(disabled_text, logical_core_options, locale_options,
# 3. Vulkan Backend
vulkan_options = [
_("Latest"), # → 6
_("Newest"), # → 6
_("Stable"), # → 2
("Sarek"), # → 1
("WINED3D OpenGL") # → 0
@@ -96,22 +95,11 @@ def get_advanced_settings(disabled_text, logical_core_options, locale_options,
'key': 'PW_VULKAN_USE',
'name': _("Vulkan Backend"),
'description': _(
"Select the rendering backend for translating DirectX → Vulkan/OpenGL:\n\n"
"Auto latest DXVK + VKD3D (recommended)\n"
" The newest versions from the developers. Give the best compatibility and performance in modern games.\n"
" Require up-to-date drivers:\n"
" AMD: Mesa 25.0+ or proprietary AMDVLK 2024.Q4+\n"
" NVIDIA: driver 550.54.14 or newer\n"
" Intel: Mesa 24.2+\n\n"
"• Stable proven DXVK + VKD3D\n"
" Older but extremely well-tested versions. Work on any drivers that support Vulkan 1.3+.\n"
" The best choice if you have problems with the newest versions.\n\n"
"• Sarek experimental DXVK-Sarek + VKD3D-Sarek\n"
" Work even on older drivers and video cards that support at least Vulkan 1.1.\n\n"
"• WINED3D OpenGL translation (fallback)\n"
" No DXVK/VKD3D used. DirectX is translated to OpenGL via built-in WineD3D.\n"
" Works on absolutely any hardware, but performance is significantly lower.\n"
" Use only as a last resort when nothing else starts."
"Select the DirectX → Vulkan/OpenGL backend:\n\n"
"Newest latest DXVK + VKD3D (best compatibility/performance, requires modern drivers: AMD Mesa 25+, NVIDIA 550.54.14+, Intel Mesa 24.2+)\n"
"• Stable older, well-tested DXVK + VKD3D (works on any Vulkan 1.3+ driver)\n"
"• Sarek experimental DXVK-Sarek + VKD3D-Sarek (supports older drivers, Vulkan 1.1+)\n"
"• WINED3D OpenGL fallback (lowest performance, use only if others fail)"
),
'type': 'combo',
'options': vulkan_options,