msg_conf.h 1.0 KB

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