From: Abdelrazak Younes Date: Wed, 25 Jun 2008 16:18:27 +0000 (+0000) Subject: microptimisation. X-Git-Tag: 1.6.10~4270 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=1d109d8c6f11342a207855981348ff468aeb13c9;p=features.git microptimisation. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25389 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/support/Messages.cpp b/src/support/Messages.cpp index aec3556d20..d203393987 100644 --- a/src/support/Messages.cpp +++ b/src/support/Messages.cpp @@ -111,9 +111,11 @@ 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 oldLANGUAGE; + static string oldLC_ALL; if (!lang_.empty()) { + oldLANGUAGE = getEnv("LANGUAGE"); + oldLC_ALL = getEnv("LC_ALL"); // This GNU extension overrides any language locale // wrt gettext. LYXERR(Debug::LOCALE, "Setting LANGUAGE to " << lang_);