You are here: $cfg['Lang'] in phpMyAdmin config « PHP Programming Language « IT news, forums, messages
$cfg['Lang'] in phpMyAdmin config

Posted by Marcus on 10/15/49 11:52

Hello,

I am trying to configure phpMyAdmin 2.8.2. I un-commented the following
line in config.inc.php:

// Force: always use this language - must be defined in
// libraries/select_lang.lib.php
$cfg['Lang'] = 'en-iso-8859-1';

but then after logging into phpMyAdmin, I get an error message:

Notice: Undefined index: en-iso-8859-1 in ...\index.php on line 97

I went into index.php and found that this is the line in question:

$lang_iso_code = $GLOBALS['available_languages'][$GLOBALS['lang']][2];

So I went into select_lang.lib.php as suggested in the documentation and
poked around. 'en-iso-8859-1' is definitely a key in the
$available_languages array on this page, but then by the time the above
line of code gets called on index.php, this key is missing from
$GLOBALS['available_languages']. At that point, this is the only key in
the array for English, which is why I am getting the error message:

[en-utf-8] => Array
(
[0] => en|english
[1] => english-utf-8
[2] => en
[3] =>
)

Does anyone know why this is happening, and how I can uncomment the
$cfg['Lang'] = 'en-iso-8859-1'; line and not have all these problems?
This is the only change I made that resulted in the error message; if I
again comment out the line in question as it comes defaulted, everything
works fine. Thanks for all your help.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация