bidirectional languages

Showing 1-5 of 5 messages
bidirectional languages Kalpa Welivitigoda 4/12/12 3:15 AM
Hi,

Does the translation feature of web2py support bidirectional languages?
Re: bidirectional languages Massimo Di Pierro 4/12/12 5:26 AM
Yes. You have to translate the CSS that determines the alignment as well.
Re: [web2py] Re: bidirectional languages Kalpa Welivitigoda 4/12/12 6:22 AM
On Thu, Apr 12, 2012 at 5:56 PM, Massimo Di Pierro
<massimo....@gmail.com> wrote:
> Yes. You have to translate the CSS that determines the alignment as well.
>

My translation file is applications/eden/languages/ur.py (eden is my
application name).

There I have an untranslated string as "Today (Monday)" and in Urdu
language which is a RTL it is displayed as "Today ((Monday".
I want to have the "(" and ")" in LTR and the rest in RTL.

How can I accomplish this?

>
> On Thursday, 12 April 2012 05:15:29 UTC-5, Kalpa Welivitigoda wrote:
>>
>> Hi,
>>
>> Does the translation feature of web2py support bidirectional languages?

--
Best Regards,

Kalpa Pathum Welivitigoda
http://about.me/callkalpa

Re: [web2py] Re: bidirectional languages Massimo Di Pierro 4/12/12 11:09 AM
You have to use something like in CSS

.rlt
{
direction:rtl;
}
.ltr
{
direction:ltr;
}

and use something likeĀ 

<span class={{=T('rtl')}}>{{=T('text')}}</span>

and translate the direction as you translate the text.
Re: [web2py] Re: bidirectional languages Kalpa Welivitigoda 4/13/12 1:24 AM
On Thu, Apr 12, 2012 at 11:39 PM, Massimo Di Pierro
<massimo....@gmail.com> wrote:
> You have to use something like in CSS
>
> .rlt
> {
> direction:rtl;
> }
> .ltr
> {
> direction:ltr;
> }
>
> and use something like
>
> <span class={{=T('rtl')}}>{{=T('text')}}</span>
>
> and translate the direction as you translate the text.
>

I didn't clearly get you, need some more clarification. Do you mind to
have a chat. I have already sent you an invitation via gtalk. Or else
if you are in skype or irc that would also be fine. Thanks in advance.

>
>
> On Thursday, 12 April 2012 08:22:09 UTC-5, Kalpa Welivitigoda wrote:
>>
>> On Thu, Apr 12, 2012 at 5:56 PM, Massimo Di Pierro
>> <massimo....@gmail.com> wrote:
>> > Yes. You have to translate the CSS that determines the alignment as
>> > well.
>> >
>>
>> My translation file is applications/eden/languages/ur.py (eden is my
>> application name).
>>
>> There I have an untranslated string as "Today (Monday)" and in Urdu
>> language which is a RTL it is displayed as "Today ((Monday".
>> I want to have the "(" and ")" in LTR and the rest in RTL.
>>
>> How can I accomplish this?
>>
>> >
>> > On Thursday, 12 April 2012 05:15:29 UTC-5, Kalpa Welivitigoda wrote:
>> >>
>> >> Hi,
>> >>
>> >> Does the translation feature of web2py support bidirectional languages?
>>
>> --
>> Best Regards,
>>
>> Kalpa Pathum Welivitigoda
>> http://about.me/callkalpa

--
Best Regards,

Kalpa Pathum Welivitigoda
http://about.me/callkalpa