Mercurial > octave
comparison 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 |
comparison
equal
deleted
inserted
replaced
31556:9978ef12aea3 | 31558:69c8979f8b2c |
---|---|
121 | 121 |
122 }; | 122 }; |
123 | 123 |
124 } | 124 } |
125 | 125 |
126 // Some constants used several times in the settings | 126 // Some constants used in the preferences of several widgets and therefore |
127 // defined globally here | |
127 | 128 |
128 // Special color indicating no change compared to default color | 129 // Constants for handling different color schemes |
129 // or automatically computed color | |
130 const QColor settings_color_no_change (255, 0, 255); | 130 const QColor settings_color_no_change (255, 0, 255); |
131 const QStringList settings_color_modes_ext (QStringList () << "" << "_2"); | |
132 const int settings_reload_default_colors_flag = -1; | |
131 | 133 |
132 // Other color schemes (currently one extra, but possibly more in the future) | |
133 const QString settings_color_modes = QT_TRANSLATE_NOOP ( | |
134 "octave::settings_dialog", | |
135 "Second color mode (light/dark)"); | |
136 const QString settings_color_modes_tooltip = QT_TRANSLATE_NOOP ( | |
137 "octave::settings_dialog", | |
138 "Switches to another set of colors.\n" | |
139 "Useful for defining a dark/light mode.\n" | |
140 "Discards non-applied current changes!"); | |
141 const QStringList settings_color_modes_ext (QStringList () << "" << "_2"); | |
142 // Reset colors (reload default values) | |
143 const QString settings_reload_colors = QT_TRANSLATE_NOOP ( | |
144 "octave::settings_dialog", | |
145 "&Reload default colors"); | |
146 const QString settings_reload_colors_tooltip = QT_TRANSLATE_NOOP ( | |
147 "octave::settings_dialog", | |
148 "Reloads the default colors,\n" | |
149 "depending on currently selected mode."); | |
150 const QString settings_reload_styles = QT_TRANSLATE_NOOP ( | |
151 "octave::settings_dialog", | |
152 "&Reload default styles"); | |
153 const QString settings_reload_styles_tooltip = QT_TRANSLATE_NOOP ( | |
154 "octave::settings_dialog", | |
155 "Reloads the default values of the styles,\n" | |
156 "depending on currently selected mode."); | |
157 const int settings_reload_default_colors_flag = -1; | |
158 #endif | 134 #endif |
159 | 135 |