Files
rathena/src/common/msg_conf.h
euphyy 3a234d787a * Implemented Mora Enchants.
* Updated Episode 14.1 item database entries.
* Removed party size check for Malangdo Culverts, as there is none on official servers.
* Added THA map_msg translation - thanks, boneskung, for translating!
* Updated IDN map_msg translation. (credits: Cydh)
* Code by Lighta:
-- Updated configure, add enable-warn [yes/no] and remove wno-parentheses, wno-unused from default compilation
-- Cleanup small warnings
* Crash fix for bugreport:7688 (code by Akinari).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@17342 54d463be-8e91-2dee-dedb-b68131a5f0ec
2013-06-03 02:07:41 +00:00

46 lines
1.0 KiB
C

// Copyright (c) Athena Dev Teams - Licensed under GNU GPL
// For more information, see LICENCE in the main folder
#ifndef MSG_CONF_H
#define MSG_CONF_H
#ifdef __cplusplus
extern "C" {
#endif
enum lang_types {
LANG_RUS = 0x01,
LANG_SPN = 0x02,
LANG_GRM = 0x04,
LANG_CHN = 0x08,
LANG_MAL = 0x10,
LANG_IDN = 0x20,
LANG_FRN = 0x40,
LANG_POR = 0x80,
LANG_THA = 0x100,
LANG_MAX
};
// Multilanguage System.
// Define which languages to enable (bitmask).
// 0xFFF will enable all, while 0x000 will enable English only.
#define LANG_ENABLE 0x000
//read msg in table
const char* _msg_txt(int msg_number,int size, char ** msg_table);
//store msg from txtfile into msg_table
int _msg_config_read(const char* cfgName,int size, char ** msg_table);
//clear msg_table
void _do_final_msg(int size, char ** msg_table);
//Lookups
int msg_langstr2langtype(char * langtype);
const char* msg_langtype2langstr(int langtype);
// Verify that the choosen langtype is enabled.
int msg_checklangtype(int lang, bool display);
#ifdef __cplusplus
}
#endif
#endif /* MSG_CONF_H */