Hi,

Four hours I'm trying to make working php_gettext but it's not working. It is correctly enabled (I use Php7.1 and tried with php7) but still not working, my code is :

//LANGUAGE SET SELECTOR
define('SESSION_LOCALE_KEY', 'ix_locale');
define('DEFAULT_LOCALE', 'es_ES');
define('LOCALE_REQUEST_PARAM', 'lang');
define('WEBSITE_DOMAIN', 'messages');
if (array_key_exists(LOCALE_REQUEST_PARAM, $_REQUEST)) {
$current_locale = $_REQUEST[LOCALE_REQUEST_PARAM];
$_SESSION[SESSION_LOCALE_KEY] = $current_locale;
} elseif (array_key_exists(SESSION_LOCALE_KEY, $_SESSION)) {
$current_locale = $_SESSION[SESSION_LOCALE_KEY];
} else {
$current_locale = DEFAULT_LOCALE;
}
putenv("LC_ALL=$current_locale");
setlocale(LC_ALL, $current_locale);
setlocale(LC_NUMERIC, 'en_US');
$pathh = dirname(FILE);
bindtextdomain(WEBSITE_DOMAIN, $pathh);
bind_textdomain_codeset(WEBSITE_DOMAIN, 'UTF-8');
textdomain(WEBSITE_DOMAIN);

Someone can help ?

Thanks