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/parameters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipalib/parameters.py') diff --git a/ipalib/parameters.py b/ipalib/parameters.py index 76ca2d791..75981e960 100644 --- a/ipalib/parameters.py +++ b/ipalib/parameters.py @@ -301,7 +301,7 @@ class Param(ReadOnly): kwargs = ( ('cli_name', str, None), ('cli_short_name', str, None), - ('label', (str, Gettext), None), + ('label', (basestring, Gettext), None), ('doc', (basestring, Gettext), None), ('required', bool, True), ('multivalue', bool, False), -- cgit