Kaydet (Commit) e0fb4afa authored tarafından Jan Holesovsky's avatar Jan Holesovsky Kaydeden (comit) Andras Timar

lokdialog: Few more places that need to take LOK's LanguageTag into account.

Change-Id: Ida41025c70d45f426304fabe702a3bccd6e2385d
Reviewed-on: https://gerrit.libreoffice.org/47474Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarJan Holesovsky <kendy@collabora.com>
(cherry picked from commit a9e294ff)
üst 9097a8ff
......@@ -23,12 +23,14 @@
#include <unotools/configmgr.hxx>
#include <unotools/syslocale.hxx>
#include <unotools/syslocaleoptions.hxx>
#include <comphelper/lok.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/sequence.hxx>
#include <rtl/tencinfo.h>
#include <rtl/locale.h>
#include <osl/thread.h>
#include <osl/nlsupport.h>
#include <vector>
using namespace osl;
......@@ -169,11 +171,17 @@ SvtSysLocaleOptions& SvtSysLocale::GetOptions() const
const LanguageTag& SvtSysLocale::GetLanguageTag() const
{
if (comphelper::LibreOfficeKit::isActive())
return comphelper::LibreOfficeKit::getLanguageTag();
return pImpl->aSysLocaleOptions.GetRealLanguageTag();
}
const LanguageTag& SvtSysLocale::GetUILanguageTag() const
{
if (comphelper::LibreOfficeKit::isActive())
return comphelper::LibreOfficeKit::getLanguageTag();
return pImpl->aSysLocaleOptions.GetRealUILanguageTag();
}
......
......@@ -19,6 +19,7 @@
#include <string.h>
#include <comphelper/lok.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/string.hxx>
#include <rtl/process.h>
......@@ -165,7 +166,7 @@ vcl::Window *ImplGetDefaultContextWindow()
const std::locale& ImplGetResLocale()
{
ImplSVData* pSVData = ImplGetSVData();
if (!pSVData->mbResLocaleSet)
if (!pSVData->mbResLocaleSet || comphelper::LibreOfficeKit::isActive())
{
pSVData->maResLocale = Translate::Create("vcl");
pSVData->mbResLocaleSet = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment