Den 10.04.2019 10:18, skrev Wolfgang Engelmann:
I wanted to compare my settings of the Lyx document with the one of a Help file (i have chosen Users Guide). However, the Text there is in German, although I have set the language under tools>preferences>language settings>English and under Document settings>Language>English (USA).

What is wrong?

The default is for LyX to pick up language settings from the operating system. At least, that is how it works with the linux operating system.

The environment variable LANG is queried. In My case, it is set to nb_NO.UTF-8, so I get Norwegian menus. If LANG is not set, or is set to C, then LyX falls back to the default language which is english. If you set a language explicit in Tools->Preferences->Language, then that language is used instead of the system language. So you can select english there.

This only works for the user interface (menus and such.)  Each document has a language setting, which affect that particular language. As others have pointed out, changing it does not translate the document to another language - although some autogenerated text (Chapter/Kapitel/...) depends on this setting.

LyX has help files in several languages. When you open a help file, LyX tries to find a file for the configured language, and falls back to the english set if there is no help. That is why you see some German and some English help files. Your LyX is set up to look for German help, probably because the OS is set to display German.

The help file language can be overridden too. It is not the above mentioned LANG variable (or the preferences) that decide the help file language. It is the LANGUAGE variable. I am not sure why this is so. A reason may be that LANG is set to one language, while LANGUAGE is a list of several languages in order of preference. In my case,  LANGUAGE=nb_NO:nb:no_NO:no:nn_NO:nn. This allow several forms of Norwegian, as well as the oldfashioned "no_NO" that some not so up-to-date applications still uses.

Many uses the LANGUAGE setting so apps will fall back to other languages than english, if the preferred language is not supported. So someone who prefer German first and French second, might set LANG to de_DE and LANGUAGES to de:fr


You can change your OS settings to English, if you don't want to see any German. Or you can override the LANGUAGE variable when starting LyX this way:

LANGUAGE=C lyx

LyX will then show you english-language help files. You can set LANG to C too, but it is not necessary when you override the language in the preferences. If you don't like to start LyX from a command line, create a script/batch file and arrange for your OS to start that.

Helge Hafting


Reply via email to