[Libreoffice-commits] online.git: loleaflet/src
Pranam Lashkari (via logerrit)
logerrit at kemper.freedesktop.org
Tue Sep 29 20:34:36 UTC 2020
loleaflet/src/control/Control.StatusBar.js | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
New commits:
commit 4fa5b43b628152eeca05684ff6704f88d0445f04
Author: Pranam Lashkari <lpranam at collabora.com>
AuthorDate: Tue Sep 29 23:14:56 2020 +0530
Commit: Andras Timar <andras.timar at collabora.com>
CommitDate: Tue Sep 29 22:34:15 2020 +0200
leaflet: translate: fix language list localisation
Change-Id: Ie505b91e2b5b212351a33a4751ee5889a6cb10f1
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103651
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Andras Timar <andras.timar at collabora.com>
diff --git a/loleaflet/src/control/Control.StatusBar.js b/loleaflet/src/control/Control.StatusBar.js
index 0a82d5c6f..a08d3d372 100644
--- a/loleaflet/src/control/Control.StatusBar.js
+++ b/loleaflet/src/control/Control.StatusBar.js
@@ -503,7 +503,7 @@ L.Control.StatusBar = L.Control.extend({
var noneLang = _('None (Do not check spelling)');
var languages = [];
e.commandValues.forEach(function (language) {
- languages.push({ translated: _(language), neutral: language });
+ languages.push({ translated: _(language.split(';')[0]), neutral: language });
});
languages.sort(function (a, b) {
return a.translated < b.translated ? -1 : a.translated > b.translated ? 1 : 0;
@@ -518,9 +518,8 @@ L.Control.StatusBar = L.Control.extend({
for (var lang in languages) {
translated = languages[lang].translated;
neutral = languages[lang].neutral;
- var splitTranslated = translated.split(';');
var splitNeutral = neutral.split(';');
- toolbaritems.push({ id: neutral, text: splitTranslated[0], uno: constLang + encodeURIComponent('Default_' + splitNeutral[0]) });
+ toolbaritems.push({ id: neutral, text: translated, uno: constLang + encodeURIComponent('Default_' + splitNeutral[0]) });
}
toolbaritems.push({ id: 'reset', text: resetLang, uno: constLang + constDefault });
More information about the Libreoffice-commits
mailing list