def add_translation(key, translation):
 if (not hasattr(_to_save, 'translations')):
  _to_save.translations = {}
 _to_save.translations.setdefault(key, [])
 _to_save.translations[key].append(translation)

def add_translation ( key , translation ) : if ( not hasattr ( _to_save , 'translations' ) ) : _to_save . translations = { } _to_save . translations . setdefault ( key , [ ] ) _to_save . translations [ key ] . append ( translation )
queue a translation that needs to be saved for a particular object .