diff options
author | Darkvater <darkvater@openttd.org> | 2005-11-02 23:55:10 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2005-11-02 23:55:10 +0000 |
commit | 689006ee738c8866d05161cb8bbdd6d9a6472252 (patch) | |
tree | 5828aa3cf484a4625549df51740d98a639edf96f /strgen | |
parent | 9d786d3e530123ed8558349e12e9bccb67bae9e8 (diff) | |
download | openttd-689006ee738c8866d05161cb8bbdd6d9a6472252.tar.xz |
(svn r3123) eh, don't press enter after typing text, previous patch wasn't finished. Now strgen really behaves correctly. Thanks again glx
Diffstat (limited to 'strgen')
-rw-r--r-- | strgen/strgen.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/strgen/strgen.c b/strgen/strgen.c index 900ce6d7c..07c844900 100644 --- a/strgen/strgen.c +++ b/strgen/strgen.c @@ -54,6 +54,7 @@ typedef struct Case { struct Case *next; } Case; +static bool _masterlang; static bool _translated; static const char* _file = "(unknown file)"; static int _cur_line; @@ -1157,7 +1158,7 @@ static void WriteLangfile(const char *filename, int show_todo) cmdp = ls->english; } - _translated = !(cmdp == ls->english); + _translated = _masterlang || (cmdp != ls->english); if (casep) { Case *c; @@ -1226,6 +1227,7 @@ int CDECL main(int argc, char* argv[]) if (argc == 1) { + _masterlang = true; // parse master file ParseFile("lang/english.txt", true); MakeHashOfStrings(); @@ -1237,6 +1239,7 @@ int CDECL main(int argc, char* argv[]) WriteStringsH("table/strings.h"); } else if (argc == 2) { + _masterlang = false; ParseFile("lang/english.txt", true); MakeHashOfStrings(); ParseFile(argv[1], false); |