]> git.lyx.org Git - features.git/commitdiff
look up LANGUAGE and LC_ALL only once.
authorAndré Pönitz <poenitz@gmx.net>
Thu, 20 Mar 2008 19:35:53 +0000 (19:35 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Thu, 20 Mar 2008 19:35:53 +0000 (19:35 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23854 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/Messages.cpp

index 5d2a554d83917cc0ae1b8a226e28d98e9acc2fc2..a79723c1327448665d08f0654f0fa1b29fddfa9d 100644 (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.