From 830d8f0c1723350c65d3e8d15456441c597e8f2a Mon Sep 17 00:00:00 2001 From: Alexander Yuzhin Date: Mon, 23 Jan 2017 17:38:53 +0300 Subject: [PATCH] [mobile] Fixed translation. --- .../mobile/app/controller/Main.js | 21 ++++++++++++++++++- apps/documenteditor/mobile/locale/en.json | 8 +++++++ apps/documenteditor/mobile/locale/fr.json | 8 +++++++ apps/documenteditor/mobile/locale/ru.json | 8 +++++++ .../mobile/app/controller/Main.js | 21 ++++++++++++++++++- apps/presentationeditor/mobile/locale/en.json | 8 +++++++ .../mobile/app/controller/Main.js | 21 ++++++++++++++++++- .../mobile/app/template/Search.template | 4 ++-- .../mobile/app/view/Search.js | 1 + .../mobile/app/view/Settings.js | 2 ++ .../mobile/app/view/Toolbar.js | 6 ++++-- apps/spreadsheeteditor/mobile/locale/en.json | 11 ++++++++++ apps/spreadsheeteditor/mobile/locale/ru.json | 11 ++++++++++ 13 files changed, 123 insertions(+), 7 deletions(-) diff --git a/apps/documenteditor/mobile/app/controller/Main.js b/apps/documenteditor/mobile/app/controller/Main.js index 42a86fe93..858936935 100644 --- a/apps/documenteditor/mobile/app/controller/Main.js +++ b/apps/documenteditor/mobile/app/controller/Main.js @@ -107,6 +107,17 @@ define([ 'mobile' : true }); + // Localization uiApp params + uiApp.params.modalButtonOk = me.textOK; + uiApp.params.modalButtonCancel = me.textCancel; + uiApp.params.modalPreloaderTitle = me.textPreloader; + uiApp.params.modalUsernamePlaceholder = me.textUsername; + uiApp.params.modalPasswordPlaceholder = me.textPassword; + uiApp.params.smartSelectBackText = me.textBack; + uiApp.params.smartSelectPopupCloseText = me.textClose; + uiApp.params.smartSelectPickerCloseText = me.textDone; + uiApp.params.notificationCloseButtonText = me.textClose; + if (me.api){ switch (value) { case '0': me.api.SetFontRenderingMode(3); break; @@ -1188,7 +1199,15 @@ define([ advTxtOptions: 'Choose TXT Options', advDRMOptions: 'Protected File', advDRMEnterPassword: 'You password please:', - advDRMPassword: 'Password' + advDRMPassword: 'Password', + textOK: 'OK', + textCancel: 'Cancel', + textPreloader: 'Loading... ', + textUsername: 'Username', + textPassword: 'Password', + textBack: 'Back', + textClose: 'Close', + textDone: 'Done' } })(), DE.Controllers.Main || {})) }); \ No newline at end of file diff --git a/apps/documenteditor/mobile/locale/en.json b/apps/documenteditor/mobile/locale/en.json index 15bd6c7b7..f3c7980f0 100644 --- a/apps/documenteditor/mobile/locale/en.json +++ b/apps/documenteditor/mobile/locale/en.json @@ -117,6 +117,14 @@ "DE.Controllers.Main.warnLicenseExp": "Your license has expired.
Please update your license and refresh the page.", "DE.Controllers.Main.warnNoLicense": "You are using an open source version of ONLYOFFICE. The version has limitations for concurrent connections to the document server (20 connections at a time).
If you need more please consider purchasing a commercial license.", "DE.Controllers.Main.warnProcessRightsChange": "You have been denied the right to edit the file.", + "DE.Controllers.Main.textOK": "OK", + "DE.Controllers.Main.textCancel": "Cancel", + "DE.Controllers.Main.textPreloader": "Loading... ", + "DE.Controllers.Main.textUsername": "Username", + "DE.Controllers.Main.textPassword": "Password", + "DE.Controllers.Main.textBack": "Back", + "DE.Controllers.Main.textClose": "Close", + "DE.Controllers.Main.textDone": "Done", "DE.Controllers.Search.textNoTextFound": "Text not Found", "DE.Controllers.Search.textReplaceAll": "Replace All", "DE.Controllers.Settings.notcriticalErrorTitle": "Warning", diff --git a/apps/documenteditor/mobile/locale/fr.json b/apps/documenteditor/mobile/locale/fr.json index 05edb7634..1144b2291 100644 --- a/apps/documenteditor/mobile/locale/fr.json +++ b/apps/documenteditor/mobile/locale/fr.json @@ -117,6 +117,14 @@ "DE.Controllers.Main.warnLicenseExp": "Votre licence a expiré.
Veuillez mettre à jour votre licence et actualisez la page.", "DE.Controllers.Main.warnNoLicense": "Vous utilisez la version open source de ONLYOFFICE. La version a des limitations en connexions simultanées au serveur de documents (20 connexions à la fois).
Pour en avoir plus, veuillez envisager l'achat d'une licence commerciale.", "DE.Controllers.Main.warnProcessRightsChange": "Le droit d'édition du fichier vous a été refusé.", + "DE.Controllers.Main.textOK": "OK", + "DE.Controllers.Main.textCancel": "Cancel", + "DE.Controllers.Main.textPreloader": "Loading... ", + "DE.Controllers.Main.textUsername": "Username", + "DE.Controllers.Main.textPassword": "Password", + "DE.Controllers.Main.textBack": "Back", + "DE.Controllers.Main.textClose": "Close", + "DE.Controllers.Main.textDone": "Done", "DE.Controllers.Search.textNoTextFound": "Le texte est introuvable", "DE.Controllers.Search.textReplaceAll": "Remplacer tout", "DE.Controllers.Settings.notcriticalErrorTitle": "Avertissement", diff --git a/apps/documenteditor/mobile/locale/ru.json b/apps/documenteditor/mobile/locale/ru.json index dc811cb22..4074e4407 100644 --- a/apps/documenteditor/mobile/locale/ru.json +++ b/apps/documenteditor/mobile/locale/ru.json @@ -117,6 +117,14 @@ "DE.Controllers.Main.warnLicenseExp": "Истек срок действия лицензии.
Обновите лицензию, а затем обновите страницу.", "DE.Controllers.Main.warnNoLicense": "Вы используете open source версию ONLYOFFICE. Эта версия имеет ограничения по количеству одновременных подключений к серверу документов (20 подключений одновременно).
Если требуется больше, рассмотрите вопрос о покупке коммерческой лицензии.", "DE.Controllers.Main.warnProcessRightsChange": "Вам было отказано в праве на редактирование этого файла.", + "DE.Controllers.Main.textOK": "OK", + "DE.Controllers.Main.textCancel": "Отмена", + "DE.Controllers.Main.textPreloader": "Загрузка... ", + "DE.Controllers.Main.textUsername": "Имя пользователя", + "DE.Controllers.Main.textPassword": "Праоль", + "DE.Controllers.Main.textBack": "Назад", + "DE.Controllers.Main.textClose": "Закрыть", + "DE.Controllers.Main.textDone": "Готово", "DE.Controllers.Search.textNoTextFound": "Текст не найден", "DE.Controllers.Search.textReplaceAll": "Заменить все", "DE.Controllers.Settings.notcriticalErrorTitle": "Внимание", diff --git a/apps/presentationeditor/mobile/app/controller/Main.js b/apps/presentationeditor/mobile/app/controller/Main.js index 1bfeacc68..b9e118c3e 100644 --- a/apps/presentationeditor/mobile/app/controller/Main.js +++ b/apps/presentationeditor/mobile/app/controller/Main.js @@ -102,6 +102,17 @@ define([ 'mobile' : true }); + // Localization uiApp params + uiApp.params.modalButtonOk = me.textOK; + uiApp.params.modalButtonCancel = me.textCancel; + uiApp.params.modalPreloaderTitle = me.textPreloader; + uiApp.params.modalUsernamePlaceholder = me.textUsername; + uiApp.params.modalPasswordPlaceholder = me.textPassword; + uiApp.params.smartSelectBackText = me.textBack; + uiApp.params.smartSelectPopupCloseText = me.textClose; + uiApp.params.smartSelectPickerCloseText = me.textDone; + uiApp.params.notificationCloseButtonText = me.textClose; + if (me.api){ Common.Utils.Metric.setCurrentMetric(1); //pt @@ -1190,7 +1201,15 @@ define([ saveErrorText: 'An error has occurred while saving the file', advDRMOptions: 'Protected File', advDRMEnterPassword: 'You password please:', - advDRMPassword: 'Password' + advDRMPassword: 'Password', + textOK: 'OK', + textCancel: 'Cancel', + textPreloader: 'Loading... ', + textUsername: 'Username', + textPassword: 'Password', + textBack: 'Back', + textClose: 'Close', + textDone: 'Done' } })(), PE.Controllers.Main || {})) }); \ No newline at end of file diff --git a/apps/presentationeditor/mobile/locale/en.json b/apps/presentationeditor/mobile/locale/en.json index 417e326ba..a087ff635 100644 --- a/apps/presentationeditor/mobile/locale/en.json +++ b/apps/presentationeditor/mobile/locale/en.json @@ -129,6 +129,14 @@ "PE.Controllers.Main.advDRMOptions": "Protected File", "PE.Controllers.Main.advDRMEnterPassword": "You password please:", "PE.Controllers.Main.advDRMPassword": "Password", + "PE.Controllers.Main.textOK": "OK", + "PE.Controllers.Main.textCancel": "Cancel", + "PE.Controllers.Main.textPreloader": "Loading... ", + "PE.Controllers.Main.textUsername": "Username", + "PE.Controllers.Main.textPassword": "Password", + "PE.Controllers.Main.textBack": "Back", + "PE.Controllers.Main.textClose": "Close", + "PE.Controllers.Main.textDone": "Done", "PE.Controllers.DocumentHolder.menuCut": "Cut", "PE.Controllers.DocumentHolder.menuCopy": "Copy", diff --git a/apps/spreadsheeteditor/mobile/app/controller/Main.js b/apps/spreadsheeteditor/mobile/app/controller/Main.js index 2bb595863..25c6e2e8b 100644 --- a/apps/spreadsheeteditor/mobile/app/controller/Main.js +++ b/apps/spreadsheeteditor/mobile/app/controller/Main.js @@ -103,6 +103,17 @@ define([ ,'mobile' : true }); + // Localization uiApp params + uiApp.params.modalButtonOk = me.textOK; + uiApp.params.modalButtonCancel = me.textCancel; + uiApp.params.modalPreloaderTitle = me.textPreloader; + uiApp.params.modalUsernamePlaceholder = me.textUsername; + uiApp.params.modalPasswordPlaceholder = me.textPassword; + uiApp.params.smartSelectBackText = me.textBack; + uiApp.params.smartSelectPopupCloseText = me.textClose; + uiApp.params.smartSelectPickerCloseText = me.textDone; + uiApp.params.notificationCloseButtonText = me.textClose; + if (me.api){ var value = Common.localStorage.getItem("sse-settings-fontrender"); if (value===null) value = window.devicePixelRatio > 1 ? '1' : '3'; @@ -1405,7 +1416,15 @@ define([ advCSVOptions: 'Choose CSV Options', advDRMOptions: 'Protected File', advDRMEnterPassword: 'You password please:', - advDRMPassword: 'Password' + advDRMPassword: 'Password', + textOK: 'OK', + textCancel: 'Cancel', + textPreloader: 'Loading... ', + textUsername: 'Username', + textPassword: 'Password', + textBack: 'Back', + textClose: 'Close', + textDone: 'Done' } })(), SSE.Controllers.Main || {})) }); \ No newline at end of file diff --git a/apps/spreadsheeteditor/mobile/app/template/Search.template b/apps/spreadsheeteditor/mobile/app/template/Search.template index 26d55a0fa..e12450b88 100644 --- a/apps/spreadsheeteditor/mobile/app/template/Search.template +++ b/apps/spreadsheeteditor/mobile/app/template/Search.template @@ -8,12 +8,12 @@
diff --git a/apps/spreadsheeteditor/mobile/app/view/Search.js b/apps/spreadsheeteditor/mobile/app/view/Search.js index d07635933..1e197625c 100644 --- a/apps/spreadsheeteditor/mobile/app/view/Search.js +++ b/apps/spreadsheeteditor/mobile/app/view/Search.js @@ -193,6 +193,7 @@ define([ textFind: 'Find', textFindAndReplace: 'Find and Replace', textDone: 'Done', + textSearch: 'Search', textReplace: 'Replace', textMatchCase: 'Match Case', textMatchCell: 'Match Cell', diff --git a/apps/spreadsheeteditor/mobile/app/view/Settings.js b/apps/spreadsheeteditor/mobile/app/view/Settings.js index 51c9f58b8..934f8363a 100644 --- a/apps/spreadsheeteditor/mobile/app/view/Settings.js +++ b/apps/spreadsheeteditor/mobile/app/view/Settings.js @@ -186,6 +186,8 @@ define([ textEditDoc: 'Edit Document', textDownload: 'Download', textDocInfo: 'Document Info', + textHelp: 'Help', + textAbout: 'About', textBack: 'Back', textDocTitle: 'Document title', textLoading: 'Loading...', diff --git a/apps/spreadsheeteditor/mobile/app/view/Toolbar.js b/apps/spreadsheeteditor/mobile/app/view/Toolbar.js index 4d67a73fc..740a33db4 100644 --- a/apps/spreadsheeteditor/mobile/app/view/Toolbar.js +++ b/apps/spreadsheeteditor/mobile/app/view/Toolbar.js @@ -78,7 +78,7 @@ define([ $el.prepend(me.template({ android : Common.SharedSettings.get('android'), phone : Common.SharedSettings.get('phone'), - backTitle : Common.SharedSettings.get('android') ? '' : 'Back' + backTitle : Common.SharedSettings.get('android') ? '' : me.textBack })); $('.view-main .navbar').on('addClass removeClass', _.bind(me.onDisplayMainNavbar, me)); @@ -147,7 +147,9 @@ define([ if (!(opts.indexOf('edit') < 0)) this.$btnEdit.toggleClass('disabled', val); - } + }, + + textBack: 'Back' } })(), SSE.Views.Toolbar || {})) }); diff --git a/apps/spreadsheeteditor/mobile/locale/en.json b/apps/spreadsheeteditor/mobile/locale/en.json index 52d63ecd5..d197be3aa 100644 --- a/apps/spreadsheeteditor/mobile/locale/en.json +++ b/apps/spreadsheeteditor/mobile/locale/en.json @@ -185,6 +185,14 @@ "SSE.Controllers.Main.warnLicenseExp": "Your license has expired.
Please update your license and refresh the page.", "SSE.Controllers.Main.warnNoLicense": "You are using an open source version of ONLYOFFICE. The version has limitations for concurrent connections to the document server (20 connections at a time).
If you need more please consider purchasing a commercial license.", "SSE.Controllers.Main.warnProcessRightsChange": "You have been denied the right to edit the file.", + "SSE.Controllers.Main.textOK": "OK", + "SSE.Controllers.Main.textCancel": "Cancel", + "SSE.Controllers.Main.textPreloader": "Loading... ", + "SSE.Controllers.Main.textUsername": "Username", + "SSE.Controllers.Main.textPassword": "Password", + "SSE.Controllers.Main.textBack": "Back", + "SSE.Controllers.Main.textClose": "Close", + "SSE.Controllers.Main.textDone": "Done", "SSE.Controllers.Search.textNoTextFound": "Text not found", "SSE.Controllers.Search.textReplaceAll": "Replace All", "SSE.Controllers.Settings.notcriticalErrorTitle": "Warning", @@ -202,6 +210,7 @@ "SSE.Controllers.Toolbar.dlgLeaveTitleText": "You leave the application", "SSE.Controllers.Toolbar.leaveButtonText": "Leave this Page", "SSE.Controllers.Toolbar.stayButtonText": "Stay on this Page", + "SSE.Views.Toolbar.textBack": "Back", "SSE.Views.AddFunction.sCatDateAndTime": "Date and time", "SSE.Views.AddFunction.sCatEngineering": "Engineering", "SSE.Views.AddFunction.sCatFinancial": "Financial", @@ -383,6 +392,7 @@ "SSE.Views.Search.textMatchCase": "Match Case", "SSE.Views.Search.textMatchCell": "Match Cell", "SSE.Views.Search.textReplace": "Replace", + "SSE.Views.Search.textSearch": "Search", "SSE.Views.Search.textSearchIn": "Search In", "SSE.Views.Search.textSheet": "Sheet", "SSE.Views.Search.textWorkbook": "Workbook", @@ -392,6 +402,7 @@ "SSE.Views.Settings.textBack": "Back", "SSE.Views.Settings.textCreateDate": "Creation date", "SSE.Views.Settings.textDocInfo": "Document Info", + "SSE.Views.Settings.textHelp": "Help", "SSE.Views.Settings.textDocTitle": "Document title", "SSE.Views.Settings.textDone": "Done", "SSE.Views.Settings.textDownload": "Download", diff --git a/apps/spreadsheeteditor/mobile/locale/ru.json b/apps/spreadsheeteditor/mobile/locale/ru.json index 317cb5af8..64729d08f 100644 --- a/apps/spreadsheeteditor/mobile/locale/ru.json +++ b/apps/spreadsheeteditor/mobile/locale/ru.json @@ -185,6 +185,14 @@ "SSE.Controllers.Main.warnLicenseExp": "Истек срок действия лицензии.
Обновите лицензию, а затем обновите страницу.", "SSE.Controllers.Main.warnNoLicense": "Вы используете open source версию ONLYOFFICE. Эта версия имеет ограничения по количеству одновременных подключений к серверу документов (20 подключений одновременно).
Если требуется больше, рассмотрите вопрос о покупке коммерческой лицензии.", "SSE.Controllers.Main.warnProcessRightsChange": "Вам было отказано в праве на редактирование этого файла.", + "SSE.Controllers.Main.textOK": "OK", + "SSE.Controllers.Main.textCancel": "Отмена", + "SSE.Controllers.Main.textPreloader": "Загрузка... ", + "SSE.Controllers.Main.textUsername": "Имя пользователя", + "SSE.Controllers.Main.textPassword": "Праоль", + "SSE.Controllers.Main.textBack": "Назад", + "SSE.Controllers.Main.textClose": "Закрыть", + "SSE.Controllers.Main.textDone": "Готово", "SSE.Controllers.Search.textNoTextFound": "Текст не найден", "SSE.Controllers.Search.textReplaceAll": "Заменить все", "SSE.Controllers.Settings.notcriticalErrorTitle": "Внимание", @@ -202,6 +210,7 @@ "SSE.Controllers.Toolbar.dlgLeaveTitleText": "Вы выходите из приложения", "SSE.Controllers.Toolbar.leaveButtonText": "Уйти со страницы", "SSE.Controllers.Toolbar.stayButtonText": "Остаться на странице", + "SSE.Views.Toolbar.textBack": "Назад", "SSE.Views.AddFunction.sCatDateAndTime": "Дата и время", "SSE.Views.AddFunction.sCatEngineering": "Инженерные", "SSE.Views.AddFunction.sCatFinancial": "Финансовые", @@ -383,6 +392,7 @@ "SSE.Views.Search.textMatchCase": "С учетом регистра", "SSE.Views.Search.textMatchCell": "Сопоставление ячеек", "SSE.Views.Search.textReplace": "Заменить", + "SSE.Views.Search.textSearch": "Найти", "SSE.Views.Search.textSearchIn": "Область поиска", "SSE.Views.Search.textSheet": "Лист", "SSE.Views.Search.textWorkbook": "Книга", @@ -392,6 +402,7 @@ "SSE.Views.Settings.textBack": "Назад", "SSE.Views.Settings.textCreateDate": "Дата создания", "SSE.Views.Settings.textDocInfo": "Информация о документе", + "SSE.Views.Settings.textHelp": "Справка", "SSE.Views.Settings.textDocTitle": "Название документа", "SSE.Views.Settings.textDone": "Готово", "SSE.Views.Settings.textDownload": "Скачать",