-1) { exit; } if (!AT_DEVEL_TRANSLATE) { exit; } require_once(AT_INCLUDE_PATH.'classes/Message/Message.class.php'); global $savant; $msg =& new Message($savant); if (isset($_POST['cancel'])) { $msg->addFeedback('CANCELLED'); header('Location: language.php'); exit; } else if (isset($_POST['submit'])) { require_once(AT_INCLUDE_PATH . 'classes/Language/LanguageEditor.class.php'); if ($languageManager->exists($_POST['code'], $_POST['locale'])) { $msg->addError('LANG_EXISTS'); } else { $state = LanguageEditor::addLanguage($_POST, $lang_db); } if (!$msg->containsErrors() && $state !== FALSE) { $msg->addFeedback('LANG_ADDED'); header('Location: language.php'); exit; } } require(AT_INCLUDE_PATH.'header.inc.php'); echo '

'._AT('add_language').'

'; $msg->printAll(); ?>
/>, />



|