diff options
Diffstat (limited to 'src/strgen')
-rw-r--r-- | src/strgen/strgen.cpp | 4 |
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; } } } |