1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

added gettext support

german translation file
and bashscript to update translations
This commit is contained in:
Constantin Wenger 2011-07-20 16:51:19 +02:00
parent d0810b0156
commit 052bb24c7f
11 changed files with 237 additions and 42 deletions

12
src/gettext.h Normal file
View file

@ -0,0 +1,12 @@
#include <libintl.h>
#define _(String) gettext(String)
#define gettext_noop(String) String
#define N_(String) gettext_noop (String)
inline wchar_t* chartowchar_t(char *str)
{
size_t l = strlen(str)+1;
wchar_t* nstr = new wchar_t[l];
mbstowcs(nstr, str, l);
return nstr;
}