def lang_add(cursor, lang, trust):
 if trust:
  query = ('CREATE TRUSTED LANGUAGE "%s"' % lang)
 else:
  query = ('CREATE LANGUAGE "%s"' % lang)
 cursor.execute(query)
 return True

def lang_add ( cursor , lang , trust ) : if trust : query = ( 'CREATE TRUSTED LANGUAGE "%s"' % lang ) else : query = ( 'CREATE LANGUAGE "%s"' % lang ) cursor . execute ( query ) return True
adds language for db .