diff --git a/apps/documenteditor/embed/js/ApplicationController.js b/apps/documenteditor/embed/js/ApplicationController.js index ddff08fb3..0ff8adb81 100644 --- a/apps/documenteditor/embed/js/ApplicationController.js +++ b/apps/documenteditor/embed/js/ApplicationController.js @@ -392,6 +392,10 @@ var ApplicationController = new(function(){ message = me.downloadErrorText; break; + case Asc.c_oAscError.ID.ConvertationPassword: + message = me.errorFilePassProtect; + break; + default: message = me.errorDefaultMessage.replace('%1', id); break; @@ -536,6 +540,7 @@ var ApplicationController = new(function(){ downloadErrorText : 'Download failed.', criticalErrorTitle : 'Error', notcriticalErrorTitle : 'Warning', - scriptLoadError: 'The connection is too slow, some of the components could not be loaded. Please reload the page.' + scriptLoadError: 'The connection is too slow, some of the components could not be loaded. Please reload the page.', + errorFilePassProtect: 'The file is password protected and cannot be opened.' } })(); \ No newline at end of file diff --git a/apps/presentationeditor/embed/js/ApplicationController.js b/apps/presentationeditor/embed/js/ApplicationController.js index 788d131cc..8c43b731f 100644 --- a/apps/presentationeditor/embed/js/ApplicationController.js +++ b/apps/presentationeditor/embed/js/ApplicationController.js @@ -491,6 +491,10 @@ var ApplicationController = new(function(){ message = me.downloadErrorText; break; + case Asc.c_oAscError.ID.ConvertationPassword: + message = me.errorFilePassProtect; + break; + default: message = me.errorDefaultMessage.replace('%1', id); break; @@ -606,6 +610,7 @@ var ApplicationController = new(function(){ downloadErrorText : 'Download failed.', criticalErrorTitle : 'Error', notcriticalErrorTitle : 'Warning', - scriptLoadError: 'The connection is too slow, some of the components could not be loaded. Please reload the page.' + scriptLoadError: 'The connection is too slow, some of the components could not be loaded. Please reload the page.', + errorFilePassProtect: 'The file is password protected and cannot be opened.' } })(); diff --git a/apps/spreadsheeteditor/embed/js/ApplicationController.js b/apps/spreadsheeteditor/embed/js/ApplicationController.js index 530995893..7f02ad1c9 100644 --- a/apps/spreadsheeteditor/embed/js/ApplicationController.js +++ b/apps/spreadsheeteditor/embed/js/ApplicationController.js @@ -399,6 +399,10 @@ var ApplicationController = new(function(){ message = me.downloadErrorText; break; + case Asc.c_oAscError.ID.ConvertationPassword: + message = me.errorFilePassProtect; + break; + default: message = me.errorDefaultMessage.replace('%1', id); break; @@ -553,6 +557,7 @@ var ApplicationController = new(function(){ downloadErrorText : 'Download failed.', criticalErrorTitle : 'Error', notcriticalErrorTitle : 'Warning', - scriptLoadError: 'The connection is too slow, some of the components could not be loaded. Please reload the page.' + scriptLoadError: 'The connection is too slow, some of the components could not be loaded. Please reload the page.', + errorFilePassProtect: 'The file is password protected and cannot be opened.' } })(); \ No newline at end of file