summaryrefslogtreecommitdiffstats
path: root/install/ui/src/freeipa/dns.js
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2013-04-04 13:39:20 +0200
committerPetr Vobornik <pvoborni@redhat.com>2013-05-06 16:22:21 +0200
commit12f5f4cfdd38c2a29c8e6eeac17557f4e7731307 (patch)
treeb9b9239bdb839d1df30230499f8d1cb64a405f0c /install/ui/src/freeipa/dns.js
parentf492e61f46abb0899d26d03f1599dd9f0f01a6f3 (diff)
downloadfreeipa-12f5f4cfdd38c2a29c8e6eeac17557f4e7731307.tar.gz
freeipa-12f5f4cfdd38c2a29c8e6eeac17557f4e7731307.tar.xz
freeipa-12f5f4cfdd38c2a29c8e6eeac17557f4e7731307.zip
Replace IPA.messages with @i18n definition in spec objects
https://fedorahosted.org/freeipa/ticket/3235
Diffstat (limited to 'install/ui/src/freeipa/dns.js')
-rw-r--r--install/ui/src/freeipa/dns.js20
1 files changed, 11 insertions, 9 deletions
diff --git a/install/ui/src/freeipa/dns.js b/install/ui/src/freeipa/dns.js
index 81a5c34a2..c9ffd6238 100644
--- a/install/ui/src/freeipa/dns.js
+++ b/install/ui/src/freeipa/dns.js
@@ -604,7 +604,7 @@ IPA.dns.add_permission_action = function(spec) {
spec = spec || {};
spec.name = spec.name || 'add_permission';
- spec.label = spec.label || IPA.messages.objects.dnszone.add_permission;
+ spec.label = spec.label || '@i18n:objects.dnszone.add_permission';
spec.enable_cond = spec.enable_cond || ['permission-none', 'managedby_w'];
var that = IPA.action(spec);
@@ -634,7 +634,7 @@ IPA.dns.remove_permission_action = function(spec) {
spec = spec || {};
spec.name = spec.name || 'remove_permission';
- spec.label = spec.label || IPA.messages.objects.dnszone.remove_permission;
+ spec.label = spec.label || '@i18n:objects.dnszone.remove_permission';
spec.enable_cond = spec.enable_cond || ['permission-set', 'managedby_w'];
var that = IPA.action(spec);
@@ -1267,7 +1267,7 @@ IPA.dns.record_details_facet = function(spec) {
IPA.dnsrecord_redirection_dialog = function(spec) {
spec = spec || {};
- spec.title = spec.title || IPA.messages.dialogs.redirection;
+ spec.title = spec.title || '@i18n:dialogs.redirection';
var that = IPA.message_dialog(spec);
@@ -2156,7 +2156,7 @@ IPA.dns.record_modify_column = function(spec) {
var that = IPA.column(spec);
- that.text = text.get(spec.text || IPA.messages.buttons.edit);
+ that.text = text.get(spec.text || '@i18n:buttons.edit');
that.setup = function(container, record, suppress_link) {
@@ -2210,7 +2210,7 @@ IPA.dns.ptr_redirection_dialog = function(spec) {
spec = spec || {};
- spec.title = IPA.messages.objects.dnsrecord.ptr_redir_title;
+ spec.title = spec.title || '@i18n:objects.dnsrecord.ptr_redir_title';
var that = IPA.dialog(spec);
that.dns_record = spec.dns_record;
@@ -2395,10 +2395,11 @@ IPA.dns.ptr_redirection_dialog = function(spec) {
IPA.ip_address_validator = function(spec) {
spec = spec || {};
+ spec.message = spec.message || '@i18n:widget.validation.ip_address';
+
var that = IPA.validator(spec);
that.address_type = spec.address_type;
- that.message = spec.message || IPA.messages.widget.validation.ip_address;
that.validate = function(value) {
@@ -2432,7 +2433,7 @@ IPA.ip_v4_address_validator = function(spec) {
spec = spec || {};
spec.address_type = 'IPv4';
- spec.message = IPA.messages.widget.validation.ip_v4_address;
+ spec.message = spec.message || '@i18n:widget.validation.ip_v4_address';
return IPA.ip_address_validator(spec);
};
@@ -2440,7 +2441,7 @@ IPA.ip_v6_address_validator = function(spec) {
spec = spec || {};
spec.address_type = 'IPv6';
- spec.message = IPA.messages.widget.validation.ip_v6_address;
+ spec.message = spec.message || '@i18n:widget.validation.ip_v6_address';
return IPA.ip_address_validator(spec);
};
@@ -2478,12 +2479,13 @@ IPA.network_validator = function(spec) {
spec = spec || {};
+ spec.message = spec.message || '@i18n:widget.validation.net_address';
+
var that = IPA.validator(spec);
that.allow_negation = spec.allow_negation;
that.allow_host_address = spec.allow_host_address;
that.specials = spec.specials || [];
- that.message = spec.message || IPA.messages.widget.validation.net_address;
that.validate = function(value) {