def compile_mo(lang=None):
langs = getlangs(lang)
puts(u"Compiling %s" % ', '.join(langs))
for loc in langs:
with indent(2):
puts(u"Compiling %s" % loc)
shell_call(u"django-admin.py compilemessages -l %(lang)s "
% {'lang': loc})
for app in I18N_APPS:
with indent(4):
puts(u"Compiling app %s" % app)
with chdir(os.path.join(REPO_ROOT, app)):
shell_call(u"django-admin.py compilemessages -l %(lang)s"
% {'lang': loc})
puts(colored.green("sucesssfuly compiled %s" % loc))
评论列表
文章目录