mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 02:49:27 +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
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user