2006-01-04 20:51:02 +08:00
|
|
|
/** \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
|
|
|
|
*/
|
|
|
|
void translate_init();
|
2006-01-24 04:40:14 +08:00
|
|
|
/**
|
|
|
|
Free memory used by the translation library
|
|
|
|
*/
|
2006-01-04 20:51:02 +08:00
|
|
|
void translate_destroy();
|