From ebddb529df780703f4b3a45b75535887a8f2ebb6 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Wed, 13 Apr 2016 15:40:58 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=20=D0=BF=D1=80=D0=BE=D1=81=D1=8C?= =?UTF-8?q?=D0=B1=D0=B5=20=D0=BE=D1=82=D0=B4.=20=D1=82=D0=B5=D1=85=D0=BF?= =?UTF-8?q?=D0=BE=D0=B4=D0=B4=D0=B5=D1=80=D0=B6=D0=BA=D0=B8=20=D0=B8=20?= =?UTF-8?q?=D0=BF=D1=80=D0=BE=D0=B5=D0=BA=D1=82=D0=B8=D1=80=D0=BE=D0=B2?= =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D1=8F=20=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5?= =?UTF-8?q?=D0=BD=D0=BE=20=D1=81=D0=BE=D0=BE=D0=B1=D1=89=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=BE=D0=B1=20=D0=BE=D1=82=D1=81=D1=83=D1=82=D1=81?= =?UTF-8?q?=D1=82=D0=B2=D0=B8=D0=B8=20=D0=BB=D0=B8=D1=86=D0=B5=D0=BD=D0=B7?= =?UTF-8?q?=D0=B8=D0=B8=20(=D0=B4=D0=BB=D1=8F=20=D0=B8=D1=81=D0=BF=D0=BE?= =?UTF-8?q?=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D1=8F=20=D0=B2?= =?UTF-8?q?=20Enterprise=20Edition=20=D0=B8=20Integration=20Edition).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../documenteditor/main/app/controller/Main.js | 18 ++++++++++++------ apps/documenteditor/main/locale/en.json | 5 +++-- .../main/app/controller/Main.js | 18 ++++++++++++------ apps/presentationeditor/main/locale/en.json | 5 +++-- .../main/app/controller/Main.js | 18 ++++++++++++------ apps/spreadsheeteditor/main/locale/en.json | 5 +++-- 6 files changed, 45 insertions(+), 24 deletions(-) diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js index 19af3ca78..7389ea1aa 100644 --- a/apps/documenteditor/main/app/controller/Main.js +++ b/apps/documenteditor/main/app/controller/Main.js @@ -892,14 +892,19 @@ define([ if (now - value > 86400000) { Common.localStorage.setItem("de-license-warning", now); Common.UI.info({ + width: 400, title: this.textNoLicenseTitle, msg : this.warnNoLicense, - buttons: ['custom'], - primary: 'custom', - customButtonText: this.textBuyNow, + buttons: [ + {value: 'buynow', caption: this.textBuyNow}, + {value: 'contact', caption: this.textContactUs} + ], + primary: 'buynow', callback: function(btn) { - if (btn == 'custom') + if (btn == 'buynow') window.open('http://www.onlyoffice.com/enterprise-edition.aspx', "_blank"); + else if (btn == 'contact') + window.open('mailto:sales@onlyoffice.com', "_blank"); } }); } @@ -1791,8 +1796,9 @@ define([ textStrict: 'Strict mode', txtErrorLoadHistory: 'Loading history failed', textBuyNow: 'Buy now', - textNoLicenseTitle: 'License expired', - warnNoLicense: 'The license expired. You cannot create or edit files.
Click the \'Buy now\' button to prolong the license.' + textNoLicenseTitle: 'License expired or not found', + warnNoLicense: 'The license could not be found or expired. You cannot edit files.
Click \'Buy now\' to purchase Enterprise Edition license or \'Contact us\' if you use Integration Edition.', + textContactUs: 'Contact us' } })(), DE.Controllers.Main || {})) }); \ No newline at end of file diff --git a/apps/documenteditor/main/locale/en.json b/apps/documenteditor/main/locale/en.json index 294bebe27..e71bd8338 100644 --- a/apps/documenteditor/main/locale/en.json +++ b/apps/documenteditor/main/locale/en.json @@ -234,7 +234,7 @@ "DE.Controllers.Main.textBuyNow": "Buy now", "DE.Controllers.Main.textCloseTip": "\nClick to close the tip", "DE.Controllers.Main.textLoadingDocument": "Loading document", - "DE.Controllers.Main.textNoLicenseTitle": "License expired", + "DE.Controllers.Main.textNoLicenseTitle": "License expired or not found", "DE.Controllers.Main.textStrict": "Strict mode", "DE.Controllers.Main.textTryUndoRedo": "The Undo/Redo functions are disabled for the Fast co-editing mode.
Click the 'Strict mode' button to switch to the Strict co-editing mode to edit the file without other users interference and send your changes only after you save them. You can switch between the co-editing modes using the editor Advanced settings.", "DE.Controllers.Main.titleUpdateVersion": "Version changed", @@ -264,8 +264,9 @@ "DE.Controllers.Main.uploadImageTitleText": "Uploading Image", "DE.Controllers.Main.warnBrowserIE9": "The application has low capabilities on IE9. Use IE10 or higher", "DE.Controllers.Main.warnBrowserZoom": "Your browser current zoom setting is not fully supported. Please reset to the default zoom by pressing Ctrl+0.", - "DE.Controllers.Main.warnNoLicense": "The license expired. You cannot create or edit files.
Click the 'Buy now' button to prolong the license.", + "DE.Controllers.Main.warnNoLicense": "The license could not be found or expired. You cannot edit files.
Click 'Buy now' to purchase Enterprise Edition license or 'Contact us' if you use Integration Edition.", "DE.Controllers.Main.warnProcessRightsChange": "You have been denied the right to edit the file.", + "DE.Controllers.Main.textContactUs": "Contact us", "DE.Controllers.Statusbar.textHasChanges": "New changes have been tracked", "DE.Controllers.Statusbar.textTrackChanges": "The document is opened with the Track Changes mode enabled", "DE.Controllers.Statusbar.zoomText": "Zoom {0}%", diff --git a/apps/presentationeditor/main/app/controller/Main.js b/apps/presentationeditor/main/app/controller/Main.js index fab35c4bb..7f951eae4 100644 --- a/apps/presentationeditor/main/app/controller/Main.js +++ b/apps/presentationeditor/main/app/controller/Main.js @@ -683,14 +683,19 @@ define([ if (now - value > 86400000) { Common.localStorage.setItem("de-license-warning", now); Common.UI.info({ + width: 400, title: this.textNoLicenseTitle, msg : this.warnNoLicense, - buttons: ['custom'], - primary: 'custom', - customButtonText: this.textBuyNow, + buttons: [ + {value: 'buynow', caption: this.textBuyNow}, + {value: 'contact', caption: this.textContactUs} + ], + primary: 'buynow', callback: function(btn) { - if (btn == 'custom') + if (btn == 'buynow') window.open('http://www.onlyoffice.com/enterprise-edition.aspx', "_blank"); + else if (btn == 'contact') + window.open('mailto:sales@onlyoffice.com', "_blank"); } }); } @@ -1605,8 +1610,9 @@ define([ textTryUndoRedo: 'The Undo/Redo functions are disabled for the Fast co-editing mode.
Click the \'Strict mode\' button to switch to the Strict co-editing mode to edit the file without other users interference and send your changes only after you save them. You can switch between the co-editing modes using the editor Advanced settings.', textStrict: 'Strict mode', textBuyNow: 'Buy now', - textNoLicenseTitle: 'License expired', - warnNoLicense: 'The license expired. You cannot create or edit files.
Click the \'Buy now\' button to prolong the license.' + textNoLicenseTitle: 'License expired or not found', + warnNoLicense: 'The license could not be found or expired. You cannot edit files.
Click \'Buy now\' to purchase Enterprise Edition license or \'Contact us\' if you use Integration Edition.', + textContactUs: 'Contact us' } })(), PE.Controllers.Main || {})) }); diff --git a/apps/presentationeditor/main/locale/en.json b/apps/presentationeditor/main/locale/en.json index c883f0a14..c7f5cffa4 100644 --- a/apps/presentationeditor/main/locale/en.json +++ b/apps/presentationeditor/main/locale/en.json @@ -147,7 +147,7 @@ "PE.Controllers.Main.textBuyNow": "Buy now", "PE.Controllers.Main.textCloseTip": "\nClick to close the tip", "PE.Controllers.Main.textLoadingDocument": "Loading presentation", - "PE.Controllers.Main.textNoLicenseTitle": "License expired", + "PE.Controllers.Main.textNoLicenseTitle": "License expired or not found", "PE.Controllers.Main.textShape": "Shape", "PE.Controllers.Main.textStrict": "Strict mode", "PE.Controllers.Main.textTryUndoRedo": "The Undo/Redo functions are disabled for the Fast co-editing mode.
Click the 'Strict mode' button to switch to the Strict co-editing mode to edit the file without other users interference and send your changes only after you save them. You can switch between the co-editing modes using the editor Advanced settings.", @@ -212,8 +212,9 @@ "PE.Controllers.Main.uploadImageTitleText": "Uploading Image", "PE.Controllers.Main.warnBrowserIE9": "The application has low capabilities on IE9. Use IE10 or higher", "PE.Controllers.Main.warnBrowserZoom": "Your browser current zoom setting is not fully supported. Please reset to the default zoom by pressing Ctrl+0.", - "PE.Controllers.Main.warnNoLicense": "The license expired. You cannot create or edit files.
Click the 'Buy now' button to prolong the license.", + "PE.Controllers.Main.warnNoLicense": "The license could not be found or expired. You cannot edit files.
Click 'Buy now' to purchase Enterprise Edition license or 'Contact us' if you use Integration Edition.", "PE.Controllers.Main.warnProcessRightsChange": "You have been denied the right to edit the file.", + "PE.Controllers.Main.textContactUs": "Contact us", "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.textEmptyImgUrl": "You need to specify image URL.", diff --git a/apps/spreadsheeteditor/main/app/controller/Main.js b/apps/spreadsheeteditor/main/app/controller/Main.js index a55214701..d1ee96efa 100644 --- a/apps/spreadsheeteditor/main/app/controller/Main.js +++ b/apps/spreadsheeteditor/main/app/controller/Main.js @@ -689,14 +689,19 @@ define([ if (now - value > 86400000) { Common.localStorage.setItem("de-license-warning", now); Common.UI.info({ + width: 400, title: this.textNoLicenseTitle, msg : this.warnNoLicense, - buttons: ['custom'], - primary: 'custom', - customButtonText: this.textBuyNow, + buttons: [ + {value: 'buynow', caption: this.textBuyNow}, + {value: 'contact', caption: this.textContactUs} + ], + primary: 'buynow', callback: function(btn) { - if (btn == 'custom') + if (btn == 'buynow') window.open('http://www.onlyoffice.com/enterprise-edition.aspx', "_blank"); + else if (btn == 'contact') + window.open('mailto:sales@onlyoffice.com', "_blank"); } }); } @@ -1778,8 +1783,9 @@ define([ errorOpenWarning: 'The length of one of the formulas in the file exceeded
the allowed number of characters and it was removed.', errorFrmlWrongReferences: 'The function refers to a sheet that does not exist.
Please check the data and try again.', textBuyNow: 'Buy now', - textNoLicenseTitle: 'License expired', - warnNoLicense: 'The license expired. You cannot create or edit files.
Click the \'Buy now\' button to prolong the license.' + textNoLicenseTitle: 'License expired or not found', + warnNoLicense: 'The license could not be found or expired. You cannot edit files.
Click \'Buy now\' to purchase Enterprise Edition license or \'Contact us\' if you use Integration Edition.', + textContactUs: 'Contact us' } })(), SSE.Controllers.Main || {})) }); diff --git a/apps/spreadsheeteditor/main/locale/en.json b/apps/spreadsheeteditor/main/locale/en.json index b9058c2cc..036951ab7 100644 --- a/apps/spreadsheeteditor/main/locale/en.json +++ b/apps/spreadsheeteditor/main/locale/en.json @@ -184,7 +184,7 @@ "SSE.Controllers.Main.textConfirm": "Confirmation", "SSE.Controllers.Main.textLoadingDocument": "Loading spreadsheet", "SSE.Controllers.Main.textNo": "No", - "SSE.Controllers.Main.textNoLicenseTitle": "License expired", + "SSE.Controllers.Main.textNoLicenseTitle": "License expired or not found", "SSE.Controllers.Main.textPleaseWait": "The operation might take more time than expected. Please wait...", "SSE.Controllers.Main.textRecalcFormulas": "Calculating formulas...", "SSE.Controllers.Main.textShape": "Shape", @@ -216,8 +216,9 @@ "SSE.Controllers.Main.uploadImageTitleText": "Uploading Image", "SSE.Controllers.Main.warnBrowserIE9": "The application has low capabilities on IE9. Use IE10 or higher", "SSE.Controllers.Main.warnBrowserZoom": "Your browser current zoom setting is not fully supported. Please reset to the default zoom by pressing Ctrl+0.", - "SSE.Controllers.Main.warnNoLicense": "The license expired. You cannot create or edit files.
Click the 'Buy now' button to prolong the license.", + "SSE.Controllers.Main.warnNoLicense": "The license could not be found or expired. You cannot edit files.
Click 'Buy now' to purchase Enterprise Edition license or 'Contact us' if you use Integration Edition.", "SSE.Controllers.Main.warnProcessRightsChange": "You have been denied the right to edit the file.", + "SSE.Controllers.Main.textContactUs": "Contact us", "SSE.Controllers.Print.strAllSheets": "All Sheets", "SSE.Controllers.Print.textWarning": "Warning", "SSE.Controllers.Print.warnCheckMargings": "Margins are incorrect",