summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2020-10-26 16:40:15 +0100
committerAndras Timar <andras.timar@collabora.com>2020-10-27 15:29:08 +0100
commit9f43541a88af35fdaca57cad638672f73f8f0ead (patch)
tree673a23c5c450e12914915e84c020ab200502e7e7
parentloleaflet: do not depend on tile position to calculate (diff)
downloadonline-9f43541a88af35fdaca57cad638672f73f8f0ead.tar.gz
online-9f43541a88af35fdaca57cad638672f73f8f0ead.zip
enable l10n of two status bar strings
Change-Id: I9e6012bdaacbd5c82be92364e773faf0e925fa09 Signed-off-by: Andras Timar <andras.timar@collabora.com>
-rw-r--r--loleaflet/src/control/Control.StatusBar.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/loleaflet/src/control/Control.StatusBar.js b/loleaflet/src/control/Control.StatusBar.js
index 3ce1cc3e76..adf7009a86 100644
--- a/loleaflet/src/control/Control.StatusBar.js
+++ b/loleaflet/src/control/Control.StatusBar.js
@@ -450,7 +450,7 @@ L.Control.StatusBar = L.Control.extend({
this.updateToolbarItem(statusbar, 'RowColSelCount', $('#RowColSelCount').html(state ? state : '<span class="ToolbarStatusInactive">&nbsp;Select multiple cells&nbsp;</span>').parent().html());
}
else if (commandName === '.uno:InsertMode') {
- this.updateToolbarItem(statusbar, 'InsertMode', $('#InsertMode').html(state ? L.Styles.insertMode[state].toLocaleString() : '<span class="ToolbarStatusInactive">&nbsp;Insert mode: inactive&nbsp;</span>').parent().html());
+ this.updateToolbarItem(statusbar, 'InsertMode', $('#InsertMode').html(state ? L.Styles.insertMode[state].toLocaleString() : '<span class="ToolbarStatusInactive">&nbsp;' + _('Insert mode: inactive') + '&nbsp;</span>').parent().html());
if (!state && this.map.hyperlinkPopup) {
this.map.hyperlinkUnderCursor = null;
@@ -460,7 +460,7 @@ L.Control.StatusBar = L.Control.extend({
}
else if (commandName === '.uno:StatusSelectionMode' ||
commandName === '.uno:SelectionMode') {
- this.updateToolbarItem(statusbar, 'StatusSelectionMode', $('#StatusSelectionMode').html(state ? L.Styles.selectionMode[state].toLocaleString() : '<span class="ToolbarStatusInactive">&nbsp;Selection mode: inactive&nbsp;</span>').parent().html());
+ this.updateToolbarItem(statusbar, 'StatusSelectionMode', $('#StatusSelectionMode').html(state ? L.Styles.selectionMode[state].toLocaleString() : '<span class="ToolbarStatusInactive">&nbsp;' + _('Selection mode: inactive') + '&nbsp;</span>').parent().html());
}
else if (commandName == '.uno:StateTableCell') {
this.updateToolbarItem(statusbar, 'StateTableCell', $('#StateTableCell').html(state ? this.localizeStateTableCell(state) : '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp').parent().html());