Remove no longer needed language file names.

This commit is contained in:
Michal Čihař
2010-04-09 13:54:15 +02:00
parent a86d3fee48
commit f9ccd69538
14 changed files with 92 additions and 94 deletions

View File

@@ -225,7 +225,7 @@ function PMA_fatalError($error_message, $message_args = null)
// it could happen PMA_fatalError() is called before language file is loaded
if (! isset($GLOBALS['available_languages'])) {
$GLOBALS['cfg'] = array(
'DefaultLang' => 'en-utf-8',
'DefaultLang' => 'en',
'AllowAnywhereRecoding' => false);
// Loads the language file
@@ -237,7 +237,7 @@ function PMA_fatalError($error_message, $message_args = null)
$GLOBALS['strError'] = 'Error';
}
// $text_dir is set in lang/language-utf-8.inc.php
// $text_dir is set in po file
if (isset($text_dir)) {
$GLOBALS['text_dir'] = $text_dir;
}
@@ -262,7 +262,7 @@ function PMA_fatalError($error_message, $message_args = null)
// Displays the error message
// (do not use & for parameters sent by header)
$query_params = array(
'lang' => $GLOBALS['available_languages'][$GLOBALS['lang']][2],
'lang' => $GLOBALS['available_languages'][$GLOBALS['lang']][1],
'dir' => $GLOBALS['text_dir'],
'type' => $GLOBALS['strError'],
'error' => $error_message,