From: André Pönitz Date: Thu, 20 Mar 2008 19:35:53 +0000 (+0000) Subject: look up LANGUAGE and LC_ALL only once. X-Git-Tag: 1.6.10~5530 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=42fb18c6f8b6adb7909aaaae4245fe90246e2737;p=features.git 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 --- diff --git a/src/support/Messages.cpp b/src/support/Messages.cpp index 5d2a554d83..a79723c132 100644 --- a/src/support/Messages.cpp +++ b/src/support/Messages.cpp @@ -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.