#2335: [patch] tg.i18n.setup_i18n() doesn't set FormEncode translation when
there's language in session
-----------------------------+----------------------------------------------
 Reporter:  TimurIzhbulatov  |       Owner:                 
     Type:  defect           |      Status:  new            
 Priority:  normal           |   Milestone:  2.1            
Component:  TurboGears       |     Version:  trunk          
 Severity:  normal           |    Keywords:  i18n FormEncode
-----------------------------+----------------------------------------------
 Please see [http://groups.google.com/group/turbogears-
 trunk/browse_thread/thread/c53c5a61fd88767b the discussion] for more
 details on the issue.

 The attached patch uses set_temporary_lang() instead of just
 pylons.i18n.set_lang(). Perhaps, that was the original intent, as
 set_temporary_lang() calls set_lang() internally. Also, the patch makes
 the code a bit simpler, because exception handling and logging is already
 done inside set_temporary_lang().

 In my development virtual environment this patch doesn't break any tests.

-- 
Ticket URL: <http://trac.turbogears.org/ticket/2335>
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