diff options
author | Brant Knudson <bknudson@us.ibm.com> | 2014-10-27 10:54:48 -0500 |
---|---|---|
committer | Jamie Lennox <jamielennox@redhat.com> | 2014-10-28 20:33:19 +0000 |
commit | fece74ca3e56342bee43f561404c19128a613628 (patch) | |
tree | 7241c8dcb7f3176da3df660dbfb5006f9eb86fc1 /keystoneclient/exceptions.py | |
parent | 3b766c51438396a0ab0032de309c9d56e275e0cb (diff) | |
download | python-keystoneclient-fece74ca3e56342bee43f561404c19128a613628.tar.gz |
I18n
Keystoneclient didn't provide translated messages. With this
change, the messages are marked for translation.
DocImpact
Implements: blueprint keystoneclient-i18n
Change-Id: I85263a71671a1dffed524185266e6bb7ae559630
Diffstat (limited to 'keystoneclient/exceptions.py')
-rw-r--r-- | keystoneclient/exceptions.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/keystoneclient/exceptions.py b/keystoneclient/exceptions.py index 0370dd6..d516a25 100644 --- a/keystoneclient/exceptions.py +++ b/keystoneclient/exceptions.py @@ -16,6 +16,7 @@ Exception definitions. """ +from keystoneclient.i18n import _ from keystoneclient.openstack.common.apiclient.exceptions import * # noqa # NOTE(akurilin): This alias should be left here to support backwards @@ -31,7 +32,7 @@ class CertificateConfigError(Exception): """Error reading the certificate.""" def __init__(self, output): self.output = output - msg = 'Unable to load certificate.' + msg = _('Unable to load certificate.') super(CertificateConfigError, self).__init__(msg) @@ -39,7 +40,7 @@ class CMSError(Exception): """Error reading the certificate.""" def __init__(self, output): self.output = output - msg = 'Unable to sign or verify data.' + msg = _('Unable to sign or verify data.') super(CMSError, self).__init__(msg) |