function startElement($parser, $name, $attrs) { // $name = strtolower($name); parent::startElement($parser, $name, $attrs); $name = (string) strtolower($name); if (isset($this->attributes['label']) && $this->lang) { $this->attributes['label'] = $this->lang->tr($this->attributes['label']); } if (isset($this->attributes['value']) && $this->lang) { $this->attributes['value'] = $this->lang->tr((string) $this->attributes['value']); } }