summaryrefslogtreecommitdiff
path: root/src/emap/lang.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-22 16:51:16 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-22 16:51:16 +0300
commitfb61301d037660e7ff56caa1d49dd2c7c959b15d (patch)
treef115c065616a4c27e2edf08cf4b6d1fb8d96fefb /src/emap/lang.c
parent61674f9ac09dcba67ad1aad151a5dd179b0f6f9e (diff)
downloadplugin-fb61301d037660e7ff56caa1d49dd2c7c959b15d.tar.gz
plugin-fb61301d037660e7ff56caa1d49dd2c7c959b15d.tar.bz2
plugin-fb61301d037660e7ff56caa1d49dd2c7c959b15d.tar.xz
plugin-fb61301d037660e7ff56caa1d49dd2c7c959b15d.zip
Add support for warn_missing_translation configuration option.
Diffstat (limited to 'src/emap/lang.c')
-rw-r--r--src/emap/lang.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/emap/lang.c b/src/emap/lang.c
index e50b50f..60259da 100644
--- a/src/emap/lang.c
+++ b/src/emap/lang.c
@@ -15,6 +15,7 @@
#include "map/npc.h"
#include "map/pc.h"
+#include "emap/config.h"
#include "emap/lang.h"
#include "emap/data/session.h"
#include "emap/struct/sessionext.h"
@@ -175,7 +176,7 @@ const char* lang_trans(const char *str, int lng, int flg)
if (!strings[lng])
{
- if (flg)
+ if (warn_missing_translation && flg)
printf ("no lang string (%s) for: %s\n", lang_langs[lng], str);
return str;
}