diff options
author | Gabor Kelemen <kelemen.gabor2@nisz.hu> | 2021-04-21 08:22:12 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2021-04-27 15:27:32 +0200 |
commit | 8ebb54c6c4937a151f2185e8f54b2c39e446368a (patch) | |
tree | 93d30baa782aa98bed08939870a7d07ea8c6d219 /cui/source/customize | |
parent | e94830c0544d18221966ec260db43bcfddf90fe6 (diff) |
tdf#138751 Localize items in Notebookbar customization dropdowns
Change-Id: Idb1483e083f7758acb83da6c3ca9403c40ac9a40
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114447
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'cui/source/customize')
-rw-r--r-- | cui/source/customize/SvxNotebookbarConfigPage.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cui/source/customize/SvxNotebookbarConfigPage.cxx b/cui/source/customize/SvxNotebookbarConfigPage.cxx index 7e93dae121af..978055e1a1bc 100644 --- a/cui/source/customize/SvxNotebookbarConfigPage.cxx +++ b/cui/source/customize/SvxNotebookbarConfigPage.cxx @@ -70,13 +70,13 @@ static OUString charToString(const char* cString) static OUString getFileName(std::u16string_view aFileName) { if (aFileName == u"notebookbar.ui") - return "Tabbed"; + return CuiResId(RID_SVXSTR_TABBED); else if (aFileName == u"notebookbar_compact.ui") - return "TabbedCompact"; + return CuiResId(RID_SVXSTR_TABBED_COMPACT); else if (aFileName == u"notebookbar_groupedbar_full.ui") - return "Groupedbar"; + return CuiResId(RID_SVXSTR_GROUPEDBAR); else if (aFileName == u"notebookbar_groupedbar_compact.ui") - return "GroupedbarCompact"; + return CuiResId(RID_SVXSTR_GROUPEDBAR_COMPACT); else return "None"; } @@ -154,7 +154,7 @@ void SvxNotebookbarConfigPage::Init() m_xSaveInListBox->append(sSaveInListBoxID, sScopeName); m_xSaveInListBox->set_active_id(sSaveInListBoxID); - m_xTopLevelListBox->append("NotebookBar", "All Commands"); + m_xTopLevelListBox->append("NotebookBar", CuiResId(RID_SVXSTR_ALL_COMMANDS)); m_xTopLevelListBox->set_active_id("NotebookBar"); SelectElement(); } |