fix setup.py install script which compiles and copies translations in the correct order
This commit is contained in:
+1
-1
@@ -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']
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user