Browse Source

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

Yuri D'Elia 3 years ago
parent
commit
340928acc3
1 changed files with 2 additions and 0 deletions
  1. 2 0
      lang/lang-check.py

+ 2 - 0
lang/lang-check.py

@@ -84,6 +84,8 @@ def parse_txt(lang, no_warning):
                 cols = len(translation)     # propably fullscreen
             if rows is None:
                 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 \
                     (rows == 1 and len(translation) > cols):