Call to a member function getTranslatedName() on null