diff options
author | Andras Timar <andras.timar@collabora.com> | 2020-10-26 16:40:15 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2020-10-27 15:29:08 +0100 |
commit | 9f43541a88af35fdaca57cad638672f73f8f0ead (patch) | |
tree | 673a23c5c450e12914915e84c020ab200502e7e7 | |
parent | loleaflet: do not depend on tile position to calculate (diff) | |
download | online-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.js | 4 |
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"> Select multiple cells </span>').parent().html()); } else if (commandName === '.uno:InsertMode') { - this.updateToolbarItem(statusbar, 'InsertMode', $('#InsertMode').html(state ? L.Styles.insertMode[state].toLocaleString() : '<span class="ToolbarStatusInactive"> Insert mode: inactive </span>').parent().html()); + this.updateToolbarItem(statusbar, 'InsertMode', $('#InsertMode').html(state ? L.Styles.insertMode[state].toLocaleString() : '<span class="ToolbarStatusInactive"> ' + _('Insert mode: inactive') + ' </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"> Selection mode: inactive </span>').parent().html()); + this.updateToolbarItem(statusbar, 'StatusSelectionMode', $('#StatusSelectionMode').html(state ? L.Styles.selectionMode[state].toLocaleString() : '<span class="ToolbarStatusInactive"> ' + _('Selection mode: inactive') + ' </span>').parent().html()); } else if (commandName == '.uno:StateTableCell') { this.updateToolbarItem(statusbar, 'StateTableCell', $('#StateTableCell').html(state ? this.localizeStateTableCell(state) : '  ').parent().html()); |