blob: f09d90e1a784387d376e2b5fe3194ddb99cb944e (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
/*
* This file is subject to the terms of the GFX License. If a copy of
* the license was not distributed with this file, you can obtain one at:
*
* http://ugfx.org/license.html
*/
/**
* @file src/gtrans/gtrans.h
*
* @addtogroup GTRANS
*
* @brief Module to allow changing the language of an application dynamically during run-time.
*
* @{
*/
#ifndef _TRANS_H
#define _TRANS_H
#include "../../gfx.h"
#if GFX_USE_GTRANS || defined(__DOXYGEN__)
typedef struct transTable {
unsigned numEntries;
const char** strings;
} transTable;
#ifdef __cplusplus
extern "C" {
#endif
const char* gtransString(const char* string);
const char* gtransIndex(unsigned index);
void gtransSetBaseLanguage(const transTable* const translation);
void gtransSetLanguage(const transTable* const translation);
#ifdef __cplusplus
}
#endif
#endif /* GFX_USE_GTRANS */
#endif /* _TRANS_H */
/** @} */
|