summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-06-14 17:01:12 +0000
committerrubidium <rubidium@openttd.org>2009-06-14 17:01:12 +0000
commit28e6b46a4187a915a2af91807db044beab05b2de (patch)
tree24e159d692cacc3bbafa893ef519aa523f831858 /src
parentf23afd988fb71cf429ba70b6cfc7bd0a8626c0e6 (diff)
downloadopenttd-28e6b46a4187a915a2af91807db044beab05b2de.tar.xz
(svn r16576) -Fix: show the line of the translation file that has the fault and not the line of the string in english.txt.
Diffstat (limited to 'src')
-rw-r--r--src/strgen/strgen.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/strgen/strgen.cpp b/src/strgen/strgen.cpp
index 9fab88b64..2d8823031 100644
--- a/src/strgen/strgen.cpp
+++ b/src/strgen/strgen.cpp
@@ -790,6 +790,10 @@ static void HandleString(char *str, bool master)
ent->translated_case = c;
} else {
ent->translated = strdup(s);
+ /* If the string was translated, use the line from the
+ * translated language so errors in the translated file
+ * are properly referenced to. */
+ ent->line = _cur_line;
}
}
}