Mercurial > octave
comparison 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 |
comparison
equal
deleted
inserted
replaced
31556:9978ef12aea3 | 31558:69c8979f8b2c |
---|---|
37 sd_last_tab ("settings/last_tab", QVariant (0)); | 37 sd_last_tab ("settings/last_tab", QVariant (0)); |
38 | 38 |
39 const gui_pref | 39 const gui_pref |
40 sd_last_editor_styles_tab ("settings/last_editor_styles_tab", QVariant (0)); | 40 sd_last_editor_styles_tab ("settings/last_editor_styles_tab", QVariant (0)); |
41 | 41 |
42 // Textstrings for second color schemes | |
43 const QString settings_color_modes = QT_TRANSLATE_NOOP ( | |
44 "octave::settings_dialog", | |
45 "Second color mode (light/dark)"); | |
46 const QString settings_color_modes_tooltip = QT_TRANSLATE_NOOP ( | |
47 "octave::settings_dialog", | |
48 "Switches to another set of colors.\n" | |
49 "Useful for defining a dark/light mode.\n" | |
50 "Discards non-applied current changes!"); | |
51 const QString settings_reload_colors = QT_TRANSLATE_NOOP ( | |
52 "octave::settings_dialog", | |
53 "&Reload default colors"); | |
54 const QString settings_reload_colors_tooltip = QT_TRANSLATE_NOOP ( | |
55 "octave::settings_dialog", | |
56 "Reloads the default colors,\n" | |
57 "depending on currently selected mode."); | |
58 const QString settings_reload_styles = QT_TRANSLATE_NOOP ( | |
59 "octave::settings_dialog", | |
60 "&Reload default styles"); | |
61 const QString settings_reload_styles_tooltip = QT_TRANSLATE_NOOP ( | |
62 "octave::settings_dialog", | |
63 "Reloads the default values of the styles,\n" | |
64 "depending on currently selected mode."); | |
65 | |
42 #endif | 66 #endif |