Fix linking problem when nls is disabled. Spotted by Dov and fix by Kornel.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26036 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-08-03 06:34:52 +00:00
parent bf21947af2
commit 309ce3bf0c

View File

@ -23,10 +23,12 @@
using namespace std;
namespace {
namespace lyx {
using lyx::docstring;
using lyx::from_ascii;
// Instanciate static member.
string Messages::main_lang_;
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)