@click.command(u'build-message-files')
@pass_context
def build_message_files(context):
 import frappe.translate
 for site in context.sites:
  try:
   frappe.init(site=site)
   frappe.connect()
   frappe.translate.rebuild_all_translation_files()
  finally:
   frappe.destroy()

@ click . command ( u'build-message-files' ) @ pass_context def build_message_files ( context ) : import frappe . translate for site in context . sites : try : frappe . init ( site = site ) frappe . connect ( ) frappe . translate . rebuild_all_translation_files ( ) finally : frappe . destroy ( )
build message files for translation .