public function text($y_textkey) { //-- if ((string) $y_textkey == '') { Smart::log_warning('Empty Key for Text Context Translator - Area: ' . $this->area . ' ; SubArea: ' . $this->subarea); return '{Empty Translation Key}'; } //end if //-- $text = (string) SmartTextTranslations::getTranslationByKey($this->area, $this->subarea, $y_textkey); //-- if ((string) $text == '') { Smart::log_warning('Undefined Key: [' . $y_textkey . '] for Text Context Translator - Area: ' . $this->area . ' ; SubArea: ' . $this->subarea); return '{Undefined Translation Key: ' . Smart::escape_html($y_textkey) . '}'; } //end if //-- return (string) $text; //-- }