[Libreoffice-commits] online.git: loleaflet/src
Szymon KÅos (via logerrit)
logerrit at kemper.freedesktop.org
Tue Jun 30 13:12:36 UTC 2020
loleaflet/src/control/Control.Notebookbar.js | 8 ++++----
loleaflet/src/control/Control.NotebookbarCalc.js | 8 ++++----
loleaflet/src/control/Control.NotebookbarImpress.js | 18 +++++++++---------
loleaflet/src/control/Control.NotebookbarWriter.js | 14 +++++++-------
4 files changed, 24 insertions(+), 24 deletions(-)
New commits:
commit 2d7bd942a385146cb8d9547aa7236063c6013b36
Author: Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Tue Jun 30 13:39:49 2020 +0200
Commit: Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Tue Jun 30 15:12:17 2020 +0200
notebookbar: translate tab names
Change-Id: I54a4b2a4f2d9137a70db5632208cd5ac2d189fdb
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/97514
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos at collabora.com>
diff --git a/loleaflet/src/control/Control.Notebookbar.js b/loleaflet/src/control/Control.Notebookbar.js
index aeebbe693..765f6790d 100644
--- a/loleaflet/src/control/Control.Notebookbar.js
+++ b/loleaflet/src/control/Control.Notebookbar.js
@@ -3,7 +3,7 @@
* L.Control.Notebookbar
*/
-/* global $ */
+/* global $ _ */
L.Control.Notebookbar = L.Control.extend({
_currentScrollPosition: 0,
@@ -94,17 +94,17 @@ L.Control.Notebookbar = L.Control.extend({
'children': [
{
'type': 'toolitem',
- 'text': 'Save',
+ 'text': _('Save'),
'command': '.uno:Save'
},
{
'type': 'toolitem',
- 'text': 'Undo',
+ 'text': _('Undo'),
'command': '.uno:Undo'
},
{
'type': 'toolitem',
- 'text': 'Redo',
+ 'text': _('Redo'),
'command': '.uno:Redo'
}
]
diff --git a/loleaflet/src/control/Control.NotebookbarCalc.js b/loleaflet/src/control/Control.NotebookbarCalc.js
index 49f22a3ff..b8709c2c2 100644
--- a/loleaflet/src/control/Control.NotebookbarCalc.js
+++ b/loleaflet/src/control/Control.NotebookbarCalc.js
@@ -3,24 +3,24 @@
* L.Control.NotebookbarCalc
*/
-/* global */
+/* global _ */
L.Control.NotebookbarCalc = L.Control.NotebookbarWriter.extend({
getTabs: function() {
return [
{
- 'text': '~Home',
+ 'text': _('~Home'),
'id': '2',
'name': 'HomeLabel',
'context': 'default|Cell'
},
{
- 'text': '~Insert',
+ 'text': _('~Insert'),
'id': '3',
'name': 'InsertLabel'
},
{
- 'text': '~Review',
+ 'text': _('~Review'),
'id': '6',
'name': 'ReviewLabel'
}
diff --git a/loleaflet/src/control/Control.NotebookbarImpress.js b/loleaflet/src/control/Control.NotebookbarImpress.js
index 600d9ad13..077baf28e 100644
--- a/loleaflet/src/control/Control.NotebookbarImpress.js
+++ b/loleaflet/src/control/Control.NotebookbarImpress.js
@@ -3,7 +3,7 @@
* L.Control.NotebookbarImpress
*/
-/* global */
+/* global _ */
L.Control.NotebookbarImpress = L.Control.NotebookbarWriter.extend({
getShortcutsBarData: function() {
@@ -14,22 +14,22 @@ L.Control.NotebookbarImpress = L.Control.NotebookbarWriter.extend({
'children': [
{
'type': 'toolitem',
- 'text': 'Save',
+ 'text': _('Save'),
'command': '.uno:Save'
},
{
'type': 'toolitem',
- 'text': 'Start Presentation',
+ 'text': _('Start Presentation'),
'command': '.uno:Presentation'
},
{
'type': 'toolitem',
- 'text': 'Undo',
+ 'text': _('Undo'),
'command': '.uno:Undo'
},
{
'type': 'toolitem',
- 'text': 'Redo',
+ 'text': _('Redo'),
'command': '.uno:Redo'
}
]
@@ -40,23 +40,23 @@ L.Control.NotebookbarImpress = L.Control.NotebookbarWriter.extend({
getTabs: function() {
return [
{
- 'text': '~Home',
+ 'text': _('~Home'),
'id': '2',
'name': 'HomeLabel',
'context': 'default|DrawText'
},
{
- 'text': '~Insert',
+ 'text': _('~Insert'),
'id': '3',
'name': 'InsertLabel'
},
{
- 'text': '~Review',
+ 'text': _('~Review'),
'id': '6',
'name': 'ReviewLabel'
},
{
- 'text': '~Table',
+ 'text': _('~Table'),
'id': '8',
'name': 'TableLabel',
'context': 'Table'
diff --git a/loleaflet/src/control/Control.NotebookbarWriter.js b/loleaflet/src/control/Control.NotebookbarWriter.js
index fb8e2b5a9..c78f31c6f 100644
--- a/loleaflet/src/control/Control.NotebookbarWriter.js
+++ b/loleaflet/src/control/Control.NotebookbarWriter.js
@@ -3,39 +3,39 @@
* L.Control.NotebookbarWriter
*/
-/* global */
+/* global _ */
L.Control.NotebookbarWriter = L.Control.Notebookbar.extend({
getTabs: function() {
return [
{
- 'text': '~Home',
+ 'text': _('~Home'),
'id': '2',
'name': 'HomeLabel',
'context': 'default|Text'
},
{
- 'text': '~Insert',
+ 'text': _('~Insert'),
'id': '3',
'name': 'InsertLabel'
},
{
- 'text': '~Layout',
+ 'text': _('~Layout'),
'id': '4',
'name': 'LayoutLabel'
},
{
- 'text': 'Reference~s',
+ 'text': _('Reference~s'),
'id': '5',
'name': 'ReferencesLabel'
},
{
- 'text': '~Review',
+ 'text': _('~Review'),
'id': '6',
'name': 'ReviewLabel'
},
{
- 'text': '~Table',
+ 'text': _('~Table'),
'id': '8',
'name': 'TableLabel',
'context': 'Table'
More information about the Libreoffice-commits
mailing list