summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/qa/unit/tiledrendering/tiledrendering.cxx2
-rw-r--r--sc/source/ui/docshell/docsh4.cxx5
2 files changed, 5 insertions, 2 deletions
diff --git a/sc/qa/unit/tiledrendering/tiledrendering.cxx b/sc/qa/unit/tiledrendering/tiledrendering.cxx
index b0f083d1e754..25beaa6f0c51 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)");
+ const OUString aLangBolivia("Spanish (Bolivia);es");
{
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 c83a3f154f72..e9b3dde362b6 100644
--- a/sc/source/ui/docshell/docsh4.cxx
+++ b/sc/source/ui/docshell/docsh4.cxx
@@ -2004,7 +2004,10 @@ void ScDocShell::GetState( SfxItemSet &rSet )
LanguageType eLatin, eCjk, eCtl;
GetDocument().GetLanguage( eLatin, eCjk, eCtl );
- rSet.Put(SfxStringItem(nWhich, SvtLanguageTable::GetLanguageString(eLatin)));
+ OUString sLanguage = SvtLanguageTable::GetLanguageString(eLatin);
+ if (comphelper::LibreOfficeKit::isActive())
+ sLanguage += ";" + LanguageTag(eLatin).getLanguage();
+ rSet.Put(SfxStringItem(nWhich, sLanguage));
}
break;