Topic: Problem with gettex.
In windows(Xampp) -
gettext_native - Work but all text no in rigth code. web-page in UTF-8, base utf-8. Text in ISO-8859-5. GetText in php on.
gettext_php_traslate - work fine and code is correct. But need OFF GetText in PHP.
LINUX(Ubuntu 8.04)
gettext is ok, I check with this script http://php.russofile.ru/resources/archives/0000/gettext_sample.zip. and is work.
In FrontAccounting not work. Need again turn off Gettext and ... .
AND how a change without OFF gettext
I am change function _('Test') in T_('Test').
in all files *.php and *.inc. '_(' in 'T_(' .
and change in frontaccount\includes\lang\gettext.php
line : 130 - 133. this TunON php_gettext ALLTIME
....
if (function_exists('gettext'))
{
// return get_text::_support(new gettext_native_support());
return get_text::_support(new gettext_php_support());
}
....
and change in frontaccount\includes\lang\language.php
if (!function_exists("_"))
{
function T_($text)
//function _($text)
{
$retVal = get_text::gettext($text);
if ($retVal == "")
return $text;
return $retVal;
}
}
//new function
function T_($text)
{
$retVal = get_text::gettext($text);
if ($retVal == "")
return $text;
return $retVal;
}
//new function