def generate_translations(item):
    """Generate French and Spanish translations for the given `item`."""
    fr_prefix = '(français) '
    es_prefix = '(español) '
    oldname = str(item.name)
    item.name = {'en': oldname, 'fr': fr_prefix + oldname, 'es': es_prefix + oldname}
    item.save()
