summaryrefslogtreecommitdiff
path: root/src/map/lang.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-20 15:13:10 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-20 15:13:10 +0300
commit8c7713fd898900e7afe936e647c051f0a92e07e1 (patch)
tree6a169bc1d569f794c50cb50b09a38f0dca5e5260 /src/map/lang.h
parent092b7e47263555de36ac7c34bfc681e680b71bbf (diff)
downloadevol-hercules-8c7713fd898900e7afe936e647c051f0a92e07e1.tar.gz
evol-hercules-8c7713fd898900e7afe936e647c051f0a92e07e1.tar.bz2
evol-hercules-8c7713fd898900e7afe936e647c051f0a92e07e1.tar.xz
evol-hercules-8c7713fd898900e7afe936e647c051f0a92e07e1.zip
Add lang.c with translation related functionality.
Diffstat (limited to 'src/map/lang.h')
-rw-r--r--src/map/lang.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/map/lang.h b/src/map/lang.h
new file mode 100644
index 0000000..0c1e0fa
--- /dev/null
+++ b/src/map/lang.h
@@ -0,0 +1,17 @@
+// Copyright (c) Copyright (c) Hercules Dev Team, licensed under GNU GPL.
+// Copyright (c) 2014 Evol developers
+
+#ifndef EVOL_MAP_LANG
+#define EVOL_MAP_LANG
+
+extern struct DBMap *translate_db;
+
+void do_init_langs (void);
+
+const char* lang_trans(const char *str, int lng, int flg);
+
+const char* lang_pctrans(const char *str, TBL_PC *sd);
+
+int lang_getId(const char *str);
+
+#endif // EVOL_MAP_LANG