revert compile_lang, don't have access to config here... will need to fix

This commit is contained in:
Ryan Holmes
2020-07-25 12:40:12 -04:00
parent db2bd22ddc
commit 7438fb72bc

View File

@@ -1,6 +1,5 @@
import os, glob
import msgfmt
import config
import sys
@@ -9,6 +8,6 @@ locale_path = os.path.abspath(os.path.join(script_dir, '..', 'locale'))
for name in glob.iglob(locale_path + '/**'):
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']
msgfmt.main()