public function addTranslation(Gpf_Lang_Parser_Translation $translation) { $this->translations[$translation->getId()] = $translation; if ($translation->getStatus() == Gpf_Lang_Parser_Translation::STATUS_TRANSLATED) { $this->translated++; } else { if ($translation->getStatus() == Gpf_Lang_Parser_Translation::STATUS_DEPRECATED) { $this->depreceated++; } } }