def accept
      # If translation is accepted do nothing
      unless self.accepted?
        self.translation_key.accepted_translation_in(self.lang)
          .try(:update_attribute, :status, TranslationKey::PENDING)

        # reload the translation key as it has changed
        self.translation_key.reload
        self.update_attribute(:status, ACCEPTED)
      end
    end
def accept
      # If translation is accepted do nothing
      unless self.accepted?
        self.translation_key.accepted_translation_in(self.lang)
          .try(:update_attribute, :status, TranslationKey::PENDING)

        # reload the translation key as it has changed
        self.translation_key.reload
        self.update_attribute(:status, ACCEPTED)
      end
    end
Accept translation by changing its status and if there is an accepting translation
 make it pending