From b2c5b2b4b54349f878f17a9378261d58d41af052 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Tue, 12 Jul 2011 11:01:25 -0500 Subject: Fixed object_name and object_name_plural internationalization The object_name, object_name_plural and messages that use these attributes have been converted to support translation. The label attribute in the Param class has been modified to accept unicode string. Ticket #1435 --- ipalib/plugins/dns.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ipalib/plugins/dns.py') diff --git a/ipalib/plugins/dns.py b/ipalib/plugins/dns.py index c868b73b..5c990ace 100644 --- a/ipalib/plugins/dns.py +++ b/ipalib/plugins/dns.py @@ -277,8 +277,8 @@ class dnszone(LDAPObject): DNS Zone, container for resource records. """ container_dn = api.env.container_dns - object_name = 'DNS zone' - object_name_plural = 'DNS zones' + object_name = _('DNS zone') + object_name_plural = _('DNS zones') object_class = ['top', 'idnsrecord', 'idnszone'] default_attributes = [ 'idnsname', 'idnszoneactive', 'idnssoamname', 'idnssoarname', @@ -519,8 +519,8 @@ class dnsrecord(LDAPObject): """ parent_object = 'dnszone' container_dn = api.env.container_dns - object_name = 'DNS resource record' - object_name_plural = 'DNS resource records' + object_name = _('DNS resource record') + object_name_plural = _('DNS resource records') object_class = ['top', 'idnsrecord'] default_attributes = _record_attributes + ['idnsname'] -- cgit