forked from 0x2620/pandora
write joined locale as utf-8
This commit is contained in:
parent
57e8cc3e48
commit
c10f06ddae
1 changed files with 3 additions and 2 deletions
|
@ -7,6 +7,7 @@ import sys
|
|||
import shutil
|
||||
import time
|
||||
import thread
|
||||
import codecs
|
||||
from glob import glob
|
||||
|
||||
from django.conf import settings
|
||||
|
@ -256,8 +257,8 @@ def update_static():
|
|||
with open(site_locale) as fdl:
|
||||
print ' adding', site_locale
|
||||
locale.update(json.load(fdl))
|
||||
with open(locale_file, 'w') as fd:
|
||||
json.dump(locale, fd)
|
||||
with codecs.open(locale_file, "w", "utf-8") as fd:
|
||||
json.dump(locale, fd, ensure_ascii=False)
|
||||
os.system('gzip -9 -c "%s" > "%s.gz"' % (locale_file, locale_file))
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue