Mercurial > octave
diff libgui/src/gui-settings.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 | d3231a604a62 |
children | 351a4c8e92c3 c6d54dd31a7e |
line wrap: on
line diff
--- a/libgui/src/gui-settings.h Sat Nov 26 17:08:30 2022 -0500 +++ b/libgui/src/gui-settings.h Sun Nov 27 11:27:29 2022 +0100 @@ -123,37 +123,13 @@ } -// Some constants used several times in the settings - -// Special color indicating no change compared to default color -// or automatically computed color -const QColor settings_color_no_change (255, 0, 255); +// Some constants used in the preferences of several widgets and therefore +// defined globally here -// Other color schemes (currently one extra, but possibly more in the future) -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!"); +// Constants for handling different color schemes +const QColor settings_color_no_change (255, 0, 255); const QStringList settings_color_modes_ext (QStringList () << "" << "_2"); -// Reset colors (reload default values) -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."); const int settings_reload_default_colors_flag = -1; + #endif