This days I’m trying to install a FreePBX, the system it’s fine but when I’m trying to change the language, the language don’t change.
I’m trying, in debian etch version have a gettext extension and I see the source and see the cookie[‘lang’] and is correctly(es_ES). I’m installing Trixbox and the language changen correctly, any solution?
I have found the problem regarding to the gettext function. It does need the character encoding to be able to work.
After I have changed in:
FREEPBX_ROOT/admin/views/freepbx_admin.php
from:
to:
Then it is workaing now.
Another solution is to change the FREEPBX_ROOT/admin/header.php
from:
function set_language() {
if (extension_loaded('gettext')) {
if (isset($_COOKIE['lang'])) {
setlocale(LC_ALL, $_COOKIE['lang']);
putenv("LANGUAGE=".$_COOKIE['lang']);
} else {
to:
function set_language() {
if (extension_loaded('gettext')) {
if (isset($_COOKIE['lang'])) {
setlocale(LC_ALL, $_COOKIE['lang'].".UTF-8");
putenv("LANGUAGE=".$_COOKIE['lang'].".UTF-8");
} else {
Does anyone know what should be the command that does the same thing as locale-gen but in CentOS 5.5? locale works just fine but locale-gen returns:
"-bash: locale-gen: command not found"