浏览代码

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

Yuri D'Elia 3 年之前
父节点
当前提交
340928acc3
共有 1 个文件被更改,包括 2 次插入0 次删除
  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):