revert compile_lang, don't have access to config here... will need to fix
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
import os, glob
|
import os, glob
|
||||||
import msgfmt
|
import msgfmt
|
||||||
import config
|
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
@@ -9,6 +8,6 @@ locale_path = os.path.abspath(os.path.join(script_dir, '..', 'locale'))
|
|||||||
|
|
||||||
for name in glob.iglob(locale_path + '/**'):
|
for name in glob.iglob(locale_path + '/**'):
|
||||||
if not os.path.isfile(name):
|
if not os.path.isfile(name):
|
||||||
path = os.path.join(locale_path, name, 'LC_MESSAGES', config.CATALOG)
|
path = os.path.join(locale_path, name, 'LC_MESSAGES', 'lang')
|
||||||
sys.argv[1:] = [path + '.po']
|
sys.argv[1:] = [path + '.po']
|
||||||
msgfmt.main()
|
msgfmt.main()
|
||||||
|
|||||||
Reference in New Issue
Block a user