Merge branch 'master' into jgrpp-beta
# Conflicts: # src/company_cmd.cpp # src/economy.cpp # src/lang/swedish.txt # src/network/network_command.cpp # src/news_gui.cpp # src/saveload/saveload.h # src/script/api/script_list.cpp # src/video/cocoa/cocoa_v.mm # src/video/sdl2_v.cpp
This commit is contained in:
@@ -46,7 +46,11 @@ void CDECL strgen_warning(const char *s, ...)
|
||||
va_start(va, s);
|
||||
vseprintf(buf, lastof(buf), s, va);
|
||||
va_end(va);
|
||||
fprintf(stderr, LINE_NUM_FMT("warning"), _file, _cur_line, buf);
|
||||
if (_show_todo > 0) {
|
||||
fprintf(stderr, LINE_NUM_FMT("warning"), _file, _cur_line, buf);
|
||||
} else {
|
||||
fprintf(stderr, LINE_NUM_FMT("info"), _file, _cur_line, buf);
|
||||
}
|
||||
_warnings++;
|
||||
}
|
||||
|
||||
|
@@ -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));
|
||||
|
Reference in New Issue
Block a user