Added check for the MSGFMT binary, needed to install devedeng
This commit is contained in:
parent
8dfa31ea25
commit
dd4366eb4c
1 changed files with 4 additions and 0 deletions
4
setup.py
4
setup.py
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue