trans lint: PNG instead of PGN

perfI18n
Thibault Duplessis 2020-02-13 09:25:39 -06:00
parent ea3776175e
commit ad13414fbe
1 changed files with 3 additions and 0 deletions

View File

@ -104,6 +104,9 @@ def lint_string(path, el, name, dest, source, allow_missing=0):
#elif pattern not in m_source and pattern in m_dest:
# print(notice(path, el, f"unexpected {pattern}: {name} {dest}"))
if "PGN" in source and "PNG" in dest:
print(error(path, el, f"PNG instead of PGN: {name} {dest}"))
if "\n" not in source and "\n" in dest:
print(notice(path, el, f"expected single line string: {name} {dest}"))