From 13c77cc3b34555aefd898a15c6ad898049f8aed6 Mon Sep 17 00:00:00 2001 From: Szymon Kłos Date: Fri, 19 Jul 2019 17:50:55 +0200 Subject: 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 Tested-by: Jenkins --- desktop/source/lib/init.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'desktop') 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)); } -- cgit v1.2.3