diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2013-04-04 14:13:34 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2013-05-06 16:22:22 +0200 |
commit | d5c0945890a4f2d360465ac2201ed2928f64dd23 (patch) | |
tree | f1fb80432266839bf50c08d054cc18d7ce13c2a7 /install/ui/src/freeipa/ipa.js | |
parent | 8ee752c284241bd7ca87de31125716329a110eb5 (diff) | |
download | freeipa.git-d5c0945890a4f2d360465ac2201ed2928f64dd23.tar.gz freeipa.git-d5c0945890a4f2d360465ac2201ed2928f64dd23.tar.xz freeipa.git-d5c0945890a4f2d360465ac2201ed2928f64dd23.zip |
Replace remaining IPA.messages with text.get calls
https://fedorahosted.org/freeipa/ticket/3235
Diffstat (limited to 'install/ui/src/freeipa/ipa.js')
-rw-r--r-- | install/ui/src/freeipa/ipa.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/install/ui/src/freeipa/ipa.js b/install/ui/src/freeipa/ipa.js index a4724181..0c6c65b8 100644 --- a/install/ui/src/freeipa/ipa.js +++ b/install/ui/src/freeipa/ipa.js @@ -518,7 +518,7 @@ IPA.update_password_expiration = function() { diff = Math.floor(diff / 86400000); if (diff <= notify_days) { - message = IPA.messages.password.expires_in; + message = text.get('@i18n:password.expires_in'); message = message.replace('${days}', diff); container.append(message + ' '); $('<a/>', { @@ -527,8 +527,8 @@ IPA.update_password_expiration = function() { IPA.password_selfservice(); return false; }, - text: IPA.messages.password.reset_password_sentence, - title: IPA.messages.password.reset_password + text: text.get('@i18n:password.reset_password_sentence'), + title: text.get('@i18n:password.reset_password') }).appendTo(container); } } @@ -546,7 +546,7 @@ IPA.password_selfservice = function() { }; command.execute(); - alert(IPA.messages.password.password_change_complete); + alert(text.get('@i18n:password.password_change_complete')); reset_dialog.close(); } }); @@ -1421,14 +1421,14 @@ IPA.error_dialog = function(spec) { var show_details = $('<a />', { href: '#', - title: IPA.messages.dialogs.show_details, - text: IPA.messages.dialogs.show_details + title: text.get('@i18n:dialogs.show_details'), + text: text.get('@i18n:dialogs.show_details') }).appendTo(errors_title_div); var hide_details = $('<a />', { href: '#', - title: IPA.messages.dialogs.hide_details, - text: IPA.messages.dialogs.hide_details, + title: text.get('@i18n:dialogs.hide_details'), + text: text.get('@i18n:dialogs.hide_details'), style : 'display: none' }).appendTo(errors_title_div); |