How to prevent showing/receiving untranslated content?
问题 This is my Distance Cell public function display() { $this->loadModel('Distances'); $distances = $this->Distances->find('all',[ 'order' => 'Distances.id ASC', ])->toArray(); $this->set('distances',$distances); }} Problem, if content is not yet translated and stored in db, original untranslated content is displayed on the page. How to prevent this, and show only translated content in current language? 回答1: The onlyTranslated option This is unfortunately not documented yet, but the Translate