loleaflet/Makefile | 2 +- loleaflet/src/control/Control.Tabs.js | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-)
New commits: commit 691b40fedceaf0d777347fbba9d4b11b77a82caa Author: Andras Timar <andras.ti...@collabora.com> Date: Mon Feb 15 09:25:44 2016 +0100 loleaflet: enable l10n of add/remove/rename sheet tab feature diff --git a/loleaflet/Makefile b/loleaflet/Makefile index 6e5dfa4..beda56e 100644 --- a/loleaflet/Makefile +++ b/loleaflet/Makefile @@ -30,7 +30,7 @@ dist: all rm -rf loleaflet-$(VERSION) pot: - xgettext --keyword=_ --output=po/loleaflet-toolbar.pot dist/toolbar/toolbar.js + xgettext --keyword=_ --output=po/loleaflet-toolbar.pot dist/toolbar/toolbar.js src/control/Control.Tabs.js html2po --pot --input=dist/loleaflet-help.html --output=po/loleaflet-help.pot l10n: pot diff --git a/loleaflet/src/control/Control.Tabs.js b/loleaflet/src/control/Control.Tabs.js index 1efcd8e..b8022cb 100644 --- a/loleaflet/src/control/Control.Tabs.js +++ b/loleaflet/src/control/Control.Tabs.js @@ -21,13 +21,13 @@ L.Control.Tabs = L.Control.extend({ map.insertPage(nPos + 1); }, items: { - 'insertsheetbefore': {name: 'Insert sheet before this'}, - 'insertsheetafter': {name: 'Insert sheet after this'}, - 'deletesheet': {name: 'Delete sheet', + 'insertsheetbefore': {name: _('Insert sheet before this')}, + 'insertsheetafter': {name: _('Insert sheet after this')}, + 'deletesheet': {name: _('Delete sheet'), callback: function(key, options) { var nPos = parseInt(options.$trigger.attr('id').split('spreadsheet-tab')[1]); vex.dialog.confirm({ - message: 'Are you sure you want to delete this sheet?', + message: _('Are you sure you want to delete this sheet?'), callback: function(data) { if (data) map.deletePage(nPos); @@ -35,11 +35,11 @@ L.Control.Tabs = L.Control.extend({ }); } }, - 'renamesheet': {name: 'Rename sheet', + 'renamesheet': {name: _('Rename sheet'), callback: function(key, options){ var nPos = parseInt(options.$trigger.attr('id').split('spreadsheet-tab')[1]); vex.dialog.open({ - message: 'Enter new sheet name', + message: _('Enter new sheet name'), input: '<input name="sheetname" type="text" required />', callback: function(data){ map.renamePage(data.sheetname, nPos); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits