mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 05:33:33 +00:00
23 lines
311 B
C++
23 lines
311 B
C++
|
#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;
|
||
|
}
|