summaryrefslogtreecommitdiff
path: root/src/gettext.h
blob: 7f5f56e49979e7adea70cfdbb23500509fb64771 (plain)
1
2
3
4
5
6
7
8
9
10
11
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;
}