From abdaa3ede69940e417d644490463563e0ab78365 Mon Sep 17 00:00:00 2001
From: Julia Radzhabova <Julia.Radzhabova@onlyoffice.com>
Date: Tue, 28 Nov 2017 15:25:06 +0300
Subject: [PATCH] [DE] Update translations.

---
 apps/common/main/lib/controller/Protection.js |  2 --
 apps/common/main/lib/view/PasswordDialog.js   | 10 +---------
 apps/common/main/lib/view/Protection.js       |  1 -
 apps/documenteditor/main/locale/en.json       | 17 +++++++++++++++++
 4 files changed, 18 insertions(+), 12 deletions(-)

diff --git a/apps/common/main/lib/controller/Protection.js b/apps/common/main/lib/controller/Protection.js
index 39b259554..47cce75de 100644
--- a/apps/common/main/lib/controller/Protection.js
+++ b/apps/common/main/lib/controller/Protection.js
@@ -234,7 +234,5 @@ define([
         onApiSignatureClick: function(guid, width, height) {
             this.signVisibleSignature(guid, width, height);
         }
-
-
     }, Common.Controllers.Protection || {}));
 });
\ No newline at end of file
diff --git a/apps/common/main/lib/view/PasswordDialog.js b/apps/common/main/lib/view/PasswordDialog.js
index 9f240b7fd..c88765c2e 100644
--- a/apps/common/main/lib/view/PasswordDialog.js
+++ b/apps/common/main/lib/view/PasswordDialog.js
@@ -77,14 +77,6 @@ define([
                         '<label>' + t.txtRepeat + '</label>',
                     '</div>',
                     '<div id="id-repeat-txt" class="input-row"></div>',
-
-                    // '<div class="content-panel" >',
-                    // '<label style="margin-bottom:15px;">' + t.txtDescription + '</label>',
-                    // '<label>' + t.txtPassword + '</label>',
-                    // '<div id="id-password-txt" style="margin-bottom:15px;"></div>',
-                    // '<label>' + t.txtRepeat + '</label>',
-                    // '<div id="id-repeat-txt" style="margin-bottom:15px;"></div>',
-                    // '</div>',
                 '</div>',
                 '<div class="separator horizontal"/>',
                 '<div class="footer center">',
@@ -174,5 +166,5 @@ define([
         txtRepeat: 'Repeat password',
         txtIncorrectPwd: 'Confirmation password is not identical'
 
-    }, Common.Views.Password || {}));
+    }, Common.Views.PasswordDialog || {}));
 });
\ No newline at end of file
diff --git a/apps/common/main/lib/view/Protection.js b/apps/common/main/lib/view/Protection.js
index d9ced8498..5283cdc53 100644
--- a/apps/common/main/lib/view/Protection.js
+++ b/apps/common/main/lib/view/Protection.js
@@ -227,7 +227,6 @@ define([
             txtDeletePwd: 'Delete password',
             txtInvisibleSignature: 'Add digital signature',
             txtSignatureLine: 'Signature line'
-
         }
     }()), Common.Views.Protection || {}));
 });
\ No newline at end of file
diff --git a/apps/documenteditor/main/locale/en.json b/apps/documenteditor/main/locale/en.json
index 4b4e0df75..d88b57203 100644
--- a/apps/documenteditor/main/locale/en.json
+++ b/apps/documenteditor/main/locale/en.json
@@ -183,12 +183,28 @@
   "Common.Views.OpenDialog.txtPassword": "Password",
   "Common.Views.OpenDialog.txtTitle": "Choose %1 options",
   "Common.Views.OpenDialog.txtTitleProtected": "Protected File",
+  "Common.Views.PasswordDialog.cancelButtonText": "Cancel",
+  "Common.Views.PasswordDialog.okButtonText": "OK",
+  "Common.Views.PasswordDialog.txtPassword": "Password",
+  "Common.Views.PasswordDialog.txtTitle": "Set Password",
+  "Common.Views.PasswordDialog.txtDescription": "A Password is required to open this document",
+  "Common.Views.PasswordDialog.txtRepeat": "Repeat password",
+  "Common.Views.PasswordDialog.txtIncorrectPwd": "Confirmation password is not identical",
   "Common.Views.PluginDlg.textLoading": "Loading",
   "Common.Views.Plugins.groupCaption": "Plugins",
   "Common.Views.Plugins.strPlugins": "Plugins",
   "Common.Views.Plugins.textLoading": "Loading",
   "Common.Views.Plugins.textStart": "Start",
   "Common.Views.Plugins.textStop": "Stop",
+  "Common.Views.Protection.txtEncrypt": "Encrypt",
+  "Common.Views.Protection.txtSignature": "Signature",
+  "Common.Views.Protection.hintAddPwd": "Encrypt with password",
+  "Common.Views.Protection.hintPwd": "Change or delete password",
+  "Common.Views.Protection.hintSignature": "Add digital signature or signature line",
+  "Common.Views.Protection.txtChangePwd": "Change password",
+  "Common.Views.Protection.txtDeletePwd": "Delete password",
+  "Common.Views.Protection.txtInvisibleSignature": "Add digital signature",
+  "Common.Views.Protection.txtSignatureLine": "Signature line",
   "Common.Views.RenameDialog.cancelButtonText": "Cancel",
   "Common.Views.RenameDialog.okButtonText": "Ok",
   "Common.Views.RenameDialog.textName": "File name",
@@ -1655,6 +1671,7 @@
   "DE.Views.Toolbar.textTabInsert": "Insert",
   "DE.Views.Toolbar.textTabLayout": "Layout",
   "DE.Views.Toolbar.textTabReview": "Review",
+  "DE.Views.Toolbar.textTabProtect": "Protection",
   "DE.Views.Toolbar.textTitleError": "Error",
   "DE.Views.Toolbar.textToCurrent": "To current position",
   "DE.Views.Toolbar.textTop": "Top: ",