Abdelrazak Younes schrieb:

OK, I did it, not so easy at the end. Please note that, now, the layouts of all dialogs, not only the menubar, are reversed for RTL languages. This looks like a natural thing to do but please confirm this. Please test.

Your implementation doesn't work. When I set the environment variable LANG to "ar_SA" I get Arabic menu names, but your new code is never called:

D:\LyXSVN\lyx-devel\src\frontends\qt4\GuiApplication.cpp(1032): Tring to set def
ault locale to: ar_SA
D:\LyXSVN\lyx-devel\src\frontends\qt4\GuiApplication.cpp(1046): Could not find
Qt translations for locale qt_ar_SA

Due to the last message that I don't understand, you return, so that

switch (default_locale.language()) {

is not called.

When I set LANG only to "ar" I get

D:\LyXSVN\lyx-devel\src\frontends\qt4\GuiApplication.cpp(1032): Tring to set def
ault locale to: ar
D:\LyXSVN\lyx-devel\src\frontends\qt4\GuiApplication.cpp(1046): Could not find
Qt translations for locale qt_ar_SA

So

if (!d->qt_trans_.load(language_name,
                        QLibraryInfo::location(QLibraryInfo::TranslationsPath)))

is always true here.

Please test also for bug 5034 (http://bugzilla.lyx.org/show_bug.cgi?id=5034)

This still doesn't work, no matter if LANG is set or not.

What would it take for LyX to support XeteX natively?

Time ;-) the new XeTeX packages need to stabilize. I'll have a look in the LyX 1.7 development cycle what we can do.

regards Uwe

Reply via email to