desktop/source/lib/init.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 13c77cc3b34555aefd898a15c6ad898049f8aed6
Author: Szymon Kłos <[email protected]>
AuthorDate: Fri Jul 19 17:50:55 2019 +0200
Commit: Miklos Vajna <[email protected]>
CommitDate: Wed Aug 28 12:13:17 2019 +0200
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 <[email protected]>
Tested-by: Jenkins
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));
}
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits