summaryrefslogtreecommitdiffstats
path: root/ipaserver/plugins
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2012-02-10 04:27:53 -0500
committerMartin Kosek <mkosek@redhat.com>2012-02-10 11:53:40 +0100
commit90d99f6017c934541a5263f4ccd708ad7c36491f (patch)
tree07d3596ba18675c99cc2656da8ca25814eb6185a /ipaserver/plugins
parenteba3a341e607b542afabdedf0f6508e7c0a5e96c (diff)
downloadfreeipa-90d99f6017c934541a5263f4ccd708ad7c36491f.tar.gz
freeipa-90d99f6017c934541a5263f4ccd708ad7c36491f.tar.xz
freeipa-90d99f6017c934541a5263f4ccd708ad7c36491f.zip
Clean up i18n strings
This patch switches to named ("%(name)s") instead of positional ("%s") substitutions for internationalized strings, so translators can reorder the words. This fixes https://fedorahosted.org/freeipa/ticket/2179 (xgettext no longer gives warnings). Also, some i18n calls are rewritten to translate the template before substitutions, not after.
Diffstat (limited to 'ipaserver/plugins')
-rw-r--r--ipaserver/plugins/selfsign.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipaserver/plugins/selfsign.py b/ipaserver/plugins/selfsign.py
index 36850f139..2f13b1fd5 100644
--- a/ipaserver/plugins/selfsign.py
+++ b/ipaserver/plugins/selfsign.py
@@ -101,7 +101,7 @@ class ra(rabase.rabase):
except errors.CertificateOperationError, e:
raise e
except NSPRError, e:
- raise errors.CertificateOperationError(error=_('unable to decode csr: %s' % e))
+ raise errors.CertificateOperationError(error=_('unable to decode csr: %s') % e)
# certutil wants the CSR to have have a header and footer. Add one
# if it isn't there.