compile fix when ENABLE_NLS is not defined.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21622 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-11-15 09:03:30 +00:00
parent 7151f3404a
commit fa2693ae3d

View File

@ -187,6 +187,7 @@ docstring const Messages::get(string const & m) const
{
// See comment above
boost::smatch sub;
static boost::regex const reg("^([^\\[]*)\\[\\[[^\\]]*\\]\\]$");
if (regex_match(m, sub, reg))
return from_ascii(sub.str(1));
else