diff options
author | Matt Wilson <msw@rpath.com> | 2008-02-13 14:43:45 -0500 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2008-02-14 11:00:50 -0500 |
commit | 1cdf01c0f896ceb068ff6ff187d7cd63ecba24d8 (patch) | |
tree | 8140edafb0d39e25c0d92894f9b671194c39a3fe /constants.py | |
parent | c9b92340d16a5443207f0e56b5689052c0d37a5e (diff) | |
download | anaconda-1cdf01c0f896ceb068ff6ff187d7cd63ecba24d8.tar.gz anaconda-1cdf01c0f896ceb068ff6ff187d7cd63ecba24d8.tar.xz anaconda-1cdf01c0f896ceb068ff6ff187d7cd63ecba24d8.zip |
Correct internationalization of exception handler text
Currently constants.exceptionText won't translate properly because
string interpolation is performed inside _(). This patch splits the
string up so you get generic text if no bugUrl is set in the product
definition, and also corrects this problem.
Diffstat (limited to 'constants.py')
-rw-r--r-- | constants.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/constants.py b/constants.py index 45f3d14be..0209bdc66 100644 --- a/constants.py +++ b/constants.py @@ -74,5 +74,12 @@ bugzillaUrl = product.bugUrl exceptionText = _("An unhandled exception has occurred. This " "is most likely a bug. Please save a copy of " - "the detailed exception and file a bug report " - "against anaconda at %s" %(bugzillaUrl,)) + "the detailed exception and file a bug report") +if not bugzillaUrl: + # this string will be combined with "An unhandled exception"... + # the leading space is not a typo. + exceptionText += _(" with the provider of this software.") +else: + # this string will be combined with "An unhandled exception"... + # the leading space is not a typo. + exceptionText += _(" against anaconda at %s") %(bugzillaUrl,) |