Exemple #1
0
 public function _($id, $defaultValue, $suffix = '')
 {
     if (!Sydney_Tools_Localization::isMultiLanguageContentActive()) {
         return $defaultValue;
     }
     $keyLabel = $id . '_' . $this::TABLE_NAME . (empty($suffix) ? '' : '_' . $suffix);
     $translation = $this->getTranslate()->_($keyLabel);
     if ($keyLabel === $translation || Sydney_Tools_Localization::getCurrentContentLanguage() === Sydney_Tools_Localization::getDefaultContentLanguage()) {
         return $defaultValue;
     }
     return $translation;
 }