diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-22 16:51:16 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-22 16:51:16 +0300 |
commit | fb61301d037660e7ff56caa1d49dd2c7c959b15d (patch) | |
tree | f115c065616a4c27e2edf08cf4b6d1fb8d96fefb /src/emap/lang.c | |
parent | 61674f9ac09dcba67ad1aad151a5dd179b0f6f9e (diff) | |
download | plugin-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.c | 3 |
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; } |