summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2019-07-19 17:50:55 +0200
committerMiklos Vajna <vmiklos@collabora.com>2019-08-28 12:13:17 +0200
commit13c77cc3b34555aefd898a15c6ad898049f8aed6 (patch)
treef10587a809d9b49d8757dfa202e2739dee219047 /desktop
parent90e33df14a1bdff55c4759102658dba7510a733a (diff)
Send iso code for languages
[ Miklos: the motivation for this change is that LOK clients may display information on their UI depending on screen size. Mobile clients may want to have a more compact display, where showing the full language name takes too much space, and showing some kind of language code is a better way. ] Change-Id: Iec93ad05d83a8ce871eab33bd12e99aee9aafa86 Reviewed-on: https://gerrit.libreoffice.org/78217 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/lib/init.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 4b059576da9c..5f0075d2b45e 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -3865,6 +3865,7 @@ static char* getLanguages(const char* pCommand)
if (sLanguage.startsWith("{") && sLanguage.endsWith("}"))
continue;
+ sLanguage += ";" + LanguageTag(aLocales[itLocale]).getLanguage();
aChild.put("", sLanguage.toUtf8());
aValues.push_back(std::make_pair("", aChild));
}