def RATINGS_BY_NAME():
 all_ratings = ALL_RATINGS()
 ratings_choices = []
 for rb in RATINGS_BODIES.values():
  for r in rb.ratings:
   ratings_choices.append((all_ratings.index(r), (u'%s - %s' % (rb.name, dehydrate_rating(r).name))))
 return ratings_choices

def RATINGS_BY_NAME ( ) : all_ratings = ALL_RATINGS ( ) ratings_choices = [ ] for rb in RATINGS_BODIES . values ( ) : for r in rb . ratings : ratings_choices . append ( ( all_ratings . index ( r ) , ( u'%s - %s' % ( rb . name , dehydrate_rating ( r ) . name ) ) ) ) return ratings_choices
create a list of tuples after we know the locale since this attempts to concatenate two lazy translations in constants file .