def get_all_languages():
 def _get():
  if (not frappe.db):
   frappe.connect()
  return frappe.db.sql_list(u'select name from tabLanguage')
 return frappe.cache().get_value(u'languages', _get)

def get_all_languages ( ) : def _get ( ) : if ( not frappe . db ) : frappe . connect ( ) return frappe . db . sql_list ( u'select name from tabLanguage' ) return frappe . cache ( ) . get_value ( u'languages' , _get )
returns all language codes ar .