summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2019-08-28 14:36:42 +0200
committerMiklos Vajna <vmiklos@collabora.com>2019-08-28 16:07:41 +0200
commit47025060e4474d23e3bd97053a77b3943eeae724 (patch)
treeda5ff83ea691fd520802300909cbcc3171978566 /desktop
parenteddc29b82ce13f406ee310f8ecf98c189d3362a0 (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 'desktop')
-rw-r--r--desktop/source/lib/init.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 5f0075d2b45e..7c8b742dfb78 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -3865,7 +3865,7 @@ static char* getLanguages(const char* pCommand)
if (sLanguage.startsWith("{") && sLanguage.endsWith("}"))
continue;
- sLanguage += ";" + LanguageTag(aLocales[itLocale]).getLanguage();
+ sLanguage += ";" + LanguageTag(aLocales[itLocale]).getBcp47(false);
aChild.put("", sLanguage.toUtf8());
aValues.push_back(std::make_pair("", aChild));
}