loleaflet/dist/toolbar/toolbar.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
New commits: commit 5271a9106989e4f78b9e9d5500af53220e3d7350 Author: Andras Timar <andras.ti...@collabora.com> Date: Mon May 23 13:25:26 2016 +0200 loleaflet: add l10n support to VIEVING/EDITING labels diff --git a/loleaflet/dist/toolbar/toolbar.js b/loleaflet/dist/toolbar/toolbar.js index 9e6320f..d3bc568 100644 --- a/loleaflet/dist/toolbar/toolbar.js +++ b/loleaflet/dist/toolbar/toolbar.js @@ -130,7 +130,7 @@ $(function () { { type: 'html', id: 'modifiedstatuslabel', html: '<div id="modifiedstatuslabel" class="loleaflet-font"></div>' }, { type: 'break' }, { type: 'button', id: 'takeedit', img: 'edit', hint: _("Take edit lock (others can only view)")}, - { type: 'html', id: 'takeeditlabel', html: '<div id="takeeditlabel" class="loleaflet-font">VIEWING</div>' }, + { type: 'html', id: 'takeeditlabel', html: '<div id="takeeditlabel" class="loleaflet-font">' + _("VIEWING") + '</div>' }, { type: 'break' }, { type: 'button', id: 'prev', img: 'prev', hint: _("Previous page") }, { type: 'button', id: 'next', img: 'next', hint: _("Next page") }, @@ -854,12 +854,12 @@ map.on('editlock', function (e) { toolbar.disable('takeedit'); toolbar.set('takeedit', {hint: _('You are editing (others can only view)')}); - $('#takeeditlabel').html('EDITING'); + $('#takeeditlabel').html(_('EDITING')); } else { toolbar.enable('takeedit'); toolbar.set('takeedit', {hint: _('Take edit lock (others can only view)')}); - $('#takeeditlabel').html('VIEWING'); + $('#takeeditlabel').html(_('VIEWING')); $('#tb_toolbar-down_item_takeedit') .w2overlay({ html: takeEditPopupMessage, @@ -951,7 +951,7 @@ map.on('editlock', function (e) { map.on('mouseup keypress', function(e) { if (!map._editlock) { - $('#takeeditlabel').html('VIEWING'); + $('#takeeditlabel').html(_('VIEWING')); $('#tb_toolbar-down_item_takeedit') .w2overlay({ html: takeEditPopupMessage, _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits