public function t_editcontent($id, $asParams = array(), $sLangIfLocal = false, $sValueIfNotFound = false) { $sPrefix = $this->getComponentName() . '-editcontent'; if (!$this->bTranslationsEditContentLoaded) { //load translations $this->bTranslationsEditContentLoaded = true; try { Anwi18n::loadTranslationsFromPath($sPrefix, $this->getMyComponentDir() . ANWDIR_LANG, $this->isAddon(), $sPrefix); } catch (AnwException $e) { } } return Anwi18n::t_($id, $asParams, $sPrefix, $sLangIfLocal, $sValueIfNotFound); }