From 288242195b57cabaad90515e56c6968cc1607571 Mon Sep 17 00:00:00 2001 From: Simple16 Date: Sun, 24 May 2026 09:26:37 +0500 Subject: [PATCH] Updating the English localization --- portprotonqt/detail_pages/__init__.py | 6 +++--- portprotonqt/dialogs/base.py | 2 +- portprotonqt/main_window.py | 8 ++++---- portprotonqt/tabs/control_hints.py | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/portprotonqt/detail_pages/__init__.py b/portprotonqt/detail_pages/__init__.py index 6ff1bd46..0a6c244d 100644 --- a/portprotonqt/detail_pages/__init__.py +++ b/portprotonqt/detail_pages/__init__.py @@ -409,7 +409,7 @@ class DetailPageManager: buttons_layout.addWidget(open_folder_button) else: add_button = self._make_action_button( - _("Add Game"), + _("Add a shortcut"), self.main_window.theme_manager.get_icon("addgame", as_path=True), ) add_button.clicked.connect( @@ -443,7 +443,7 @@ class DetailPageManager: text = _("Stop") icon = self.main_window.theme_manager.get_icon("stop", as_path=True) else: - text = _("Play") + text = _("Start") icon = self.main_window.theme_manager.get_icon("play", as_path=True) play_button = self._make_action_button(text, icon) @@ -700,7 +700,7 @@ class DetailPageManager: def _is_action_button_text(self, text: str) -> bool: """Check if button text is Play or Stop.""" - return text in (_("Play"), _("Stop")) + return text in (_("Start"), _("Stop")) def _on_favorite_click(self, name: str) -> str: """Handle favorite toggle click.""" diff --git a/portprotonqt/dialogs/base.py b/portprotonqt/dialogs/base.py index 892eecce..27f9b2f8 100644 --- a/portprotonqt/dialogs/base.py +++ b/portprotonqt/dialogs/base.py @@ -132,7 +132,7 @@ class AddGameDialog(DraggableDialog): self.last_cover_path = cover_path self.downloader = Downloader(max_workers=4) - self.setWindowTitle(_("Edit Game") if edit_mode else _("Add Game")) + self.setWindowTitle(_("Edit Game") if edit_mode else _("Add a shortcut")) self.setModal(True) self.setFixedWidth(600) self.setFixedHeight(600) diff --git a/portprotonqt/main_window.py b/portprotonqt/main_window.py index cfd57e46..251eb7ad 100644 --- a/portprotonqt/main_window.py +++ b/portprotonqt/main_window.py @@ -1153,7 +1153,7 @@ class MainWindow(MainWindowControlHintsMixin, MainWindowSystemTabMixin, MainWind self.GameLibraryTitle.setStyleSheet(self.theme.INSTALLED_TAB_TITLE_STYLE) layout.addWidget(self.GameLibraryTitle) - self.addGameButton = AutoSizeButton(_("Add Game"), icon=self.theme_manager.get_icon("addgame", as_path=True)) + self.addGameButton = AutoSizeButton(_("Add a shortcut"), icon=self.theme_manager.get_icon("addgame", as_path=True)) self.addGameButton.setStyleSheet(self.theme.ADDGAME_BACK_BUTTON_STYLE) self.addGameButton.setFocusPolicy(Qt.FocusPolicy.NoFocus) self.addGameButton.clicked.connect(self.openAddGameDialog) @@ -1173,7 +1173,7 @@ class MainWindow(MainWindowControlHintsMixin, MainWindowSystemTabMixin, MainWind action_pos = cast(QLineEdit.ActionPosition, QLineEdit.ActionPosition.LeadingPosition) self.searchEdit.addAction(icon, action_pos) self.searchEdit.setMaximumWidth(200) - self.searchEdit.setPlaceholderText(_("Find Games ...")) + self.searchEdit.setPlaceholderText(_("Search ...")) self.searchEdit.setClearButtonEnabled(True) self.searchEdit.setStyleSheet(self.theme.SEARCH_EDIT_STYLE) @@ -1478,7 +1478,7 @@ class MainWindow(MainWindowControlHintsMixin, MainWindowSystemTabMixin, MainWind action_pos = QLineEdit.ActionPosition.LeadingPosition self.autoInstallSearchLineEdit.addAction(icon, action_pos) self.autoInstallSearchLineEdit.setMaximumWidth(200) - self.autoInstallSearchLineEdit.setPlaceholderText(_("Find Games ...")) + self.autoInstallSearchLineEdit.setPlaceholderText(_("Search ...")) self.autoInstallSearchLineEdit.setClearButtonEnabled(True) self.autoInstallSearchLineEdit.setStyleSheet(self.theme.SEARCH_EDIT_STYLE) self.autoInstallSearchLineEdit.textChanged.connect(self.filterAutoInstallGames) @@ -3548,7 +3548,7 @@ class MainWindow(MainWindowControlHintsMixin, MainWindowSystemTabMixin, MainWind """ if self.current_running_button is not None: try: - self.current_running_button.setText(_("Play")) + self.current_running_button.setText(_("Start")) icon = self.theme_manager.get_icon("play", as_path=True) self.current_running_button.setIcon(icon) except RuntimeError: diff --git a/portprotonqt/tabs/control_hints.py b/portprotonqt/tabs/control_hints.py index 87141dce..dbe65dfd 100644 --- a/portprotonqt/tabs/control_hints.py +++ b/portprotonqt/tabs/control_hints.py @@ -201,7 +201,7 @@ class MainWindowControlHintsMixin: gamepad_actions = [ ("confirm", _("Select")), ("back", _("Back")), - ("add_game", _("Add Game")), + ("add_game", _("Add a shortcut")), ("decrease_size", _("Volume") + " -"), ("increase_size", _("Volume") + " +"), ("context_menu", _("Menu")), @@ -216,7 +216,7 @@ class MainWindowControlHintsMixin: keyboard_hints = [ ("key_enter", _("Select")), ("key_backspace", _("Back")), - ("key_e", _("Add Game")), + ("key_e", _("Add a shortcut")), ("key_context", _("Menu")), ("key_f11", _("Fullscreen")), ("key_f5", _("Refresh Grid")), -- 2.54.0