-
Notifications
You must be signed in to change notification settings - Fork 0
fix(i18n): Hauptfenster, Tray und Notifications vollständig übersetzen (Paket-G-Nachzug) #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -198,7 +198,7 @@ def _setup_ui(self) -> None: | |
| self._rec_indicator = QLabel("●") | ||
| self._rec_indicator.setStyleSheet(f"color: {theme.STATE_IDLE}; font-size: 10px;") | ||
| status_row.addWidget(self._rec_indicator) | ||
| self._status_label = QLabel("Bereit") | ||
| self._status_label = QLabel(t("mainwindow.status.ready")) | ||
| self._status_label.setStyleSheet("font-size: 12px; font-weight: 600;") | ||
| status_row.addWidget(self._status_label) | ||
| self._timer_label = QLabel("00:00") | ||
|
|
@@ -213,14 +213,14 @@ def _setup_ui(self) -> None: | |
| # Sekundaerzeile: Verwerfen + Diktat (Pills) | ||
| sec_row = QHBoxLayout() | ||
| sec_row.setSpacing(6) | ||
| self._btn_discard = QPushButton("↺ Verwerfen") | ||
| self._btn_discard = QPushButton(t("mainwindow.button.discard")) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When the main window already exists, changing the interface language in Settings calls Useful? React with 👍 / 👎. |
||
| self._btn_discard.setMinimumHeight(28) | ||
| self._btn_discard.setStyleSheet("border-radius: 14px; font-weight: 600;") | ||
| self._btn_discard.setEnabled(False) | ||
| self._btn_discard.clicked.connect(self._on_discard_clicked) | ||
| sec_row.addWidget(self._btn_discard) | ||
|
|
||
| self._btn_dictation = QPushButton("✎ Diktat") | ||
| self._btn_dictation = QPushButton(t("mainwindow.button.dictation")) | ||
| self._btn_dictation.setMinimumHeight(28) | ||
| self._btn_dictation.setStyleSheet("border-radius: 14px; font-weight: 600;") | ||
| self._btn_dictation.setCheckable(True) | ||
|
|
@@ -231,7 +231,7 @@ def _setup_ui(self) -> None: | |
| # Unterzeile: Verlauf (mit Zaehler), Vorlesen, Einstellungen | ||
| bottom_row = QHBoxLayout() | ||
| bottom_row.setSpacing(6) | ||
| self._btn_history = QPushButton("≡ Verlauf (0)") | ||
| self._btn_history = QPushButton(t("mainwindow.button.history").format(count=0)) | ||
| self._btn_history.setMinimumHeight(28) | ||
| self._btn_history.setStyleSheet(f"border-radius: 14px; color: {theme.APP_TEXT_DIM};") | ||
| self._btn_history.clicked.connect(self._controller.show_history_panel) | ||
|
|
@@ -242,7 +242,7 @@ def _setup_ui(self) -> None: | |
| self._btn_tts.setStyleSheet( | ||
| f"border-radius: 14px; font-size: 13px; color: {theme.APP_TEXT_DIM}; padding: 0;" | ||
| ) | ||
| self._btn_tts.setToolTip("Vorlesen") | ||
| self._btn_tts.setToolTip(t("mainwindow.tooltip.tts")) | ||
| self._btn_tts.clicked.connect(self._controller.show_tts_window) | ||
| bottom_row.addWidget(self._btn_tts) | ||
|
|
||
|
|
@@ -251,7 +251,7 @@ def _setup_ui(self) -> None: | |
| self._btn_settings.setStyleSheet( | ||
| f"border-radius: 14px; font-size: 13px; color: {theme.APP_TEXT_DIM}; padding: 0;" | ||
| ) | ||
| self._btn_settings.setToolTip("Einstellungen") | ||
| self._btn_settings.setToolTip(t("mainwindow.tooltip.settings")) | ||
| self._btn_settings.clicked.connect(self._controller.show_settings_dialog) | ||
| bottom_row.addWidget(self._btn_settings) | ||
| layout.addLayout(bottom_row) | ||
|
|
@@ -295,16 +295,16 @@ def update_state(self, state: str, workflow: Optional[WorkflowType], error: Opti | |
| self._workflow_combo.setEnabled(state == "IDLE") | ||
|
|
||
| if error: | ||
| self._set_status("Fehler", theme.STATE_ERROR) | ||
| self._set_status(t("mainwindow.status.error"), theme.STATE_ERROR) | ||
| elif recording: | ||
| # Der Workflow steht bereits im Dropdown darueber — kein Suffix noetig. | ||
| self._set_status("Aufnahme läuft…", theme.STATE_RECORDING) | ||
| self._set_status(t("mainwindow.status.recording"), theme.STATE_RECORDING) | ||
| elif state == "TRANSCRIBING": | ||
| self._set_status("Transkribiere…", theme.STATE_PROCESSING) | ||
| self._set_status(t("mainwindow.status.transcribing"), theme.STATE_PROCESSING) | ||
| elif state == "LLM_REWRITING": | ||
| self._set_status("Verarbeite mit KI…", theme.STATE_PROCESSING) | ||
| self._set_status(t("mainwindow.status.processing"), theme.STATE_PROCESSING) | ||
| else: | ||
| self._set_status("Bereit", theme.STATE_IDLE) | ||
| self._set_status(t("mainwindow.status.ready"), theme.STATE_IDLE) | ||
|
|
||
| if recording: | ||
| if self._rec_start is None: | ||
|
|
@@ -336,7 +336,7 @@ def _set_status(self, text: str, color: str) -> None: | |
| self._rec_indicator.setStyleSheet(f"color: {color}; font-size: 10px;") | ||
|
|
||
| def set_history_count(self, count: int) -> None: | ||
| self._btn_history.setText(f"≡ Verlauf ({count})") | ||
| self._btn_history.setText(t("mainwindow.button.history").format(count=count)) | ||
|
|
||
| def set_dictation_checked(self, checked: bool) -> None: | ||
| self._btn_dictation.blockSignals(True) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These newly translated tray actions are only evaluated during
setup_tray(), while the Settings save path calls_refresh_i18n_texts()without updatingaction_dictation,action_history, oraction_tts. In an app started in English, switching the interface language to Deutsch leaves these tray menu entries in English until restart, so the saved language change is only partially applied.Useful? React with 👍 / 👎.