#2255: Language support in session lacking
------------------------+---------------------------------------------------
 Reporter:  aigarius    |        Owner:        
     Type:  defect      |       Status:  new   
 Priority:  normal      |    Milestone:  2.0rc1
Component:  TurboGears  |      Version:  2.0b6 
 Severity:  normal      |   Resolution:        
 Keywords:  i18n        |  
------------------------+---------------------------------------------------
Comment (by aigarius):

 The following did work when put into project/lib/base.py

 {{{
 class BaseController(TGController):

     def __before__( self, *args ):
         if 'beaker.session' in request.environ and 'lang' in
 request.environ['beaker.session']:
             set_lang(request.environ['beaker.session']['lang'])

 }}}

 Adding this trick to the i18n documentation could be very useful.

-- 
Ticket URL: <http://trac.turbogears.org/ticket/2255#comment:2>
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