diff --git a/src/strgen/strgen.cpp b/src/strgen/strgen.cpp index 9fab88b642..2d88230314 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; } } }