Fix "wmllint: no translatables" magic comment

This commit is contained in:
Toom 2019-11-19 18:17:26 +02:00 committed by Elvish_Hunter
parent 20753a8fd1
commit c4e39152cf

View file

@ -2203,7 +2203,7 @@ def global_sanity_check(filename, lines):
for num, line in enumerate(lines, start=1):
if "#textdomain" in line:
textdomains.append(num)
elif "wmllint: no translatables":
elif "wmllint: no translatables" in line:
no_text = True
if not no_text:
if not textdomains: