Added check for the MSGFMT binary, needed to install devedeng

This commit is contained in:
Sergio Costas 2018-03-24 13:48:21 +01:00
parent 8dfa31ea25
commit dd4366eb4c

View file

@ -43,6 +43,10 @@ def get_data_files():
def compile_translations(): def compile_translations():
if (os.system("msgfmt -V") != 0):
print('You need the binary "msgfmt" (from "gettext") to compile the translations. Aborting')
sys.exit(-1)
try: try:
for pofile in [f for f in os.listdir('po') if f.endswith('.po')]: for pofile in [f for f in os.listdir('po') if f.endswith('.po')]:
pofile = os.path.join('po', pofile) pofile = os.path.join('po', pofile)