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;
}
С уважением , Моисеев Вячеслав.