l10n script: With --lang output the !Language header

This commit is contained in:
Athanasius committed 2021-06-07 14:34:12 +01:00
1 parent 6d0f5259d0
commit 82fd3cd577
1 file changed
+4 -1
+4 -1
View File
@@ -239,7 +239,10 @@ def generate_lang_template(data: dict[pathlib.Path, list[ast.Call]]) -> str:
entries.append(LangEntry([FileLocation.from_call(path, c)], get_arg(c), [getattr(c, 'comment')]))
deduped = dedupe_lang_entries(entries)
out = ''
out = '''
/* Language name */
"!Language" = "English";
'''
print(f'Done Deduping entries {len(entries)=} {len(deduped)=}', file=sys.stderr)
for entry in deduped:
assert len(entry.comments) == len(entry.locations)