FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 02-13-2008, 06:43 PM
Matt Wilson
 
Default 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.

diff --git a/constants.py b/constants.py
index 45f3d14..7349a81 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,)

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 02-14-2008, 03:01 PM
Jeremy Katz
 
Default Correct internationalization of exception handler text

On Wed, 2008-02-13 at 14:43 -0500, Matt Wilson wrote:
> 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.

Thanks Matt. Applied

Jeremy

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 05:48 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org