Re: [PATCH] put Gui language definition in lyxrc
Michael Gerz schrieb: Lars Gullik Bjønnes schrieb: I think this will result in surprising behaviour. 1. Set languag inside lyx to "swedish" (why not?) - save and exit 2. run lyx with LANG=no_NO ./lyx - get a nice swedish lyx I think that the ui language should not be settable from inside lyx. Well, why is it so important to keep the almightiness of LANG? I think we need a few more opinions before we take a decision. In my opinion the setting in LyX's preferences should be taken and the LANG setting ignored. This implies that I think it is a nice feature be be able to set the language from inside LyX. This is also possible in many programs I use and avoids that users have to fiddle around with environment variables; for example about 90% of the Win users don't know what an environment variable is and they usually also don't know that they have to modify a batch file to set LyX's menu language. regards Uwe
Re: [PATCH] put Gui language definition in lyxrc
Lars Gullik Bjønnes schrieb: Yes. I think this will result in surprising behaviour. 1. Set languag inside lyx to "swedish" (why not?) - save and exit 2. run lyx with LANG=no_NO ./lyx - get a nice swedish lyx I think that the ui language should not be settable from inside lyx. Well, why is it so important to keep the almightiness of LANG? Personally, I don't see all implications of Abdel's proposal. Are there any other programs (Linux/Windows) out there that are configurable at run-time? I think we need a few more opinions before we take a decision. Michael
Re: [PATCH] put Gui language definition in lyxrc
Abdelrazak Younes <[EMAIL PROTECTED]> writes: | 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. | | I believe that the first feature will a time saver for translators. | The logical place to put this language choice would be in | Preference->Look&Feel. | | Objection? Yes. I think this will result in surprising behaviour. 1. Set languag inside lyx to "swedish" (why not?) - save and exit 2. run lyx with LANG=no_NO ./lyx - get a nice swedish lyx I think that the ui language should not be settable from inside lyx. -- Lgb
Re: [PATCH] put Gui language definition in lyxrc
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.