Michael Gerz wrote:
Abdelrazak Younes schrieb:
Hello,
The attached patch allow to set the language used in the GUI via the
the lyxrc mechanism. If the new 'gui_language' setting is empty or non
present, the language will be taken from the environment variables as
usual.
With this patch it is now possible the GUI language at run time and we
don't need anymore the lyx.bat file to set the language before
launching lyx.
Are you sure that you can switch the language at _run-time_ (rather than
on start-up)? (Including the menus, dialog fields, tooltips, etc.)?
Yes, sure.
That would be nice, indeed. (But please note that the labels in a
documents depend on the document's language not on the general settings)
I know. If you look closely at the code those two path to get a
translation are completely separated.
The Gui elements uses messages_["GUI"] and the translatable element
inside a document (mainly layout items) are using messages_[language]
where language is given by the Buffer language. We can change that to
use the Paragraph layout language instead by the way if there is an
interest to do that.
Abdel.