summaryrefslogtreecommitdiffstats
path: root/ipalib/parameters.py
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2010-03-08 20:42:26 -0700
committerJason Gerard DeRose <jderose@redhat.com>2010-03-16 11:41:22 -0600
commitc350f841342675440837740f9df1c582e499da25 (patch)
treee614cbb9ce6d59d00b618ae3b01211458451bdf0 /ipalib/parameters.py
parenta0a94a9a04d87133e57ce958f720131230746ec9 (diff)
downloadfreeipa-c350f841342675440837740f9df1c582e499da25.tar.gz
freeipa-c350f841342675440837740f9df1c582e499da25.tar.xz
freeipa-c350f841342675440837740f9df1c582e499da25.zip
Finish deferred translation mechanism
Diffstat (limited to 'ipalib/parameters.py')
-rw-r--r--ipalib/parameters.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ipalib/parameters.py b/ipalib/parameters.py
index a598690ed..606a57483 100644
--- a/ipalib/parameters.py
+++ b/ipalib/parameters.py
@@ -73,14 +73,14 @@ web-UI. The *label* should start with an initial capital. For example:
... label=_('Last name'),
... )
>>> sn.label
-Gettext('Last name')
+Gettext('Last name', domain='ipa', localedir=None)
The *doc* is a longer description of the parameter. It's used on the CLI when
displaying the help information for a command, and as extra instruction for a
form input on the web-UI. By default the *doc* is the same as the *label*:
>>> sn.doc
-Gettext('Last name')
+Gettext('Last name', domain='ipa', localedir=None)
But you can override this with the *doc* kwarg. Like the *label*, the *doc*
should also start with an initial capital and should not end with any
@@ -92,7 +92,7 @@ punctuation. For example:
... doc=_("The user's last name"),
... )
>>> sn.doc
-Gettext("The user's last name")
+Gettext("The user's last name", domain='ipa', localedir=None)
Demonstration aside, you should always provide at least the *label* so the
various UIs are translatable. Only provide the *doc* if the parameter needs