public function displayValues($contentNode, $trasient_options, $action) { if (!($mainNode = $this->template->appendFileByNode('locale_' . $action . '.html', 'span', $contentNode) instanceof DOMNode)) { return false; } $this->template->setDisplayDataImmediate('displayName', $this->getDisplayName()); $this->template->setDisplayDataImmediate('description', $this->getDescription()); $this->template->setDisplayDataImmediate('locale_default', I2CE_Locales::DEFAULT_LOCALE, $mainNode); if (($pos = strpos($this->name, '_')) !== false) { $lang = substr($this->name, 0, $pos); } else { $lang = $this->name; } $this->template->setDisplayDataImmediate('locale_language', $lang, $mainNode); $this->template->setDisplayDataImmediate('resolution', implode(',', I2CE_Locales::ensureValidResolution($this->name, $this->storage->getAsArray('resolution'))), $mainNode); if ($action === 'edit') { $this->renameInputs('resolution', $mainNode); } return true; }