From f01032b319f7f154bd506f33d210fd0afbc7ada2 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Thu, 22 Jun 2017 17:19:01 +0300 Subject: [PATCH] [PE, PE mobile] Set translation to api. --- .../main/app/controller/Main.js | 30 +++++++++++++++++-- apps/presentationeditor/main/locale/en.json | 12 ++++++++ .../mobile/app/controller/Main.js | 30 +++++++++++++++++-- apps/presentationeditor/mobile/locale/en.json | 12 ++++++++ 4 files changed, 80 insertions(+), 4 deletions(-) diff --git a/apps/presentationeditor/main/app/controller/Main.js b/apps/presentationeditor/main/app/controller/Main.js index 5913eca02..959d26536 100644 --- a/apps/presentationeditor/main/app/controller/Main.js +++ b/apps/presentationeditor/main/app/controller/Main.js @@ -126,7 +126,21 @@ define([ 'Diagram Title': this.txtDiagramTitle, 'X Axis': this.txtXAxis, 'Y Axis': this.txtYAxis, - 'Your text here': this.txtArt + 'Your text here': this.txtArt, + 'Slide text': this.txtSlideText, + 'Chart': this.txtSldLtTChart, + 'ClipArt': this.txtClipArt, + 'Diagram': this.txtDiagram, + 'Date and time': this.txtDateTime, + 'Footer': this.txtFooter, + 'Header': this.txtHeader, + 'Media': this.txtMedia, + 'Picture': this.txtPicture, + 'Image': this.txtImage, + 'Slide number': this.txtSlideNumber, + 'Slide subtitle': this.txtSlideSubtitle, + 'Table': this.txtSldLtTTbl, + 'Slide title': this.txtSlideTitle } }); @@ -1954,7 +1968,19 @@ define([ titleServerVersion: 'Editor updated', errorServerVersion: 'The editor version has been updated. The page will be reloaded to apply the changes.', textChangesSaved: 'All changes saved', - errorBadImageUrl: 'Image url is incorrect' + errorBadImageUrl: 'Image url is incorrect', + txtSlideText: 'Slide text', + txtClipArt: 'Clip Art', + txtDiagram: 'Diagram', + txtDateTime: 'Date and time', + txtFooter: 'Footer', + txtHeader: 'Header', + txtMedia: 'Media', + txtPicture: 'Picture', + txtImage: 'Image', + txtSlideNumber: 'Slide number', + txtSlideSubtitle: 'Slide subtitle', + txtSlideTitle: 'Slide title' } })(), PE.Controllers.Main || {})) }); diff --git a/apps/presentationeditor/main/locale/en.json b/apps/presentationeditor/main/locale/en.json index 4bd9ac839..40a817723 100644 --- a/apps/presentationeditor/main/locale/en.json +++ b/apps/presentationeditor/main/locale/en.json @@ -251,6 +251,18 @@ "PE.Controllers.Main.warnLicenseExp": "Your license has expired.
Please update your license and refresh the page.", "PE.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.", "PE.Controllers.Main.warnProcessRightsChange": "You have been denied the right to edit the file.", + "PE.Controllers.Main.txtSlideText": "Slide text", + "PE.Controllers.Main.txtClipArt": "Clip Art", + "PE.Controllers.Main.txtDiagram": "Diagram", + "PE.Controllers.Main.txtDateTime": "Date and time", + "PE.Controllers.Main.txtFooter": "Footer", + "PE.Controllers.Main.txtHeader": "Header", + "PE.Controllers.Main.txtMedia": "Media", + "PE.Controllers.Main.txtPicture": "Picture", + "PE.Controllers.Main.txtImage": "Image", + "PE.Controllers.Main.txtSlideNumber": "Slide number", + "PE.Controllers.Main.txtSlideSubtitle": "Slide subtitle", + "PE.Controllers.Main.txtSlideTitle": "Slide title", "PE.Controllers.Statusbar.zoomText": "Zoom {0}%", "PE.Controllers.Toolbar.confirmAddFontName": "The font you are going to save is not available on the current device.
The text style will be displayed using one of the system fonts, the saved font will be used when it is available.
Do you want to continue?", "PE.Controllers.Toolbar.textAccent": "Accents", diff --git a/apps/presentationeditor/mobile/app/controller/Main.js b/apps/presentationeditor/mobile/app/controller/Main.js index 88bccfead..c75e693ba 100644 --- a/apps/presentationeditor/mobile/app/controller/Main.js +++ b/apps/presentationeditor/mobile/app/controller/Main.js @@ -104,7 +104,21 @@ define([ 'Diagram Title': me.txtDiagramTitle, 'X Axis': me.txtXAxis, 'Y Axis': me.txtYAxis, - 'Your text here': me.txtArt + 'Your text here': me.txtArt, + 'Slide text': this.txtSlideText, + 'Chart': this.txtSldLtTChart, + 'ClipArt': this.txtClipArt, + 'Diagram': this.txtDiagram, + 'Date and time': this.txtDateTime, + 'Footer': this.txtFooter, + 'Header': this.txtHeader, + 'Media': this.txtMedia, + 'Picture': this.txtPicture, + 'Image': this.txtImage, + 'Slide number': this.txtSlideNumber, + 'Slide subtitle': this.txtSlideSubtitle, + 'Table': this.txtSldLtTTbl, + 'Slide title': this.txtSlideTitle } }); @@ -1217,7 +1231,19 @@ define([ textDone: 'Done', titleServerVersion: 'Editor updated', errorServerVersion: 'The editor version has been updated. The page will be reloaded to apply the changes.', - errorBadImageUrl: 'Image url is incorrect' + errorBadImageUrl: 'Image url is incorrect', + txtSlideText: 'Slide text', + txtClipArt: 'Clip Art', + txtDiagram: 'Diagram', + txtDateTime: 'Date and time', + txtFooter: 'Footer', + txtHeader: 'Header', + txtMedia: 'Media', + txtPicture: 'Picture', + txtImage: 'Image', + txtSlideNumber: 'Slide number', + txtSlideSubtitle: 'Slide subtitle', + txtSlideTitle: 'Slide title' } })(), 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 f17dc263a..7883d6eec 100755 --- a/apps/presentationeditor/mobile/locale/en.json +++ b/apps/presentationeditor/mobile/locale/en.json @@ -193,6 +193,18 @@ "PE.Controllers.Main.warnLicenseExp": "Your license has expired.
Please update your license and refresh the page.", "PE.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.", "PE.Controllers.Main.warnProcessRightsChange": "You have been denied the right to edit the file.", + "PE.Controllers.Main.txtSlideText": "Slide text", + "PE.Controllers.Main.txtClipArt": "ClipArt", + "PE.Controllers.Main.txtDiagram": "Diagram", + "PE.Controllers.Main.txtDateTime": "Date and time", + "PE.Controllers.Main.txtFooter": "Footer", + "PE.Controllers.Main.txtHeader": "Header", + "PE.Controllers.Main.txtMedia": "Media", + "PE.Controllers.Main.txtPicture": "Picture", + "PE.Controllers.Main.txtImage": "Image", + "PE.Controllers.Main.txtSlideNumber": "Slide number", + "PE.Controllers.Main.txtSlideSubtitle": "Slide subtitle", + "PE.Controllers.Main.txtSlideTitle": "Slide title", "PE.Controllers.Search.textNoTextFound": "Text not Found", "PE.Controllers.Settings.notcriticalErrorTitle": "Warning", "PE.Controllers.Settings.txtLoading": "Loading...",