def update_language_names():
 with open(frappe.get_app_path(u'frappe', u'geo', u'languages.json'), u'r') as f:
  data = json.loads(f.read())
 for l in data:
  frappe.db.set_value(u'Language', l[u'code'], u'language_name', l[u'name'])

def update_language_names ( ) : with open ( frappe . get_app_path ( u'frappe' , u'geo' , u'languages.json' ) , u'r' ) as f : data = json . loads ( f . read ( ) ) for l in data : frappe . db . set_value ( u'Language' , l [ u'code' ] , u'language_name' , l [ u'name' ] )
update frappe/geo/languages .