def make_dict_from_messages(messages, full_dict=None):
 out = {}
 if (full_dict == None):
  full_dict = get_full_dict(frappe.local.lang)
 for m in messages:
  if (m[1] in full_dict):
   out[m[1]] = full_dict[m[1]]
 return out

def make_dict_from_messages ( messages , full_dict = None ) : out = { } if ( full_dict == None ) : full_dict = get_full_dict ( frappe . local . lang ) for m in messages : if ( m [ 1 ] in full_dict ) : out [ m [ 1 ] ] = full_dict [ m [ 1 ] ] return out
returns translated messages as a dict in language specified in frappe .