2009-10-01 01:10:58 +02:00
|
|
|
#ifndef _GETTEXT_H_
|
|
|
|
#define _GETTEXT_H_
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
2010-09-19 01:16:05 +02:00
|
|
|
extern "C"
|
|
|
|
{
|
2009-10-01 01:10:58 +02:00
|
|
|
#endif
|
|
|
|
|
2010-09-24 02:48:03 +02:00
|
|
|
bool gettextLoadLanguage(const char* langFile);
|
|
|
|
void gettextCleanUp(void);
|
2009-10-01 01:10:58 +02:00
|
|
|
/*
|
|
|
|
* input msg = a text in ASCII
|
|
|
|
* output = the translated msg in utf-8
|
2010-09-24 02:48:03 +02:00
|
|
|
*/
|
|
|
|
const char *gettext(const char *msg);
|
2009-10-01 01:10:58 +02:00
|
|
|
#define tr(s) gettext(s)
|
|
|
|
#define trNOOP(s) (s)
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* _GETTEXT_H_ */
|