summaryrefslogtreecommitdiff
path: root/src/strgen/strgen_base.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/strgen/strgen_base.cpp')
-rw-r--r--src/strgen/strgen_base.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/strgen/strgen_base.cpp b/src/strgen/strgen_base.cpp
index 9d1346e17..078e0abbf 100644
--- a/src/strgen/strgen_base.cpp
+++ b/src/strgen/strgen_base.cpp
@@ -818,9 +818,13 @@ void StringReader::ParseFile()
char buf[2048];
_warnings = _errors = 0;
- _translation = this->master || this->translation;
+ _translation = this->translation;
_file = this->file;
+ /* Abusing _show_todo to replace "warning" with "info" for translations. */
+ _show_todo &= 3;
+ if (!this->translation) _show_todo |= 4;
+
/* For each new file we parse, reset the genders, and language codes. */
MemSetT(&_lang, 0);
strecpy(_lang.digit_group_separator, ",", lastof(_lang.digit_group_separator));