[Qt-interest] Qt::LayoutDirection and language
Robert Hairgrove
evorgriahr at hispeed.ch
Thu May 13 11:54:29 CEST 2010
Diego Iastrubni wrote:
> This is exaclty what qt_detectRTLLanguage gives you. The direction of
> the language loaded into the translation.
>
> Basically, all it does it check for this (which is set for Arabic and
> Hebrew translation already):
>
> QApplication::tr("QT_LAYOUT_DIRECTION") == QLatin1String("RTL"))
>
> However, If you want to do this for a non loadede language, IMHO,
> loading the translation for that language is an overkill, and your hack
> is "good enough".
Yes, that's very clever, and good to know if I ever localize the entire
application into one of those languages.
I suppose I could go through all of the 165 languages which are
recognized by Qt and identify the ones which are RTL... (sigh)
More information about the Qt-interest-old
mailing list