public function addTranslation($translation)
    {
        $this->getTranslations()->set((string)$translation->getLocale(), $translation);
        $translation->setTranslatable($this);

        return $this;
    }
public function addTranslation($translation)
    {
        $this->getTranslations()->set((string)$translation->getLocale(), $translation);
        $translation->setTranslatable($this);

        return $this;
    }
public function addTranslation ( $ translation ) { $ this -> getTranslations ( ) -> set ( ( string ) $ translation -> getLocale ( ) , $ translation ) ; $ translation -> setTranslatable ( $ this ) ; return $ this ; }
Adds new translation.

@param Translation $translation The translation

@return $this
Adds new translation .