[web2py] Re: Simultaneous multi-language system.

2011-07-23 Thread Massimo Di Pierro
There is a solution in trunk. Please check it: http://code.google.com/p/web2py/issues/detail?id=342 print T(hello) #defualt print T(hello, language=it-it) #etc etc On Jul 22, 4:52 am, jamarcer jamar...@gmail.com wrote: Hello: I have added a comment to the ticket:

Re: [web2py] Re: Simultaneous multi-language system.

2011-07-23 Thread Jesús Martínez
It works. Thanks Massimo. 2011/7/23 Massimo Di Pierro massimo.dipie...@gmail.com There is a solution in trunk. Please check it: http://code.google.com/p/web2py/issues/detail?id=342 print T(hello) #defualt print T(hello, language=it-it) #etc etc On Jul 22, 4:52 am, jamarcer

[web2py] Re: Simultaneous multi-language system.

2011-07-22 Thread jamarcer
Hello: I have added a comment to the ticket, explaining an approach to this issue. It is based on Anthony's proposal, as demetrio said :). I am demetrio's companion, so I will test this approach, or others possible solutions. Regards. Link to ticket:

[web2py] Re: Simultaneous multi-language system.

2011-07-22 Thread jamarcer
Hello: I have added a comment to the ticket: http://code.google.com/p/web2py/issues/detail?id=342 It is an approach to the issue, based in Anthony's proposal: a class that stores multiple T objects. I am demetrio's companion. We develop the same application, but we have different roles :), so

Re: [web2py] Re: Simultaneous multi-language system.

2011-07-21 Thread Daniel Gonzalez Zaballos
i'll start with the Anthony suggestion. I've opened the ticket: http://code.google.com/p/web2py/issues/detail?id=342 Thank you to everybody 2011/7/21 Massimo Di Pierro massimo.dipie...@gmail.com I think for now Anthony's proposal is the way to go. Open a ticket in google code and we can think

[web2py] Re: Simultaneous multi-language system.

2011-07-20 Thread Christopher Steel
On the one hand If you only want to display two languages at the same time at all times then translations are not required. If on the other hand you want people to be able to switch between languages like this http://voiceofaccess.org , then translations are required but displaying both

Re: [web2py] Re: Simultaneous multi-language system.

2011-07-20 Thread Daniel Gonzalez Zaballos
The thing is that in Spain, there are some bilingual regions with their own language besides the official language. Sometimes they require that an app be in the main language (spanish) and their specifical language and the capatility to switch between them, and rarely (this case), have both

[web2py] Re: Simultaneous multi-language system.

2011-07-20 Thread Anthony
I think there are a few possibilities. First, your MultiT function could work, but you'd have to use str(T(text)) instead of T(text). The reason is that T() returns a lazyT object, not the translated string (it isn't translated until rendering). You can force the translation by calling the

[web2py] Re: Simultaneous multi-language system.

2011-07-20 Thread Massimo Di Pierro
I think for now Anthony's proposal is the way to go. Open a ticket in google code and we can think of other options. On Jul 20, 5:53 pm, Anthony abasta...@gmail.com wrote: I think there are a few possibilities. First, your MultiT function could work, but you'd have to use str(T(text)) instead

[web2py] Re: Simultaneous multi-language system.

2011-07-13 Thread pbreit
Wow, that's a weird request. I suspect it is going to be easiest just to program the two variations without T().