From 2b4855a407e3bc6b88843da588f4aaa07202990a Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Thu, 19 Aug 2021 22:03:44 +0300 Subject: [PATCH] [Embedded] For Bug 50233 --- apps/documenteditor/embed/js/ApplicationController.js | 7 ++++++- apps/documenteditor/embed/locale/en.json | 1 + apps/presentationeditor/embed/js/ApplicationController.js | 7 ++++++- apps/presentationeditor/embed/locale/en.json | 1 + apps/spreadsheeteditor/embed/js/ApplicationController.js | 7 ++++++- apps/spreadsheeteditor/embed/locale/en.json | 1 + 6 files changed, 21 insertions(+), 3 deletions(-) diff --git a/apps/documenteditor/embed/js/ApplicationController.js b/apps/documenteditor/embed/js/ApplicationController.js index 0a85351a0..098d2f2f1 100644 --- a/apps/documenteditor/embed/js/ApplicationController.js +++ b/apps/documenteditor/embed/js/ApplicationController.js @@ -742,6 +742,10 @@ DE.ApplicationController = new(function(){ message = me.errorForceSave; break; + case Asc.c_oAscError.ID.LoadingFontError: + message = me.errorLoadingFont; + break; + default: message = me.errorDefaultMessage.replace('%1', id); break; @@ -927,6 +931,7 @@ DE.ApplicationController = new(function(){ textGotIt: 'Got it', errorForceSave: "An error occurred while saving the file. Please use the 'Download as' option to save the file to your computer hard drive or try again later.", txtEmpty: '(Empty)', - txtPressLink: 'Press Ctrl and click link' + txtPressLink: 'Press Ctrl and click link', + errorLoadingFont: 'Fonts are not loaded.
Please contact your Document Server administrator.' } })(); \ No newline at end of file diff --git a/apps/documenteditor/embed/locale/en.json b/apps/documenteditor/embed/locale/en.json index ce0a6ba1e..d2593f321 100644 --- a/apps/documenteditor/embed/locale/en.json +++ b/apps/documenteditor/embed/locale/en.json @@ -36,6 +36,7 @@ "DE.ApplicationController.unknownErrorText": "Unknown error.", "DE.ApplicationController.unsupportedBrowserErrorText": "Your browser is not supported.", "DE.ApplicationController.waitText": "Please, wait...", + "DE.ApplicationController.errorLoadingFont": "Fonts are not loaded.
Please contact your Document Server administrator.", "DE.ApplicationView.txtDownload": "Download", "DE.ApplicationView.txtDownloadDocx": "Download as docx", "DE.ApplicationView.txtDownloadPdf": "Download as pdf", diff --git a/apps/presentationeditor/embed/js/ApplicationController.js b/apps/presentationeditor/embed/js/ApplicationController.js index 421898910..d1f35d92f 100644 --- a/apps/presentationeditor/embed/js/ApplicationController.js +++ b/apps/presentationeditor/embed/js/ApplicationController.js @@ -573,6 +573,10 @@ PE.ApplicationController = new(function(){ message = me.errorForceSave; break; + case Asc.c_oAscError.ID.LoadingFontError: + message = me.errorLoadingFont; + break; + default: message = me.errorDefaultMessage.replace('%1', id); break; @@ -718,6 +722,7 @@ PE.ApplicationController = new(function(){ errorUpdateVersionOnDisconnect: 'Internet connection has been restored, and the file version has been changed.
Before you can continue working, you need to download the file or copy its content to make sure nothing is lost, and then reload this page.', textGuest: 'Guest', textAnonymous: 'Anonymous', - errorForceSave: "An error occurred while saving the file. Please use the 'Download as' option to save the file to your computer hard drive or try again later." + errorForceSave: "An error occurred while saving the file. Please use the 'Download as' option to save the file to your computer hard drive or try again later.", + errorLoadingFont: 'Fonts are not loaded.
Please contact your Document Server administrator.' } })(); diff --git a/apps/presentationeditor/embed/locale/en.json b/apps/presentationeditor/embed/locale/en.json index 21d4323fc..d81cf4eea 100644 --- a/apps/presentationeditor/embed/locale/en.json +++ b/apps/presentationeditor/embed/locale/en.json @@ -26,6 +26,7 @@ "PE.ApplicationController.unknownErrorText": "Unknown error.", "PE.ApplicationController.unsupportedBrowserErrorText": "Your browser is not supported.", "PE.ApplicationController.waitText": "Please, wait...", + "PE.ApplicationController.errorLoadingFont": "Fonts are not loaded.
Please contact your Document Server administrator.", "PE.ApplicationView.txtDownload": "Download", "PE.ApplicationView.txtEmbed": "Embed", "PE.ApplicationView.txtFileLocation": "Open file location", diff --git a/apps/spreadsheeteditor/embed/js/ApplicationController.js b/apps/spreadsheeteditor/embed/js/ApplicationController.js index c2f7cec9a..87c5c17b5 100644 --- a/apps/spreadsheeteditor/embed/js/ApplicationController.js +++ b/apps/spreadsheeteditor/embed/js/ApplicationController.js @@ -486,6 +486,10 @@ SSE.ApplicationController = new(function(){ message = me.errorForceSave; break; + case Asc.c_oAscError.ID.LoadingFontError: + message = me.errorLoadingFont; + break; + default: message = me.errorDefaultMessage.replace('%1', id); break; @@ -669,6 +673,7 @@ SSE.ApplicationController = new(function(){ errorUpdateVersionOnDisconnect: 'Internet connection has been restored, and the file version has been changed.
Before you can continue working, you need to download the file or copy its content to make sure nothing is lost, and then reload this page.', textGuest: 'Guest', textAnonymous: 'Anonymous', - errorForceSave: "An error occurred while saving the file. Please use the 'Download as' option to save the file to your computer hard drive or try again later." + errorForceSave: "An error occurred while saving the file. Please use the 'Download as' option to save the file to your computer hard drive or try again later.", + errorLoadingFont: 'Fonts are not loaded.
Please contact your Document Server administrator.' } })(); \ No newline at end of file diff --git a/apps/spreadsheeteditor/embed/locale/en.json b/apps/spreadsheeteditor/embed/locale/en.json index 93eadaf48..234ea61e1 100644 --- a/apps/spreadsheeteditor/embed/locale/en.json +++ b/apps/spreadsheeteditor/embed/locale/en.json @@ -26,6 +26,7 @@ "SSE.ApplicationController.unknownErrorText": "Unknown error.", "SSE.ApplicationController.unsupportedBrowserErrorText": "Your browser is not supported.", "SSE.ApplicationController.waitText": "Please, wait...", + "SSE.ApplicationController.errorLoadingFont": "Fonts are not loaded.
Please contact your Document Server administrator.", "SSE.ApplicationView.txtDownload": "Download", "SSE.ApplicationView.txtEmbed": "Embed", "SSE.ApplicationView.txtFileLocation": "Open file location",