diff libgui/src/gui-preferences-sd.h @ 31558:69c8979f8b2c stable

fix missing trnaslation for new strings in settings dialog (bug #63404) * gui-preferences-sd.h: move new string constants to here * gui-settings.h: move new string constatns from here but leave the constants that are required in several different widgets * settings-dialog.cc (settings_dialog): use tr () for new strings here, too; (read_workspace_colors): dito; (read_terminal_colors): dito; (read_varedit_colors): dito;
author Torsten Lilge <ttl-octave@mailbox.org>
date Sun, 27 Nov 2022 11:27:29 +0100
parents 796f54d4ddbf
children aae24eaf89ad 597f3ee61a48
line wrap: on
line diff
--- a/libgui/src/gui-preferences-sd.h	Sat Nov 26 17:08:30 2022 -0500
+++ b/libgui/src/gui-preferences-sd.h	Sun Nov 27 11:27:29 2022 +0100
@@ -39,4 +39,28 @@
 const gui_pref
 sd_last_editor_styles_tab ("settings/last_editor_styles_tab", QVariant (0));
 
+// Textstrings for second color schemes
+const QString settings_color_modes = QT_TRANSLATE_NOOP (
+    "octave::settings_dialog",
+    "Second color mode (light/dark)");
+const QString settings_color_modes_tooltip = QT_TRANSLATE_NOOP (
+    "octave::settings_dialog",
+    "Switches to another set of colors.\n"
+    "Useful for defining a dark/light mode.\n"
+    "Discards non-applied current changes!");
+const QString settings_reload_colors = QT_TRANSLATE_NOOP (
+    "octave::settings_dialog",
+    "&Reload default colors");
+const QString settings_reload_colors_tooltip = QT_TRANSLATE_NOOP (
+    "octave::settings_dialog",
+    "Reloads the default colors,\n"
+    "depending on currently selected mode.");
+const QString settings_reload_styles = QT_TRANSLATE_NOOP (
+    "octave::settings_dialog",
+    "&Reload default styles");
+const QString settings_reload_styles_tooltip = QT_TRANSLATE_NOOP (
+    "octave::settings_dialog",
+    "Reloads the default values of the styles,\n"
+    "depending on currently selected mode.");
+
 #endif