From 8e6c9b42de7fea1a65439a0764e8b907544157c5 Mon Sep 17 00:00:00 2001 From: Alexander Yuzhin Date: Mon, 9 Jan 2017 14:39:26 +0300 Subject: [PATCH] [SSE mobile] Append translation for DocumentHolder, AddContainer, AddFunction --- .../mobile/app/controller/DocumentHolder.js | 4 ++-- .../mobile/app/controller/add/AddContainer.js | 2 +- .../mobile/app/controller/add/AddFunction.js | 9 ++------- apps/spreadsheeteditor/mobile/locale/en.json | 20 +++++++++++++++++++ 4 files changed, 25 insertions(+), 10 deletions(-) diff --git a/apps/spreadsheeteditor/mobile/app/controller/DocumentHolder.js b/apps/spreadsheeteditor/mobile/app/controller/DocumentHolder.js index 30cd29f5b..2c2a2e3f0 100644 --- a/apps/spreadsheeteditor/mobile/app/controller/DocumentHolder.js +++ b/apps/spreadsheeteditor/mobile/app/controller/DocumentHolder.js @@ -46,7 +46,7 @@ define([ ], function (core) { 'use strict'; - SSE.Controllers.DocumentHolder = Backbone.Controller.extend((function() { + SSE.Controllers.DocumentHolder = Backbone.Controller.extend(_.extend((function() { // private var _isEdit = false; @@ -296,5 +296,5 @@ define([ warnMergeLostData: 'Operation can destroy data in the selected cells.
Continue?' } - })()); + })(), SSE.Controllers.DocumentHolder || {})) }); \ No newline at end of file diff --git a/apps/spreadsheeteditor/mobile/app/controller/add/AddContainer.js b/apps/spreadsheeteditor/mobile/app/controller/add/AddContainer.js index e9eb3167b..913cf345d 100644 --- a/apps/spreadsheeteditor/mobile/app/controller/add/AddContainer.js +++ b/apps/spreadsheeteditor/mobile/app/controller/add/AddContainer.js @@ -80,7 +80,7 @@ define([ uiApp.closeModal(); - me.api.asc_getCellInfo(); + var cellinfo = me.api.asc_getCellInfo(); var iscellmenu, isrowmenu, iscolmenu, isallmenu, ischartmenu, isimagemenu, istextshapemenu, isshapemenu, istextchartmenu, seltype = cellinfo.asc_getFlags().asc_getSelectionType(), iscelllocked = cellinfo.asc_getLocked(), diff --git a/apps/spreadsheeteditor/mobile/app/controller/add/AddFunction.js b/apps/spreadsheeteditor/mobile/app/controller/add/AddFunction.js index 040148b31..d88dfc9ad 100644 --- a/apps/spreadsheeteditor/mobile/app/controller/add/AddFunction.js +++ b/apps/spreadsheeteditor/mobile/app/controller/add/AddFunction.js @@ -119,12 +119,7 @@ define([ onFunctionInfo: function (type) { this.getView('AddFunction').openFunctionInfo(type); - }, - - txtDiagramTitle: 'Chart Title', - txtXAxis: 'X Axis', - txtYAxis: 'Y Axis', - txtSeries: 'Seria' + } } - })(), SSE.Controllers.AddChart || {})) + })(), SSE.Controllers.AddFunction || {})) }); \ No newline at end of file diff --git a/apps/spreadsheeteditor/mobile/locale/en.json b/apps/spreadsheeteditor/mobile/locale/en.json index 05ab9e505..46ce3c2f5 100644 --- a/apps/spreadsheeteditor/mobile/locale/en.json +++ b/apps/spreadsheeteditor/mobile/locale/en.json @@ -109,6 +109,8 @@ "SSE.Controllers.Main.advDRMEnterPassword": "You password please:", "SSE.Controllers.Main.advDRMPassword": "Password", + "SSE.Controllers.DocumentHolder.warnMergeLostData": "Operation can destroy data in the selected cells.
Continue?", + "SSE.Controllers.Search.textNoTextFound": "Text not found", "SSE.Controllers.Search.textReplaceAll": "Replace All", "SSE.Views.Search.textFind": "Find", @@ -152,6 +154,21 @@ "SSE.Views.Settings.textEmail": "email", "SSE.Views.Settings.textTel": "tel", + "SSE.Controllers.Toolbar.dlgLeaveTitleText": "You leave the application", + "SSE.Controllers.Toolbar.dlgLeaveMsgText": "You have unsaved changes in this document. Click \'Stay on this Page\' to await the autosave of the document. Click \'Leave this Page\' to discard all the unsaved changes.", + "SSE.Controllers.Toolbar.leaveButtonText": "Leave this Page", + "SSE.Controllers.Toolbar.stayButtonText": "Stay on this Page", + + "SSE.Controllers.AddContainer.textChart": "Chart", + "SSE.Controllers.AddContainer.textFormula": "Function", + "SSE.Controllers.AddContainer.textShape": "Shape", + "SSE.Controllers.AddContainer.textOther": "Other", + + "SSE.Controllers.AddChart.txtDiagramTitle": "Chart Title", + "SSE.Controllers.AddChart.txtXAxis": "X Axis", + "SSE.Controllers.AddChart.txtYAxis": "Y Axis", + "SSE.Controllers.AddChart.txtSeries": "Seria", + "SSE.Views.AddFunction.textGroups": "CATEGORIES", "SSE.Views.AddFunction.sCatLogical": "Logical", "SSE.Views.AddFunction.sCatDateAndTime": "Date and time", @@ -163,6 +180,9 @@ "SSE.Views.AddFunction.sCatStatistical": "Statistical", "SSE.Views.AddFunction.sCatTextAndData": "Text and data", + "SSE.Controllers.AddOther.textInvalidRange": "ERROR! Invalid cells range", + "SSE.Controllers.AddOther.textEmptyImgUrl": "You need to specify image URL.", + "SSE.Controllers.AddOther.txtNotUrl": "This field should be a URL in the format 'http://www.example.com'", "SSE.Views.AddOther.textInsertImage": "Insert Image", "SSE.Views.AddOther.textSort": "Sort and Filter", "SSE.Views.AddOther.textLink": "Link",