diff options
Diffstat (limited to 'src/gettext.h')
-rw-r--r-- | src/gettext.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/gettext.h b/src/gettext.h new file mode 100644 index 000000000..8ddb95346 --- /dev/null +++ b/src/gettext.h @@ -0,0 +1,19 @@ +#ifdef USE_GETTEXT +#include <libintl.h> +#else +#define gettext(String) String +#define bindtextdomain(domain, dir) /* */ +#define textdomain(domain) /* */ +#endif + +#define _(String) gettext(String) +#define gettext_noop(String) String +#define N_(String) gettext_noop (String) + +inline wchar_t* chartowchar_t(const char *str) +{ + size_t l = strlen(str)+1; + wchar_t* nstr = new wchar_t[l]; + mbstowcs(nstr, str, l); + return nstr; +} |