diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2013-04-04 14:32:47 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2013-05-06 16:22:21 +0200 |
commit | 09296fc0b302d9a105aacad960c295991fa88a1d (patch) | |
tree | 54a4aef171dc65c250b8d01f0d79714d364a84df /install/ui/src/freeipa/association.js | |
parent | e3ea5e8d5050890a8e7f17271d04954f71dad325 (diff) | |
download | freeipa-09296fc0b302d9a105aacad960c295991fa88a1d.tar.gz freeipa-09296fc0b302d9a105aacad960c295991fa88a1d.tar.xz freeipa-09296fc0b302d9a105aacad960c295991fa88a1d.zip |
Use text.get for transforming values supplied by spec
https://fedorahosted.org/freeipa/ticket/3235
Diffstat (limited to 'install/ui/src/freeipa/association.js')
-rw-r--r-- | install/ui/src/freeipa/association.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/install/ui/src/freeipa/association.js b/install/ui/src/freeipa/association.js index 5642d64e1..a27b5c944 100644 --- a/install/ui/src/freeipa/association.js +++ b/install/ui/src/freeipa/association.js @@ -22,8 +22,8 @@ /* CURRENTLY ALSO REQUIRES search.js, because it reuses it's code to create * the AssociationList elements; IT NEEDS IT'S OWN CODE! */ -define(['./ipa', './jquery', './navigation', './search', './dialog'], - function(IPA, $, navigation) { +define(['./ipa', './jquery', './navigation', './text', './search', './dialog'], + function(IPA, $, navigation, text) { IPA.associator = function (spec) { @@ -356,8 +356,8 @@ IPA.association_table_widget = function (spec) { that.add_method = spec.add_method || 'add_member'; that.remove_method = spec.remove_method || 'remove_member'; - that.add_title = spec.add_title || IPA.messages.association.add.member; - that.remove_title = spec.remove_title || IPA.messages.association.remove.member; + that.add_title = text.get(spec.add_title || '@i18n:association.add.member'); + that.remove_title = text.get(spec.remove_title || '@i18n:association.remove.member'); that.adder_columns = $.ordered_map(); @@ -823,8 +823,8 @@ IPA.association_facet = function (spec, no_init) { that.add_method = spec.add_method || 'add_member'; that.remove_method = spec.remove_method || 'remove_member'; - that.add_title = spec.add_title || IPA.messages.association.add.member; - that.remove_title = spec.remove_title || IPA.messages.association.remove.member; + that.add_title = text.get(spec.add_title || '@i18n:association.add.member'); + that.remove_title = text.get(spec.remove_title || '@i18n:association.remove.member'); that.adder_columns = $.ordered_map(); |