diff options
Diffstat (limited to 'translate.h')
-rw-r--r-- | translate.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/translate.h b/translate.h new file mode 100644 index 00000000..fb2c200f --- /dev/null +++ b/translate.h @@ -0,0 +1,27 @@ +/** \file translate.h + +Translation library, internally uses catgets + +*/ + +/** + Shorthand for wgettext call +*/ +#define _(wstr) wgettext(wstr) + +/** + Noop, used to tell xgettext that a string should be translated, even though it is not directly sent to wgettext. +*/ +#define N_(wstr) wstr + +/** + Wide character wwrapper around the gettext function +*/ +const wchar_t *wgettext( const wchar_t *in ); + +/** + Initialize (or reinitialize) the translation library + \param lang The two-character language name, such as 'de' or 'en' +*/ +void translate_init(); +void translate_destroy(); |