Mercurial > octave
diff libgui/src/workspace-view.cc @ 27890:5ca326b3c0d5
fix missing translations due to new symbolic constants for prefs (bug #57490)
* languages/be_BY.ts, languages/en_US.ts, languages/es_ES.ts,
languages/nl_NL.ts: updated language files
* gui-preferences-cs.h, gui-preferences-ve.h, gui-preferences-ws.h:
use correct QObject child in the QT_TRANSLATE_NOOP macro
* settings-dialog.cc (settings_dialog, read_workspace_colors,
read_terminal_colors, read_varedit_colors):
use tr () for the character string of the const QString pref;
* workspace-view.cc (notice_settings, header_contextmenu_requested):
use tr () for the character string of the const QString pref;
author | Torsten Lilge <ttl-octave@mailbox.org> |
---|---|
date | Wed, 01 Jan 2020 00:53:16 +0100 |
parents | b2c11742b7ec |
children | 465ac679e976 |
line wrap: on
line diff
--- a/libgui/src/workspace-view.cc Tue Dec 31 13:27:28 2019 -0800 +++ b/libgui/src/workspace-view.cc Wed Jan 01 00:53:16 2020 +0100 @@ -214,7 +214,8 @@ QString (R"(<div style="background-color:%1;color:%2">%3</div>)") .arg (m_model->storage_class_color (i).name ()) .arg (m_model->storage_class_color (i + ws_colors_count).name ()) - .arg (ws_color_names.at (i)); + .arg (QCoreApplication::translate ("octave::settings_dialog", + ws_color_names.at (i).toStdString ().data ())); } } @@ -294,8 +295,9 @@ for (int i = 0; i < ws_columns_shown.length (); i++) { - QAction *action = menu.addAction (ws_columns_shown.at (i), - &sig_mapper, SLOT (map ())); + QAction *action + = menu.addAction (tr (ws_columns_shown.at (i).toStdString ().data ()), + &sig_mapper, SLOT (map ())); sig_mapper.setMapping (action, i); action->setCheckable (true); action->setChecked (settings->value (ws_columns_shown_keys.at (i),true).toBool ());