public function trlStaticExecute($language = null) { parent::trlStaticExecute($language); $trl = Kwf_Trl::getInstance(); $values = $this->getProperty('values'); if (is_array($values)) { foreach ($values as $k => $v) { $newKey = $k; $newValue = $v; if (is_string($k)) { $newKey = $trl->trlStaticExecute($k, $language); } //TODO key nicht (immer) übersetzen if (is_string($v)) { $newValue = $trl->trlStaticExecute($v, $language); } else { if (is_array($v)) { foreach ($v as $k2 => $v2) { if (is_string($v2)) { $newValue[$k2] = $trl->trlStaticExecute($v2, $language); } } } } unset($values[$k]); $values[$newKey] = $newValue; } $this->setProperty('values', $values); } }
public function trlStaticExecute($language = null) { parent::trlStaticExecute($language); $this->_language = $language; }