[Fedora-trans-ar] Re: Arabic issue #44: the default layout direction DOESN'T depend on the application's language

Lars Knoll lars at trolltech.com
Sat May 28 13:51:55 UTC 2005


On Friday 27 May 2005 18:20, Munzir Taha wrote:
> Hi Cuters,
>
> Using Qt version 4.0.0-rc1-snapshot-20050527
> Mandrakelinux release 10.2 (Limited Edition 2005) for i586
>
> qapplication.html:
> On system start-up, the default layout direction depends on the
> application's language.
>
> I used
> qDebug() << QApplication::layoutDirection();
> inside arabic.cpp
> and launched it as
> LC_ALL=ar_EG.UTF-8 ./arabic
> to set the application's language. qDebug outputs 0 instead of 1.

The locale you use has nothing to do with the default layout direction. This 
is because we don't want an app that is not translated to arabic to come up 
reversed just because you run an arabic locale.

You have to either translate it to arabic, or set the layout direction 
explicitly in main() or using the -reverse command line argument.

Lars




More information about the Fedora-trans-ar mailing list