mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-17 06:00:42 +01:00
check_trans.py: make error messages red. Closes GH-632
This commit is contained in:
parent
b26c4d6a8a
commit
e8637441af
@ -7,6 +7,7 @@ import operator
|
|||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
from supybot.i18n import parse
|
from supybot.i18n import parse
|
||||||
|
import supybot.ansi as ansi
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
directory = sys.argv[1]
|
directory = sys.argv[1]
|
||||||
@ -45,7 +46,7 @@ def _checkCore(corePath):
|
|||||||
if checkTranslation(pot, po):
|
if checkTranslation(pot, po):
|
||||||
print('OK: ' + potPath)
|
print('OK: ' + potPath)
|
||||||
else:
|
else:
|
||||||
print('ERROR: ' + potPath)
|
print(ansi.RED + 'ERROR: ' + potPath + ansi.RESET)
|
||||||
|
|
||||||
|
|
||||||
@changedir
|
@changedir
|
||||||
@ -62,7 +63,7 @@ def checkPlugin(pluginPath):
|
|||||||
if checkTranslation(pot, po):
|
if checkTranslation(pot, po):
|
||||||
print('OK: ' + potPath)
|
print('OK: ' + potPath)
|
||||||
else:
|
else:
|
||||||
print('ERROR: ' + potPath)
|
print(ansi.RED + 'ERROR: ' + potPath + ansi.RESET)
|
||||||
|
|
||||||
def checkTranslation(pot, po):
|
def checkTranslation(pot, po):
|
||||||
checking = False
|
checking = False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user