Bug #52101 please help me my email: moiseevslava@gmail.com
Submitted: 16 Mar 2010 16:04 Modified: 16 Mar 2010 17:42
Reporter: Moiseev Vyacheslav Email Updates:
Status: Not a Bug Impact on me:
None 
Category:Eventum Severity:S3 (Non-critical)
Version:eventum 2.2 OS:Linux
Assigned to: CPU Architecture:Any

[16 Mar 2010 16:04] Moiseev Vyacheslav
Description:
Good day! 
I apologize for my English. 
I have a problem with "eventum". Stops displayed the Russian language. Once our admins, update software, but until then everything was fine. 
in the config.php file is the value define ( 'APP_DEFAULT_LOCALE', 'ru_RU'); 
Could you help me? 
Where do I set the value to return again to the Russian language? 
in file include / php-gettext / gettext.inc 
I make var_dump ($ ret); 
It returns 

string 'C' (length = 1) 
string 'ru_RU.cp1251' (length = 12) 
string 'ru_RU.cp1251' (length = 12) 
string 'ru_RU.cp1251' (length = 12) 
string 'ru_RU.cp1251' (length = 12) 
The first value string 'C' (length = 1) do not understand whence came.

if ($CURRENTLOCALE != '')
return $CURRENTLOCALE;
else
// obey LANG variable, maybe extend to support all of LC_* vars
// even if we tried to read locale without setting it first
return _setlocale($category, $CURRENTLOCALE);

} else {
$ret = 0;
if (function_exists('setlocale')) // I don't know if this ever happens ;)
$ret = setlocale($category, $locale);
var_dump($ret);
if (($ret and $locale == '') or ($ret == $locale)) {
$EMULATEGETTEXT = 0;
$CURRENTLOCALE = $ret;
} else {
if ($locale == '') // emulate variable support
$CURRENTLOCALE = getenv('LANG');

else
$CURRENTLOCALE = $locale;
$EMULATEGETTEXT = 1;

}

С уважением , Моисеев Вячеслав.

How to repeat:
Good day! 
I apologize for my English. 
I have a problem with "eventum". Stops displayed the Russian language. Once our admins, update software, but until then everything was fine. 
in the config.php file is the value define ( 'APP_DEFAULT_LOCALE', 'ru_RU'); 
Could you help me? 
Where do I set the value to return again to the Russian language? 
in file include / php-gettext / gettext.inc 
I make var_dump ($ ret); 
It returns 

string 'C' (length = 1) 
string 'ru_RU.cp1251' (length = 12) 
string 'ru_RU.cp1251' (length = 12) 
string 'ru_RU.cp1251' (length = 12) 
string 'ru_RU.cp1251' (length = 12) 
The first value string 'C' (length = 1) do not understand whence came.

if ($CURRENTLOCALE != '')
return $CURRENTLOCALE;
else
// obey LANG variable, maybe extend to support all of LC_* vars
// even if we tried to read locale without setting it first
return _setlocale($category, $CURRENTLOCALE);

} else {
$ret = 0;
if (function_exists('setlocale')) // I don't know if this ever happens ;)
$ret = setlocale($category, $locale);
var_dump($ret);
if (($ret and $locale == '') or ($ret == $locale)) {
$EMULATEGETTEXT = 0;
$CURRENTLOCALE = $ret;
} else {
if ($locale == '') // emulate variable support
$CURRENTLOCALE = getenv('LANG');

else
$CURRENTLOCALE = $locale;
$EMULATEGETTEXT = 1;

}

С уважением , Моисеев Вячеслав.

Suggested fix:
Good day! 
I apologize for my English. 
I have a problem with "eventum". Stops displayed the Russian language. Once our admins, update software, but until then everything was fine. 
in the config.php file is the value define ( 'APP_DEFAULT_LOCALE', 'ru_RU'); 
Could you help me? 
Where do I set the value to return again to the Russian language? 
in file include / php-gettext / gettext.inc 
I make var_dump ($ ret); 
It returns 

string 'C' (length = 1) 
string 'ru_RU.cp1251' (length = 12) 
string 'ru_RU.cp1251' (length = 12) 
string 'ru_RU.cp1251' (length = 12) 
string 'ru_RU.cp1251' (length = 12) 
The first value string 'C' (length = 1) do not understand whence came.

if ($CURRENTLOCALE != '')
return $CURRENTLOCALE;
else
// obey LANG variable, maybe extend to support all of LC_* vars
// even if we tried to read locale without setting it first
return _setlocale($category, $CURRENTLOCALE);

} else {
$ret = 0;
if (function_exists('setlocale')) // I don't know if this ever happens ;)
$ret = setlocale($category, $locale);
var_dump($ret);
if (($ret and $locale == '') or ($ret == $locale)) {
$EMULATEGETTEXT = 0;
$CURRENTLOCALE = $ret;
} else {
if ($locale == '') // emulate variable support
$CURRENTLOCALE = getenv('LANG');

else
$CURRENTLOCALE = $locale;
$EMULATEGETTEXT = 1;

}

С уважением , Моисеев Вячеслав.
[16 Mar 2010 17:42] Valeriy Kravchuk
We're sorry, but the bug system is not the appropriate forum for asking help on using MySQL products. Your problem is not the result of a bug.

Support on using our products is available both free in our forums at http://forums.mysql.com/ and for a reasonable fee direct from our skilled support engineers at http://www.mysql.com/support/

Thank you for your interest in MySQL.