From 07765a7a196d20a3220062fe918c63bad7e40ab1 Mon Sep 17 00:00:00 2001 From: oop7 <110548351+oop7@users.noreply.github.com> Date: Sat, 24 Jan 2026 19:50:36 +0200 Subject: [PATCH] Replace hardcoded strings with translatable keys Updated status and error messages in HistoryDialog to use translation keys instead of hardcoded English strings, improving internationalization support. --- src/gui/ytsage_gui_dialogs/ytsage_dialogs_history.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/ytsage_gui_dialogs/ytsage_dialogs_history.py b/src/gui/ytsage_gui_dialogs/ytsage_dialogs_history.py index 5227656..6c41906 100644 --- a/src/gui/ytsage_gui_dialogs/ytsage_dialogs_history.py +++ b/src/gui/ytsage_gui_dialogs/ytsage_dialogs_history.py @@ -435,7 +435,7 @@ class HistoryDialog(QDialog): layout.addWidget(self.status_label) def show_loading_state(self): - self.status_label.setText("Loading history...") + self.status_label.setText(_("history.loading")) self.clear_btn.setEnabled(False) def start_loading_history(self): @@ -517,7 +517,7 @@ class HistoryDialog(QDialog): path = Path(path_str) if not path.exists(): - QMessageBox.warning(self, "Error", f"File not found: {path}") + QMessageBox.warning(self, _("main_ui.error_title"), _("history.file_not_found_message", path=path)) return try: