summaryrefslogtreecommitdiffstats
path: root/ipalib/text.py
diff options
context:
space:
mode:
authorPavel Zuna <pzuna@redhat.com>2011-02-23 16:47:49 -0500
committerRob Crittenden <rcritten@redhat.com>2011-03-01 10:31:40 -0500
commitf3de95ce99855cb15e26d8007c8901aaec96c595 (patch)
treeab1924abd9e8d6b8fbe32834f5d110617ecead43 /ipalib/text.py
parent814595275293af836ceed7aeedf8412d94b13794 (diff)
downloadfreeipa-f3de95ce99855cb15e26d8007c8901aaec96c595.tar.gz
freeipa-f3de95ce99855cb15e26d8007c8901aaec96c595.tar.xz
freeipa-f3de95ce99855cb15e26d8007c8901aaec96c595.zip
Fix translatable strings in ipalib plugins.
Needed for xgettext/pygettext processing.
Diffstat (limited to 'ipalib/text.py')
-rw-r--r--ipalib/text.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ipalib/text.py b/ipalib/text.py
index 060a6ddf5..a910cc5fb 100644
--- a/ipalib/text.py
+++ b/ipalib/text.py
@@ -488,10 +488,11 @@ class NGettextFactory(GettextFactory):
*domain* (likely needed for 3rd-party plugins).
"""
- def __call__(self, singular, plural, count=0):
+ def __call__(self, singular, plural, count):
return NGettext(singular, plural, self.domain, self.localedir)
# Process wide factories:
_ = GettextFactory()
ngettext = NGettextFactory()
+ugettext = _