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

Andras Timar andras.timar at collabora.com
Sun May 29 22:13:50 UTC 2016


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

New commits:
commit 1395d604dd2b071f052c42b89866d33e0d43764e
Author: Andras Timar <andras.timar at collabora.com>
Date:   Mon May 30 00:13:19 2016 +0200

    loleaflet: bccu#1804 related: do not try to localize user defined style names

diff --git a/loleaflet/dist/toolbar/toolbar.js b/loleaflet/dist/toolbar/toolbar.js
index e5f77a2..58605f6 100644
--- a/loleaflet/dist/toolbar/toolbar.js
+++ b/loleaflet/dist/toolbar/toolbar.js
@@ -850,7 +850,7 @@ map.on('updatetoolbarcommandvalues', function (e) {
 					localeStyle = 'Outline'.toLocaleString() + ' ' + outlineLevel;
 				} else {
 					localeStyle = L.Styles.styleMappings[style];
-					localeStyle = localeStyle === undefined ? style.toLocaleString() : localeStyle.toLocaleString();
+					localeStyle = localeStyle === undefined ? style : localeStyle.toLocaleString();
 				}
 
 				data = data.concat({id: style, text: localeStyle});
diff --git a/loleaflet/src/control/Styles.js b/loleaflet/src/control/Styles.js
index 1dda56b..609dd88 100644
--- a/loleaflet/src/control/Styles.js
+++ b/loleaflet/src/control/Styles.js
@@ -276,11 +276,7 @@ L.Styles = {
 		'List 2':'List 2',
 		'List 3':'List 3',
 		'List 4':'List 4',
-		'List 5':'List 5',
-		'New Chapter':'New Chapter',
-		'Guide Name':'Guide Name',
-		'Heading Note':'Heading Note',
-		'Text Note':'Text Note'
+		'List 5':'List 5'
 	},
 
 	// For impress documents, LOK STATE_CHANGED callback return these internal names


More information about the Libreoffice-commits mailing list