From e8637441af60d902e23cc7739f631a6d02ed092b Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sun, 11 May 2014 17:49:14 +0000 Subject: [PATCH] check_trans.py: make error messages red. Closes GH-632 --- sandbox/check_trans.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sandbox/check_trans.py b/sandbox/check_trans.py index 1b4c763b8..5b5eaac75 100755 --- a/sandbox/check_trans.py +++ b/sandbox/check_trans.py @@ -7,6 +7,7 @@ import operator import subprocess from supybot.i18n import parse +import supybot.ansi as ansi def main(): directory = sys.argv[1] @@ -45,7 +46,7 @@ def _checkCore(corePath): if checkTranslation(pot, po): print('OK: ' + potPath) else: - print('ERROR: ' + potPath) + print(ansi.RED + 'ERROR: ' + potPath + ansi.RESET) @changedir @@ -62,7 +63,7 @@ def checkPlugin(pluginPath): if checkTranslation(pot, po): print('OK: ' + potPath) else: - print('ERROR: ' + potPath) + print(ansi.RED + 'ERROR: ' + potPath + ansi.RESET) def checkTranslation(pot, po): checking = False