diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2020-10-12 14:19:54 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2020-10-13 22:50:58 +0200 |
commit | 68a4433598057e69c30263da94b3d3ca20a1481e (patch) | |
tree | 177bab74e416aa6e3256722d5702544bd78ab3eb /sfx2 | |
parent | f714459885e93f46dca4536013c1968469f1ab97 (diff) |
notebookbar: set language before creating
Change-Id: I04243667b564670096d2c8db0352ab179e1b0151
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104212
Tested-by: Andras Timar <andras.timar@collabora.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/notebookbar/SfxNotebookBar.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sfx2/source/notebookbar/SfxNotebookBar.cxx b/sfx2/source/notebookbar/SfxNotebookBar.cxx index 10c60065641e..a50db24cc07b 100644 --- a/sfx2/source/notebookbar/SfxNotebookBar.cxx +++ b/sfx2/source/notebookbar/SfxNotebookBar.cxx @@ -397,6 +397,13 @@ bool SfxNotebookBar::StateMethod(SystemWindow* pSysWindow, aNotebookBarAddonsItem.aImageValues = aImageValues; // setup if necessary + if (comphelper::LibreOfficeKit::isActive()) + { + // update the current LOK language and locale for the dialog tunneling + comphelper::LibreOfficeKit::setLanguageTag(pViewShell->GetLOKLanguageTag()); + comphelper::LibreOfficeKit::setLocale(pViewShell->GetLOKLocale()); + } + pSysWindow->SetNotebookBar(aBuf, xFrame, aNotebookBarAddonsItem , bReloadNotebookbar); pNotebookBar = pSysWindow->GetNotebookBar(); pNotebookBar->Show(); |