Ejemplo n.º 1
0
 /**
  * Convenience method; builds the update button
  *
  * @param XMLElement &$wrapper
  */
 private function _appendUpdateButton(XMLElement &$wrapper)
 {
     $main_lang = FLang::getMainLang();
     $all_langs = FLang::getAllLangs();
     $div = new XMLElement('div', null, array('id' => 'file-actions', 'class' => 'label'));
     $span = new XMLElement('span', null, array('class' => 'frame'));
     $span->appendChild(new XMLElement('button', __('Fill test Names and Handles for Pages'), array('name' => 'action[' . PLH_GROUP . '][update]', 'type' => 'submit')));
     $div->appendChild($span);
     $div->appendChild(new XMLElement('p', __('Updates every Page\'s empty Titles and Handles with the value for <b>%1$s - %2$s</b> language, prefixed by language code.<br />E.g. <code>Romana : Acasa => English : ENAcasa</code>', array($main_lang, $all_langs[$main_lang])), array('class' => 'help')));
     $wrapper->appendChild($div);
 }