lyx_mirror/src/gettext.C
Lars Gullik Bjønnes efa42293bc guard with ENABLE_NLS
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1105 a592a061-630c-0410-9148-cb99ea01b6c8
2000-10-12 02:17:32 +00:00

26 lines
337 B
C

#include <config.h>
#include "LString.h"
#include "gettext.h"
#ifdef ENABLE_NLS
char const * _(char const * str)
{
return gettext(str);
}
string const _(string const & str)
{
int const s = str.length();
char * tmp = new char[s + 1];
str.copy(tmp, s);
tmp[s] = '\0';
string ret(_(tmp));
delete [] tmp;
return ret;
}
#endif