lyx_mirror/src/gettext.C

23 lines
311 B
C++
Raw Normal View History

#include <config.h>
#include "LString.h"
#include "gettext.h"
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;
}