diff options
author | Jan Holesovsky <kendy@collabora.com> | 2017-12-12 18:13:03 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2018-03-19 19:02:01 +0100 |
commit | f03e71758c9a2f616dfbaaf81b77bd73b7024c8b (patch) | |
tree | f0d7e096bcbab1da021939579c05f5d404d4292b /comphelper | |
parent | adffe88eaa4608ce52676568598cbc4199599ee7 (diff) |
lokdialog: Allow windows / dialogs in different languages.
Change-Id: I9f32161981aed73e6d97696e5f976af276d1625a
Reviewed-on: https://gerrit.libreoffice.org/46327
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/46775
Tested-by: Jenkins <ci@libreoffice.org>
(cherry picked from commit e16852cd1bc5d9e0646ae4183bc13a7bce19df7f)
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/source/misc/lok.cxx | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/comphelper/source/misc/lok.cxx b/comphelper/source/misc/lok.cxx index b8324a4defcd..2e8624d1e8d0 100644 --- a/comphelper/source/misc/lok.cxx +++ b/comphelper/source/misc/lok.cxx @@ -27,6 +27,10 @@ static bool g_bTiledAnnotations(true); static bool g_bRangeHeaders(false); +static bool g_bLocalRendering(false); + +static LanguageTag g_aLanguageTag("en-US", true); + void setActive(bool bActive) { g_bActive = bActive; @@ -87,8 +91,6 @@ bool isRangeHeaders() return g_bRangeHeaders; } -static bool g_bLocalRendering(false); - void setLocalRendering(bool bLocalRendering) { g_bLocalRendering = bLocalRendering; @@ -99,6 +101,17 @@ bool isLocalRendering() return g_bLocalRendering; } +void setLanguageTag(const LanguageTag& languageTag) +{ + if (g_aLanguageTag != languageTag) + g_aLanguageTag = languageTag; +} + +const LanguageTag& getLanguageTag() +{ + return g_aLanguageTag; +} + static void (*pStatusIndicatorCallback)(void *data, statusIndicatorCallbackType type, int percent)(nullptr); static void *pStatusIndicatorCallbackData(nullptr); |