code: def setter_generator(field_name):
      
      def set_translation_field(cls, value, language_code=None):
          setattr(cls.get_translation(language_code, True),
                  field_name, value)
      set_translation_field.short_description = "set " + field_name
      return set_translation_field
docs: Generate set_'field name' method for field field_name.