#2406: Workaround for i18n bug
------------------------+---------------------------------------------------
 Reporter:  victorlin   |        Owner:       
     Type:  defect      |       Status:  new  
 Priority:  normal      |    Milestone:  2.x  
Component:  TurboGears  |      Version:  2.0b7
 Severity:  normal      |   Resolution:       
 Keywords:              |  
------------------------+---------------------------------------------------
Comment (by victorlin):

 I don't know should this problem be considered as a bug of browser. I
 think it depends on how the http standard documents said about the form of
 language name. As I know, most of browsers use dash to split lang and
 location, like "en-us". As the picture shows in attached file. But the
 gettext of python can only recognize language name like "en_us", the
 underscore form. Is that a feature or bug, I don't know, too. My solution
 is, replace the "-" to "_" in lang argument of
 tg.i18n.set_temporary_lang. To make the path work, you have to insert the
 code in where we insert middlewares, before everything setup.

-- 
Ticket URL: <http://trac.turbogears.org/ticket/2406#comment:3>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development

-- 
You received this message because you are subscribed to the Google
Groups "TurboGears Tickets" group.
This group is read-only. No posting by normal members allowed.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en?hl=en

Reply via email to