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/host.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/host.js')
-rw-r--r-- | install/ui/src/freeipa/host.js | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/install/ui/src/freeipa/host.js b/install/ui/src/freeipa/host.js index f5f6a2be3..65557dc8c 100644 --- a/install/ui/src/freeipa/host.js +++ b/install/ui/src/freeipa/host.js @@ -54,7 +54,7 @@ IPA.host.entity = function(spec) { 'description', { name: 'has_keytab', - label: IPA.messages.objects.host.enrolled, + label: '@i18n:objects.host.enrolled', formatter: IPA.boolean_formatter() } ] @@ -82,7 +82,7 @@ IPA.host.entity = function(spec) { { type: 'sshkeys', name: 'ipasshpubkey', - label: IPA.messages.objects.sshkeystore.keys + label: '@i18n:objects.sshkeystore.keys' }, { type: 'multivalued', @@ -107,12 +107,12 @@ IPA.host.entity = function(spec) { { factory: IPA.host_keytab_widget, name: 'has_keytab', - label: IPA.messages.objects.host.keytab + label: '@i18n:objects.host.keytab' }, { type: 'host_password', name: 'has_password', - label: IPA.messages.objects.host.password + label: '@i18n:objects.host.password' } ] }, @@ -130,7 +130,7 @@ IPA.host.entity = function(spec) { { type: 'certificate_status', name: 'certificate_status', - label: IPA.messages.objects.host.status + label: '@i18n:objects.host.status' } ] } @@ -140,14 +140,14 @@ IPA.host.entity = function(spec) { { factory: IPA.host.set_otp_action, name: 'set_otp', - label: IPA.messages.objects.host.password_set_title, + label: '@i18n:objects.host.password_set_title', status: 'missing', hide_cond: ['has_password'] }, { factory: IPA.host.set_otp_action, name: 'reset_otp', - label: IPA.messages.objects.host.password_reset_title, + label: '@i18n:objects.host.password_reset_title', status: 'present', show_cond: ['has_password'] }, @@ -264,7 +264,7 @@ IPA.host_fqdn_widget = function(spec) { { type: 'text', name: 'hostname', - label: IPA.messages.objects.service.host, + label: '@i18n:objects.service.host', required: true }, { @@ -638,7 +638,7 @@ IPA.host_unprovision_dialog = function(spec) { that.create_button({ name: 'unprovision', - label: IPA.messages.objects.host.unprovision, + label: '@i18n:objects.host.unprovision', click: function() { that.unprovision( function(data, text_status, xhr) { @@ -655,7 +655,7 @@ IPA.host_unprovision_dialog = function(spec) { that.create_button({ name: 'cancel', - label: IPA.messages.buttons.cancel, + label: '@i18n:buttons.cancel', click: function() { that.close(); } @@ -800,13 +800,13 @@ IPA.host.set_otp_dialog = function(spec) { fields: [ { 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', required: true, validators: [IPA.same_password_validator({ @@ -850,7 +850,7 @@ IPA.host.set_otp_dialog = function(spec) { that.create_button({ name: 'set_password', - label: IPA.messages.objects.host.password_set_button, + label: '@i18n:objects.host.password_set_button', click: function() { that.on_confirm(); } @@ -858,7 +858,7 @@ IPA.host.set_otp_dialog = function(spec) { that.create_button({ name: 'cancel', - label: IPA.messages.buttons.cancel, + label: '@i18n:buttons.cancel', click: function() { that.close(); } |