]> git.lyx.org Git - features.git/commitdiff
Fix linking problem when nls is disabled. Spotted by Dov and fix by Kornel.
authorAbdelrazak Younes <younes@lyx.org>
Sun, 3 Aug 2008 06:34:52 +0000 (06:34 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Sun, 3 Aug 2008 06:34:52 +0000 (06:34 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26036 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/Messages.cpp

index d1a8d33a48cdba4b33960218682afb177948f27f..1e49cc62b368d4ed9d5ba9f33c8df7387ad4a1de 100644 (file)
 
 using namespace std;
 
-namespace {
+namespace lyx {
+
+// Instanciate static member.
+string Messages::main_lang_;
 
-using lyx::docstring;
-using lyx::from_ascii;
+namespace {
 
 void cleanTranslation(docstring & trans) 
 {
@@ -48,7 +50,8 @@ void cleanTranslation(docstring & trans)
        }
 }
 
-}
+} // anonymous
+} // lyx
 
 
 #ifdef ENABLE_NLS
@@ -83,10 +86,6 @@ void Messages::setDefaultLanguage()
 }
 
 
-// Instanciate static member.
-string Messages::main_lang_;
-
-
 // This version use the traditional gettext.
 Messages::Messages(string const & l)
        : lang_(l), warned_(false)