1
0
mirror of https://github.com/typemill/typemill.git synced 2025-07-26 00:31:38 +02:00

Added "ignore" feature

This commit is contained in:
Paul
2020-11-03 13:43:41 +03:00
committed by GitHub
parent cbd4696465
commit 43d22ac70e

View File

@@ -24,6 +24,8 @@ if __name__ == '__main__':
key = [t.split(': ', 1)[0] for t in data]
for i in lang_codes[1:]: # all lang codes except en, because en used like template
any_header = f_open(i).split('\n')
if 'ignore' in any_header[0].lower(): # first string in file may contain ignore keyword
continue
any_data = any_header[2:]
any_header = any_header[:2]
any_key = [t.split(': ', 1)[0] for t in any_data]