fix setup.py install script which compiles and copies translations in the correct order

This commit is contained in:
Safa Arıman
2019-08-21 20:31:12 +03:00
parent 2bbd8b4e49
commit ccdedb3564
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ import logging
import logging.handlers
from importlib import reload
__version__ = "3.0a1"
__version__ = "3.0.0-alpha1"
__all__ = [ 'api', 'configfile', 'db']
+1 -1
View File
@@ -104,7 +104,7 @@ class Install(install):
continue
lang = name[:-3]
print("Installing '%s' translations..." % lang)
os.popen("msgfmt po/%s.po -o po/%s.mo" % (lang, lang))
os.system("msgfmt po/%s.po -o po/%s.mo" % (lang, lang))
if not self.root:
self.root = "/"
destpath = os.path.join(self.root, "usr/share/locale/%s/LC_MESSAGES" % lang)