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
|
import logging.handlers
|
||||||
from importlib import reload
|
from importlib import reload
|
||||||
|
|
||||||
__version__ = "3.0a1"
|
__version__ = "3.0.0-alpha1"
|
||||||
|
|
||||||
__all__ = [ 'api', 'configfile', 'db']
|
__all__ = [ 'api', 'configfile', 'db']
|
||||||
|
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ class Install(install):
|
|||||||
continue
|
continue
|
||||||
lang = name[:-3]
|
lang = name[:-3]
|
||||||
print("Installing '%s' translations..." % lang)
|
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:
|
if not self.root:
|
||||||
self.root = "/"
|
self.root = "/"
|
||||||
destpath = os.path.join(self.root, "usr/share/locale/%s/LC_MESSAGES" % lang)
|
destpath = os.path.join(self.root, "usr/share/locale/%s/LC_MESSAGES" % lang)
|
||||||
|
|||||||
Reference in New Issue
Block a user