Finish up the dynamic translations

This commit is contained in:
blitzmann
2020-07-24 21:59:38 -04:00
parent ac1e6fe5b7
commit 1fe83ddcdf
5 changed files with 29 additions and 38 deletions

View File

@@ -1,5 +1,6 @@
import os, glob
import msgfmt
import config
import sys
@@ -8,6 +9,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', 'lang')
path = os.path.join(locale_path, name, 'LC_MESSAGES', config.CATALOG)
sys.argv[1:] = [path + '.po']
msgfmt.main()