diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2019-08-28 14:36:42 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2019-08-28 16:07:41 +0200 |
commit | 47025060e4474d23e3bd97053a77b3943eeae724 (patch) | |
tree | da5ff83ea691fd520802300909cbcc3171978566 /sc | |
parent | eddc29b82ce13f406ee310f8ecf98c189d3362a0 (diff) |
Send Bcp47 codes with region
Change-Id: I816eddab3d88534bff6c1f1dba81b45107cdb372
Reviewed-on: https://gerrit.libreoffice.org/78227
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/unit/tiledrendering/tiledrendering.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/docshell/docsh4.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sc/qa/unit/tiledrendering/tiledrendering.cxx b/sc/qa/unit/tiledrendering/tiledrendering.cxx index 25beaa6f0c51..3a6e91ab9c51 100644 --- a/sc/qa/unit/tiledrendering/tiledrendering.cxx +++ b/sc/qa/unit/tiledrendering/tiledrendering.cxx @@ -1441,7 +1441,7 @@ void ScTiledRenderingTest::testLanguageStatus() SfxLokHelper::createView(); SfxViewShell* pView2 = SfxViewShell::Current(); CPPUNIT_ASSERT(pView1 != pView2); - const OUString aLangBolivia("Spanish (Bolivia);es"); + const OUString aLangBolivia("Spanish (Bolivia);es-BO"); { std::unique_ptr<SfxPoolItem> xItem1; std::unique_ptr<SfxPoolItem> xItem2; diff --git a/sc/source/ui/docshell/docsh4.cxx b/sc/source/ui/docshell/docsh4.cxx index e5878182a424..895ca4cf3ce6 100644 --- a/sc/source/ui/docshell/docsh4.cxx +++ b/sc/source/ui/docshell/docsh4.cxx @@ -2009,7 +2009,7 @@ void ScDocShell::GetState( SfxItemSet &rSet ) if (eLatin == LANGUAGE_NONE) sLanguage += ";-"; else - sLanguage += ";" + LanguageTag(eLatin).getLanguage(); + sLanguage += ";" + LanguageTag(eLatin).getBcp47(false); } rSet.Put(SfxStringItem(nWhich, sLanguage)); } |