Georg Baum wrote:
Am Mittwoch, 3. Januar 2007 16:08 schrieb Jean-Marc Lasgouttes:
I was trying to get translations to work on qt, and stumbled on the
following:
if (qt_trans->load(language_name,
QLibraryInfo::location(QLibraryInfo::TranslationsPath)))
{
qApp->installTranslator(qt_trans);
// even if the language calls for RtL, don't do that
qApp->setLayoutDirection(Qt::LeftToRight);
lyxerr[Debug::GUI]
<< "Successfully installed Qt translations for locale "
<< fromqstr(language_name) << std::endl;
Could it be that the setLayoutDirection triggers because you do have a
qt-supported locale loaded (de), and that others are not in this case?
Good shot! Yes, I think so (at least I can see the debug message above).
Now the question is why setLayoutDirection(Qt::LeftToRight) is called.
Georg
Interesting... However, I don't understand why this might be causing the
problem. After all, in QLPainter::text we explicitly set the direction
to LTR again (with a comment explaining that this is correct, because we
use our own Bidi code) --- so why should setting the Layout direction to
LTR again (or not doing it) make a difference one way or the other?
Dov