diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2019-01-23 21:29:42 -0500 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2019-03-04 15:19:45 +0100 |
commit | d5e8de3c1e4a8bf6fb9cf7676bca13a9cb348633 (patch) | |
tree | ee2ff56e23c6ed1d471be41f831841490dcaf0bf /desktop | |
parent | 441300d5782caf9874cb1f37bdece160e041adbb (diff) |
LOK: set the language for LOK before document loading
So default dialogs will be created in the correct
language, as requested by the client.
Change-Id: I12ebf7443b7f19e733f66b88b5fadfb01cd5e75e
Reviewed-on: https://gerrit.libreoffice.org/68260
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/lib/init.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index e3d9259ba0ea..2fa9a3b7ce2b 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -1534,6 +1534,8 @@ static LibreOfficeKitDocument* lo_documentLoadWithOptions(LibreOfficeKit* pThis, SvtSysLocaleOptions aSysLocaleOptions; aSysLocaleOptions.SetLocaleConfigString(aLanguage); aSysLocaleOptions.SetUILocaleConfigString(aLanguage); + // Set the LOK language tag, used for dialog tunneling. + comphelper::LibreOfficeKit::setLanguageTag(aSysLocaleOptions.GetLanguageTag()); } uno::Sequence<css::beans::PropertyValue> aFilterOptions(2); |