syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ilgro...@apache.org
Subject [1/4] syncope git commit: [SYNCOPE-946] i18n handling of confirmation message
Date Mon, 03 Oct 2016 12:25:14 GMT
Repository: syncope
Updated Branches:
  refs/heads/2_0_X 720794a6c -> baa7600b6
  refs/heads/master b244c6144 -> f68588007


[SYNCOPE-946] i18n handling of confirmation message


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/97bdc567
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/97bdc567
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/97bdc567

Branch: refs/heads/2_0_X
Commit: 97bdc56760b6f3219e27268a992f533689fd881e
Parents: 720794a
Author: Francesco Chicchiriccò <ilgrosso@apache.org>
Authored: Mon Oct 3 13:56:03 2016 +0200
Committer: Francesco Chicchiriccò <ilgrosso@apache.org>
Committed: Mon Oct 3 13:56:03 2016 +0200

----------------------------------------------------------------------
 .../resources/META-INF/resources/app/languages/de/static.json     | 3 +--
 .../resources/META-INF/resources/app/languages/en/static.json     | 2 +-
 .../resources/META-INF/resources/app/languages/it/static.json     | 1 +
 .../META-INF/resources/app/views/dynamicPlainAttribute.html       | 3 ++-
 4 files changed, 5 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/97bdc567/client/enduser/src/main/resources/META-INF/resources/app/languages/de/static.json
----------------------------------------------------------------------
diff --git a/client/enduser/src/main/resources/META-INF/resources/app/languages/de/static.json
b/client/enduser/src/main/resources/META-INF/resources/app/languages/de/static.json
index d5a1e46..9c800db 100644
--- a/client/enduser/src/main/resources/META-INF/resources/app/languages/de/static.json
+++ b/client/enduser/src/main/resources/META-INF/resources/app/languages/de/static.json
@@ -42,8 +42,7 @@
   "SUCCESSFULLY_UPDATED": "succesvol geüpdatet",
   "PASSWORD_UPDATED": ": password succesfully updated",
   "GOBACKHOME": "Klik op deze link om terug te gaan naar de home page",
+  "CONFIRM_REMOVE": "This will remove the current value. Continue?",
   "own": "Besitzen"
-
-
 }
 

http://git-wip-us.apache.org/repos/asf/syncope/blob/97bdc567/client/enduser/src/main/resources/META-INF/resources/app/languages/en/static.json
----------------------------------------------------------------------
diff --git a/client/enduser/src/main/resources/META-INF/resources/app/languages/en/static.json
b/client/enduser/src/main/resources/META-INF/resources/app/languages/en/static.json
index 007cf48..543803e 100644
--- a/client/enduser/src/main/resources/META-INF/resources/app/languages/en/static.json
+++ b/client/enduser/src/main/resources/META-INF/resources/app/languages/en/static.json
@@ -42,7 +42,7 @@
   "SUCCESSFULLY_UPDATED": "succesfully updated",
   "PASSWORD_UPDATED": ": password succesfully updated",
   "GOBACKHOME": "Click on this link to go back to the home page",
+  "CONFIRM_REMOVE": "This will remove the current value. Continue?",
   "own": "Own"
-
 }
 

http://git-wip-us.apache.org/repos/asf/syncope/blob/97bdc567/client/enduser/src/main/resources/META-INF/resources/app/languages/it/static.json
----------------------------------------------------------------------
diff --git a/client/enduser/src/main/resources/META-INF/resources/app/languages/it/static.json
b/client/enduser/src/main/resources/META-INF/resources/app/languages/it/static.json
index a5921b4..d1fee7c 100644
--- a/client/enduser/src/main/resources/META-INF/resources/app/languages/it/static.json
+++ b/client/enduser/src/main/resources/META-INF/resources/app/languages/it/static.json
@@ -41,5 +41,6 @@
   "SUCCESSFULLY_UPDATED": "aggiornato con successo",
   "PASSWORD_UPDATED": ": password succesfully updated",
   "GOBACKHOME": "Clicca su questo link per tornare alla home page",
+  "CONFIRM_REMOVE": "Questa azione rimuoverà il valore corrente. Continuare?",
   "own": "Propri"
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/syncope/blob/97bdc567/client/enduser/src/main/resources/META-INF/resources/app/views/dynamicPlainAttribute.html
----------------------------------------------------------------------
diff --git a/client/enduser/src/main/resources/META-INF/resources/app/views/dynamicPlainAttribute.html
b/client/enduser/src/main/resources/META-INF/resources/app/views/dynamicPlainAttribute.html
index fbdf0a2..b840463 100644
--- a/client/enduser/src/main/resources/META-INF/resources/app/views/dynamicPlainAttribute.html
+++ b/client/enduser/src/main/resources/META-INF/resources/app/views/dynamicPlainAttribute.html
@@ -26,13 +26,14 @@ under the License.
   <div ng-switch-when="Encrypted" class="input-group input-group-sm">
     <span class="input-group-btn">  
       <button type="button" class="btn btn-default btn-flat"
+              confirm="{{'CONFIRM_REMOVE'| translate}}"
               onclick="var pwd = $(this).parent().next('input');
                   if (pwd.is('[readonly]')) {
                     if (pwd.val() === '') {
                       pwd.removeAttr('readonly');
                       $(this).children().attr('class', 'fa fa-unlock');
                     } else {
-                      var response = confirm('This will remove the current value. Continue?');
+                      var response = confirm($(this).attr('confirm'));
                       if (response == true) {
                         pwd.removeAttr('readonly');
                         pwd.val('');


Mime
View raw message