look up LANGUAGE and LC_ALL only once.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23854 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2008-03-20 19:35:53 +00:00
parent 8753847055
commit 42fb18c6f8

View File

@ -111,8 +111,8 @@ docstring const Messages::get(string const & m) const
// The string was not found, use gettext to generate it
string const oldLANGUAGE = getEnv("LANGUAGE");
string const oldLC_ALL = getEnv("LC_ALL");
static string const oldLANGUAGE = getEnv("LANGUAGE");
static string const oldLC_ALL = getEnv("LC_ALL");
if (!lang_.empty()) {
// This GNU extension overrides any language locale
// wrt gettext.