- fixed one misspelling

- removed language list filtering
This commit is contained in:
Piotr Przybylski
2008-09-24 18:15:55 +00:00
parent 651cc1e837
commit 1665acfdcc
3 changed files with 5 additions and 21 deletions

View File

@@ -25,28 +25,12 @@ if ($error_handler->countErrors() > 0) {
$error_handler->dispAllErrors();
}
// check selected language
$lang_file = './setup/lang/' . $GLOBALS['available_languages'][$GLOBALS['lang']][1] . '.inc.php';
if (!file_exists($lang_file)) {
// select_lang.lib.php did detection for us, so if language failed assume
// English is the only matching choice
$GLOBALS['lang'] = 'en-utf-8';
require_once $GLOBALS['lang_path'] . 'english-utf-8.inc.php';
}
// Load setup script translation
$lang_file = './setup/lang/' . $GLOBALS['available_languages'][$GLOBALS['lang']][1] . '.inc.php';
if (!file_exists($lang_file)) {
$lang_file = './setup/lang/english-utf-8.inc.php';
}
require_once $lang_file;
if (file_exists('./setup/lang/added_messages.php')) {
include './setup/lang/added_messages.php';
}
if (PMA_ifSetOr($_COOKIE['pma_lang'], '') != $GLOBALS['lang']) {
PMA_setCookie('pma_lang', $GLOBALS['lang']);
}
if (!isset($_SESSION['ConfigFile'])) {
$_SESSION['ConfigFile'] = array();