mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-24 05:40:59 +00:00
r25604: better fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25610 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
a9ed4635be
commit
7b1fec8e1e
@ -237,12 +237,11 @@ void setRcGuiLanguage()
|
|||||||
if (lyxrc.gui_language == "auto")
|
if (lyxrc.gui_language == "auto")
|
||||||
return;
|
return;
|
||||||
Language const * language = languages.getLanguage(lyxrc.gui_language);
|
Language const * language = languages.getLanguage(lyxrc.gui_language);
|
||||||
if (!language)
|
if (language) {
|
||||||
// Not possible at this point.
|
|
||||||
return;
|
|
||||||
LYXERR(Debug::LOCALE, "Setting LANGUAGE to " << language->code());
|
LYXERR(Debug::LOCALE, "Setting LANGUAGE to " << language->code());
|
||||||
if (!setEnv("LANGUAGE", language->code()))
|
if (!setEnv("LANGUAGE", language->code()))
|
||||||
LYXERR(Debug::LOCALE, "\t... failed!");
|
LYXERR(Debug::LOCALE, "\t... failed!");
|
||||||
|
}
|
||||||
LYXERR(Debug::LOCALE, "Setting LC_ALL to en_US");
|
LYXERR(Debug::LOCALE, "Setting LC_ALL to en_US");
|
||||||
if (!setEnv("LC_ALL", "en_US"))
|
if (!setEnv("LC_ALL", "en_US"))
|
||||||
LYXERR(Debug::LOCALE, "\t... failed!");
|
LYXERR(Debug::LOCALE, "\t... failed!");
|
||||||
|
Loading…
Reference in New Issue
Block a user