OSDN Git Service

First version
[st-ro/stro.git] / src / common / msg_conf.h
1 // Copyright (c) Athena Dev Teams - Licensed under GNU GPL
2 // For more information, see LICENCE in the main folder
3
4 #ifndef MSG_CONF_H
5 #define MSG_CONF_H
6
7 #ifdef  __cplusplus
8 extern "C" {
9 #endif
10
11 enum lang_types {
12         LANG_RUS = 0x01,
13         LANG_SPN = 0x02,
14         LANG_GRM = 0x04,
15         LANG_CHN = 0x08,
16         LANG_MAL = 0x10,
17         LANG_IDN = 0x20,
18         LANG_FRN = 0x40,
19         LANG_POR = 0x80,
20         LANG_THA = 0x100,
21         LANG_MAX
22 };
23 // Multilanguage System.
24 // Define which languages to enable (bitmask).
25 // 0xFFF will enable all, while 0x000 will enable English only.
26 #define LANG_ENABLE 0x000
27
28 //read msg in table
29 const char* _msg_txt(int msg_number,int size, char ** msg_table);
30 //store msg from txtfile into msg_table
31 int _msg_config_read(const char* cfgName,int size, char ** msg_table);
32 //clear msg_table
33 void _do_final_msg(int size, char ** msg_table);
34 //Lookups
35 int msg_langstr2langtype(char * langtype);
36 const char* msg_langtype2langstr(int langtype);
37 // Verify that the choosen langtype is enabled.
38 int msg_checklangtype(int lang, bool display);
39
40 #ifdef  __cplusplus
41 }
42 #endif
43
44 #endif  /* MSG_CONF_H */
45