The translation works but the "admin" will not discover the
translation strings. It 1/2 works.
Let me sleep on this.

Massimo

On Apr 23, 8:35 pm, Álvaro Justen [Turicas] <[email protected]>
wrote:
> Please forget that tools.py file. I did other changes and it is more
> simple and fast.
>
> There was an error in class Auth (I think):
>         self.messages = Settings()
> It musr be:
>         self.messages = Storage()
>
> So, I created a class:
> class StorageT(Storage):
>     def __init__(self, env):
>         self['env'] = env
>
>     def __getattr__(self, k):
>         return self['env'].T(self[k])
>
> And changed:
>         self.messages = Settings()
> To:
>         self.messages = StorageT(self.environment)
>
> With these 2 little changes, Auth now is full translated.
>
> File is attached (modified version 1.61.4).
>
> This solution do not work in other cases, but I think all cases can be fixed.
> I can do this in other files, but I'll do this job only if it will be in 
> trunk.
>
> --
>  Álvaro Justen
>  Peta5 - Telecomunicações e Software Livre
>  21 3021-6001 / 9898-0141
>  http://www.peta5.com.br/
>
>  tools.py
> 90KViewDownload
--~--~---------~--~----~------------~-------~--~----~
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