diff options
author | John Dennis <jdennis@redhat.com> | 2010-01-28 12:57:00 -0500 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2010-02-03 14:43:31 -0500 |
commit | 487e1cadc8f418f399636759c9ac8f3c94c8426f (patch) | |
tree | 648e7c27fa74c46a48c257aa1ddb907552e210b0 /ipaserver | |
parent | 4f010cfda63dd0c16e324c9f74ea042092274d9a (diff) | |
download | freeipa-487e1cadc8f418f399636759c9ac8f3c94c8426f.tar.gz freeipa-487e1cadc8f418f399636759c9ac8f3c94c8426f.tar.xz freeipa-487e1cadc8f418f399636759c9ac8f3c94c8426f.zip |
fix error message to be i18n translator friendly
This error message was producing a warning from xgettext
because there were multiple substations in the string.
In some languages it may be necessary to reorder the
substitutions for a proper translation, this is only
possible if the substitutions use named values.
Diffstat (limited to 'ipaserver')
-rw-r--r-- | ipaserver/plugins/selfsign.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ipaserver/plugins/selfsign.py b/ipaserver/plugins/selfsign.py index aaa869105..7dbe053a9 100644 --- a/ipaserver/plugins/selfsign.py +++ b/ipaserver/plugins/selfsign.py @@ -99,7 +99,8 @@ class ra(rabase.rabase): if str(base).lower() != str(new_request).lower(): subject_base='CN=%s, %s' % (hostname, subject_base) new_request.reverse() - raise errors.CertificateOperationError(error=_('Request subject \'%s\' does not match the form \'%s\'' % (", ".join(new_request), subject_base))) + raise errors.CertificateOperationError(error=_('Request subject "%(request_subject)s" does not match the form "%(subject_base)s"') % \ + {'request_subject' : ', '.join(new_request), 'subject_base' : subject_base}) except errors.CertificateOperationError, e: raise e except Exception, e: |