[Libreoffice-commits] online.git: loleaflet/dist loleaflet/src

Andras Timar andras.timar at collabora.com
Wed Oct 4 11:33:44 UTC 2017


 loleaflet/dist/toolbar/toolbar.js        |    2 +-
 loleaflet/src/control/Control.Menubar.js |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

New commits:
commit cb2de581089e6b71eaf53d999ace4b8795564172
Author: Andras Timar <andras.timar at collabora.com>
Date:   Wed Oct 4 13:29:20 2017 +0200

    loleaflet: enable l10n of language names
    
    Change-Id: Idd8b1b0bb081d718cf8d36c60ce6e293bd818fc6
    Reviewed-on: https://gerrit.libreoffice.org/43130
    Reviewed-by: Andras Timar <andras.timar at collabora.com>
    Tested-by: Andras Timar <andras.timar at collabora.com>

diff --git a/loleaflet/dist/toolbar/toolbar.js b/loleaflet/dist/toolbar/toolbar.js
index d8da7ddf..a973991e 100644
--- a/loleaflet/dist/toolbar/toolbar.js
+++ b/loleaflet/dist/toolbar/toolbar.js
@@ -1213,7 +1213,7 @@ map.on('commandstatechanged', function (e) {
 		}
 	}
 	else if (commandName === '.uno:LanguageStatus') {
-		$('#LanguageStatus').html(state);
+		$('#LanguageStatus').html(_(state));
 	}
 	else if (commandName === '.uno:ModifiedStatus') {
 		var modifiedStatus = e.state === 'true';
diff --git a/loleaflet/src/control/Control.Menubar.js b/loleaflet/src/control/Control.Menubar.js
index 0948db0e..0abeea34 100644
--- a/loleaflet/src/control/Control.Menubar.js
+++ b/loleaflet/src/control/Control.Menubar.js
@@ -365,9 +365,9 @@ L.Control.Menubar = L.Control.extend({
 			$menuParagraph = $('#menu-resetparagraph').parent();
 			$menuDefault = $('#menu-resetlanguage').parent();
 			for (var lang in e.commandValues) {
-				$menuSelection.append(this._createLangMenuItem(e.commandValues[lang], encodeURIComponent('Current_' + e.commandValues[lang])));
-				$menuParagraph.append(this._createLangMenuItem(e.commandValues[lang], encodeURIComponent('Paragraph_' + e.commandValues[lang])));
-				$menuDefault.append(this._createLangMenuItem(e.commandValues[lang], encodeURIComponent('Default_' + e.commandValues[lang])));
+				$menuSelection.append(this._createLangMenuItem(_(e.commandValues[lang]), encodeURIComponent('Current_' + e.commandValues[lang])));
+				$menuParagraph.append(this._createLangMenuItem(_(e.commandValues[lang]), encodeURIComponent('Paragraph_' + e.commandValues[lang])));
+				$menuDefault.append(this._createLangMenuItem(_(e.commandValues[lang]), encodeURIComponent('Default_' + e.commandValues[lang])));
 			}
 		}
 	},


More information about the Libreoffice-commits mailing list