lang-check: print a warning if cols!=20 on multiline messages

This commit is contained in:
Yuri D'Elia 2021-04-23 15:03:44 +02:00
parent 71ab3a9d53
commit 340928acc3

View File

@ -84,6 +84,8 @@ def parse_txt(lang, no_warning):
cols = len(translation) # propably fullscreen cols = len(translation) # propably fullscreen
if rows is None: if rows is None:
rows = 1 rows = 1
elif rows > 1 and cols != 20:
print(yellow("[W]: Multiple rows with odd number of columns on line %d" % lines))
if (rows_count_translation > rows_count_source and rows_count_translation > rows) or \ if (rows_count_translation > rows_count_source and rows_count_translation > rows) or \
(rows == 1 and len(translation) > cols): (rows == 1 and len(translation) > cols):