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/plugins | |
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/plugins')
-rw-r--r-- | ipalib/plugins/internal.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/ipalib/plugins/internal.py b/ipalib/plugins/internal.py index f25e429e9..ae8bf3b94 100644 --- a/ipalib/plugins/internal.py +++ b/ipalib/plugins/internal.py @@ -114,14 +114,11 @@ class i18n_messages(Command): "privilege_withdrawn":_("Privilege Withdrawn"), "aa_compromise":_("AA Compromise"), "revoke_confirmation":_( - "To confirm your intention to revoke this certificate, "+ - "select a reason from the pull-down list, and click "+ - "the \"Revoke\" button."), + "To confirm your intention to revoke this certificate, select a reason from the pull-down list, and click the \"Revoke\" button."), "note":_("Note"), "reason":_("Reason for Revocation"), "restore_confirmation":_( - "To confirm your intention to restore this certificate, "+ - "click the \"Restore\" button."), + "To confirm your intention to restore this certificate, click the \"Restore\" button."), "issued_to":_("Issued To"), "common_name":_("Common Name"), "organization":_("Organization"), @@ -351,8 +348,7 @@ class i18n_messages(Command): "unselect_all":_("Unselect All"), "delete_confirm":_("Are you sure you want to delete selected entries?"), "truncated":_( - "Query returned results than configured size limit will show. " + - "First ${counter} results shown."), + "Query returned results than configured size limit will show. First ${counter} results shown."), }, "details":{ "general":_("General"), |