mirror of
https://github.com/nitraiolo/CfgUSBLoader.git
synced 2024-12-02 16:14:15 +01:00
27 lines
509 B
C
27 lines
509 B
C
|
#ifndef _GETTEXT_H_
|
||
|
#define _GETTEXT_H_
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
|
||
|
bool gettextLoadLanguage(const char* langFile);
|
||
|
void gettextCleanUp(void);
|
||
|
/*
|
||
|
* input msg = a text in ASCII
|
||
|
* output = the translated msg in utf-8
|
||
|
*/
|
||
|
const char *gettext(const char *msg);
|
||
|
#define gt(s) (char*)gettext(s)
|
||
|
// gts can be used in static initializations
|
||
|
#define gts(s) s
|
||
|
|
||
|
char** translate_array(int n, char *src[], char *dest[]);
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
#endif /* _GETTEXT_H_ */
|