diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2013-04-03 18:18:57 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2013-05-06 16:22:21 +0200 |
commit | fcff33fb511db5ffe5c7809bb1a4593f2e681718 (patch) | |
tree | 31af15433d3e1a9df92f86a54eb56d8fcd2ebab9 /install/ui/src/freeipa/user.js | |
parent | 12f5f4cfdd38c2a29c8e6eeac17557f4e7731307 (diff) | |
download | freeipa-fcff33fb511db5ffe5c7809bb1a4593f2e681718.tar.gz freeipa-fcff33fb511db5ffe5c7809bb1a4593f2e681718.tar.xz freeipa-fcff33fb511db5ffe5c7809bb1a4593f2e681718.zip |
Replace IPA.messages with @i18n definition for label specs
Replaced by execution of
ls | grep .js | xargs sed -i -r "s/label: IPA.messages\.((.\w+)+)/label: '@i18n:\1'/"
https://fedorahosted.org/freeipa/ticket/3235
Diffstat (limited to 'install/ui/src/freeipa/user.js')
-rw-r--r-- | install/ui/src/freeipa/user.js | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/install/ui/src/freeipa/user.js b/install/ui/src/freeipa/user.js index b0b1efd7f..d02d27cea 100644 --- a/install/ui/src/freeipa/user.js +++ b/install/ui/src/freeipa/user.js @@ -44,7 +44,7 @@ IPA.user.entity = function(spec) { 'sn', { name: 'nsaccountlock', - label: IPA.messages.status.label, + label: '@i18n:status.label', formatter: IPA.boolean_status_formatter({ invert_value: true }) @@ -67,12 +67,12 @@ IPA.user.entity = function(spec) { control_buttons: [ { name: 'disable', - label: IPA.messages.buttons.disable, + label: '@i18n:buttons.disable', icon: 'disabled-icon' }, { name: 'enable', - label: IPA.messages.buttons.enable, + label: '@i18n:buttons.enable', icon: 'enabled-icon' } ] @@ -82,7 +82,7 @@ IPA.user.entity = function(spec) { sections: [ { name: 'identity', - label: IPA.messages.details.identity, + label: '@i18n:details.identity', fields: [ 'title', 'givenname', @@ -109,7 +109,7 @@ IPA.user.entity = function(spec) { }, { name: 'krbpasswordexpiration', - label: IPA.messages.objects.user.krbpasswordexpiration, + label: '@i18n:objects.user.krbpasswordexpiration', read_only: true, formatter: IPA.utc_date_formatter() }, @@ -120,13 +120,13 @@ IPA.user.entity = function(spec) { { type: 'sshkeys', name: 'ipasshpubkey', - label: IPA.messages.objects.sshkeystore.keys + label: '@i18n:objects.sshkeystore.keys' } ] }, { name: 'pwpolicy', - label: IPA.messages.objects.pwpolicy.identity, + label: '@i18n:objects.pwpolicy.identity', fields: [ { name: 'krbmaxpwdlife', @@ -175,7 +175,7 @@ IPA.user.entity = function(spec) { }, { name: 'krbtpolicy', - label: IPA.messages.objects.krbtpolicy.identity, + label: '@i18n:objects.krbtpolicy.identity', fields: [ { name: 'krbmaxrenewableage', @@ -299,12 +299,12 @@ IPA.user.entity = function(spec) { fields: [ { name: 'userpassword', - label: IPA.messages.password.new_password, + label: '@i18n:password.new_password', type: 'password' }, { name: 'userpassword2', - label: IPA.messages.password.verify_password, + label: '@i18n:password.verify_password', type: 'password' } ] @@ -480,19 +480,19 @@ IPA.user_password_dialog = function(spec) { fields: [ { name: 'current_password', - label: IPA.messages.password.current_password, + label: '@i18n:password.current_password', type: 'password', required: true }, { name: 'password1', - label: IPA.messages.password.new_password, + label: '@i18n:password.new_password', type: 'password', required: true }, { name: 'password2', - label: IPA.messages.password.verify_password, + label: '@i18n:password.verify_password', type: 'password', validators: [IPA.same_password_validator({ other_field: 'password1' @@ -532,13 +532,13 @@ IPA.user_password_dialog = function(spec) { that.create_button({ name: 'reset_password', - label: IPA.messages.password.reset_password, + label: '@i18n:password.reset_password', click: that.on_reset_click }); that.create_button({ name: 'cancel', - label: IPA.messages.buttons.cancel, + label: '@i18n:buttons.cancel', click: function() { that.close(); } |