def generate_translations(item):
 fr_prefix = u'(fran\xe7ais) '
 es_prefix = u'(espa\xf1ol) '
 oldname = unicode(item.name)
 item.name = {'en': oldname, 'fr': (fr_prefix + oldname), 'es': (es_prefix + oldname)}
 item.save()

def generate_translations ( item ) : fr_prefix = u'(fran\xe7ais) ' es_prefix = u'(espa\xf1ol) ' oldname = unicode ( item . name ) item . name = { 'en' : oldname , 'fr' : ( fr_prefix + oldname ) , 'es' : ( es_prefix + oldname ) } item . save ( )
generate french and spanish translations for the given item .