diff -r 614b4710dc7e webtranslate/newgrf/language_file.py
--- a/webtranslate/newgrf/language_file.py Wed May 27 19:44:13 2015 +0200
+++ b/webtranslate/newgrf/language_file.py Wed May 27 19:52:12 2015 +0200
@@ -869,7 +869,9 @@
if line.startswith(bom):
line = line[len(bom):]
- if line.startswith('##'):
+ # Comments either have 1 or >= 3 leading '#'.
+ # The pragma ##id is special. It belongs to the skeleton, not to the header. Threat it like a comment.
+ if line.startswith('##') and not line.startswith('###') and not line.startswith('##id'):
if seen_strings:
data.add_error(ErrorMessage(ERROR, lnum, "Cannot change language properties after processing strings"))
continue