mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 05:33:33 +00:00
efa42293bc
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1105 a592a061-630c-0410-9148-cb99ea01b6c8
26 lines
337 B
C
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
|