diff options
author | Pavel Zuna <pzuna@redhat.com> | 2011-02-21 14:54:05 -0500 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2011-03-01 10:31:42 -0500 |
commit | fc842e36504d39221fbfdafbaf8996b63e20de57 (patch) | |
tree | c8e32bca1ea95a27194c571c9e30821f9eb4dbfb /ipalib/cli.py | |
parent | 18dda28c563770730837e2b771a0acdc2e849158 (diff) | |
download | freeipa-fc842e36504d39221fbfdafbaf8996b63e20de57.tar.gz freeipa-fc842e36504d39221fbfdafbaf8996b63e20de57.tar.xz freeipa-fc842e36504d39221fbfdafbaf8996b63e20de57.zip |
Use pygettext to generate translatable strings from plugin files.
This patch replaces xgettext with a custom pygettext to generate
translatable strings from plugin files in ipalib/plugins. pygettext
was modified to handle plural forms (credit goes to Jan Hendrik Goellner)
and had some bugs fixed by myself. We only use it for plugins, because
it's the only place where we need to extract docstrings for the built-in
help system.
I also had to make some changes to the way the built-in documentation
systems gets docstrings from modules for this to work.
Diffstat (limited to 'ipalib/cli.py')
-rw-r--r-- | ipalib/cli.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/cli.py b/ipalib/cli.py index fa1dba8de..60afb7d02 100644 --- a/ipalib/cli.py +++ b/ipalib/cli.py @@ -706,7 +706,7 @@ class help(frontend.Local): self.print_commands(name) elif name in self.Command: cmd = self.Command[name] - print 'Purpose: %s' % cmd.doc + print 'Purpose: %s' % unicode(cmd.doc).strip() self.Backend.cli.build_parser(cmd).print_help() elif mod_name in sys.modules: self.print_commands(name) |