Agreed that web2py still should handle translations. I'm not sure but
for the purpose of this discussion, I think those who this concerns
should look at how javascript jquery programs perform translation and
see if there is a way either A) integrate web2py into this, or B) pass
web2py T() to these plugins....

We need to keep translation simple, so having a couple different
methods (one for web2py, one for javascript) probably isn't a good
idea.

-Thadeus





On Sat, Dec 26, 2009 at 5:26 PM, Alexandre Andrade
<[email protected]> wrote:
> I will have to look to jquery code of widget to judge the best strategy, but
> I think  is a good alternative, specially because the translations need be
> done only once.
>
>
>
> 2009/12/26 Álvaro Justen [Turicas] <[email protected]>
>>
>> On Wed, Dec 23, 2009 at 11:29, Alexandre Andrade
>> <[email protected]> wrote:
>> > While
>> >
>> > db.convenio.data_assinatura.requires =
>> > IS_DATE(format=T('%d-%m-%Y'),error_message=T('deve ser no formato
>> > DD-MM-AAAA!'))
>> >
>> > show me the date in correct locale, the calendar widget don't show the
>> > correct date.
>> >
>> > How to locale it or  make it show the correct date?
>>
>> About calendar and other JS I think we need to have calendar_pt-BR.js,
>> calendar_en-ES.js etc.
>> I don't think T() is the best solution to translate static files. I
>> think it should be static and user should download
>> app/static/filename_LANG.js
>> So, we'll need to mantain many versions of the same file, but I think
>> it'll be nice for developers (calendar and other JS files being
>> translated automatically based on user accept-language). What do you
>> think?
>>
>>
>> > --
>> > Atenciosamente
>> >
>> > --
>> > =========================
>> > Alexandre Andrade
>> > Hipercenter.com
>> >
>> > --
>> >
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "web2py-users" 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.
>> >
>>
>>
>>
>> --
>> Álvaro Justen
>>  Peta5 - Nós fazemos TV digital
>>  http://www.peta5.com.br/
>>  21. 3021-6001 / 9898-0141
>>
>> --
>>
>> You received this message because you are subscribed to the Google Groups
>> "web2py-users" 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.
>>
>>
>
>
>
> --
> Atenciosamente
>
> --
> =========================
> Alexandre Andrade
> Hipercenter.com
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "web2py-users" 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.
>

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" 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