On May 13, 2008, at 3:03 AM, Jorge Vargas wrote:

> set_lang is a string which inside pylons (_get_translator in
> translation.py)  is converted to a list to make python's gettext
> happy. but then it's stored as a list in translator.pylons_lang which
> is retrieved by get_lang.
>
> not only this is misleading but it's wrong as with the current code
> it's not possible to have more than one lang anyway, unless you monkey
> patch translation.py

set_lang should also be able to take a list as well. There's also an  
add_fallback function in pylons.i18n to add another language after  
the fact.

--
Philip Jenvey



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to