yes as described in the manual i declare

T.current_language=['en']

in models.

but it didn't work, but editing the self.current_language=['en']
directly inside gluon works.

or i have to declare it elsewhere? i expect it should be fine to
declare inside models or controllers.

-vince



On Dec 16, 1:25 pm, mdipierro <[email protected]> wrote:
> Unless I misunderstand... It is not a bug. web2py does not assume that
> your current language is english so you have to declare it:
>
> T.current_language=['en']
>
> this tells web2py that 'accept-language: en' does not need
> translation.
>
> Massimo
>
> On Dec 15, 11:21 pm, vince <[email protected]> wrote:
>
> > T.current_languages['en'] doesn't work as expected
> > however, when i edit gluon/languages.py and change
> > self.current_languages = ['en'] it works.
> > my current workaround is to put a en.py file inside language directory
> > with just "()"
>
> > -vince
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to