mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-14 16:27:13 +03:00
l10n script: With --lang output the !Language header
This commit is contained in:
parent
6d0f5259d0
commit
82fd3cd577
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user