aboutsummaryrefslogtreecommitdiffhomepage
path: root/translate.h
blob: 22d3848f33fe485d2915c97f74ec4b62e02e9b39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/** \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();
/**
   Free memory used by the translation library
*/
void translate_destroy();