From src/gui/kernel/qapplication.cpp:
#ifndef QT_NO_TRANSLATION
static bool qt_detectRTLLanguage()
{
return force_reverse ^
"Translate this string to the string 'LTR' in left-to-right"
" languages or to 'RTL' in right-to-left languages (such as Hebrew"
" and Arabic) to get proper widget layout.") == QLatin1String("RTL");
}
#endif
#ifndef QT_NO_TRANSLATION
static bool qt_detectRTLLanguage()
{
return force_reverse ^
QApplication::tr("QT_LAYOUT_DIRECTION",
"Translate this string to the string 'LTR' in left-to-right"
" languages or to 'RTL' in right-to-left languages (such as Hebrew"
" and Arabic) to get proper widget layout.") == QLatin1String("RTL");
}
#endif
To copy to clipboard, switch view to plain text mode
If you don't want to translate a separate qt_xy.ts, you can add
QT_TRANSLATE_NOOP("QApplication", "QT_LAYOUT_DIRECTION")
QT_TRANSLATE_NOOP("QApplication", "QT_LAYOUT_DIRECTION")
To copy to clipboard, switch view to plain text mode
to your app and translate it to either "LTR" or "RTL".
Bookmarks