mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r16576) -Fix: show the line of the translation file that has the fault and not the line of the string in english.txt.
This commit is contained in:
parent
f23afd988f
commit
28e6b46a41
@ -790,6 +790,10 @@ static void HandleString(char *str, bool master)
|
|||||||
ent->translated_case = c;
|
ent->translated_case = c;
|
||||||
} else {
|
} else {
|
||||||
ent->translated = strdup(s);
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user