Problem when I try to change the gui language

Hi good afternoon,

I am having problems when I try to change the language from english to spanish on the FreePBX gui

I have installed Debian 8.2 and then I have installed Asterisk 11.21.2 and FreePBX 12.0.76.2

When I try to change the GUI language from english to spanish (from the GUI menu top-rigth) the language changes in some occassions but when you click a button on the gui on several ocassions the info. is showed on english and on several occasions the info. is showed on spanish. It looks like to be random.

Any idea about what can be happened?? Anybody knows how can I analyze this problem?

If I execute # locale -a
C
C.UTF-8
en_US.utf8
POSIX

It is necessary to charge one of this locale to can use the spanish language on the gui???

  • es_ES ISO-8859-1
  • es_ES.UTF-8 UTF-8

Maybe there is a problem with the cache server??

If I execute amportal a ma refreshsignatures I can see this on the linux console:

bash: warning: setlocale: LC_ALL: cannot change locale (es_ES)
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (es_ES)

Anyone know how can solve this problem?

I am searching on google but I am not be able to solve by now.

I have solved the problem making this:

1º) Uncomment on /etc/locale.gen these lines:
es_ES ISO-8859-1
es_ES.UTF-8 UTF-8
es_ES@euro ISO-8859-15

2º) Add these lines on en /etc/default/locale
LANG=es_ES.UTF-8
LANGUAGE=es_ES.UTF-8
LC_ALL=es_ES.UTF-8

3º) Execute these commands:

locale-gen

dpkg-reconfigure locales

4º) Reboot the system.
# reboot
5º) Once we have rebooted, execute these commands to check if the changes have been saved:

locale -a

C
C.UTF-8
en_US.utf8
es_ES
es_ES@euro
es_ES.iso88591
es_ES.iso885915@euro
es_ES.utf8
POSIX
Spanish

locale

LANG=es_ES.UTF-8
LANGUAGE=es_ES.UTF-8
LC_CTYPE="es_ES.UTF-8"
LC_NUMERIC="es_ES.UTF-8"
LC_TIME="es_ES.UTF-8"
LC_COLLATE="es_ES.UTF-8"
LC_MONETARY="es_ES.UTF-8"
LC_MESSAGES="es_ES.UTF-8"
LC_PAPER="es_ES.UTF-8"
LC_NAME="es_ES.UTF-8"
LC_ADDRESS="es_ES.UTF-8"
LC_TELEPHONE="es_ES.UTF-8"
LC_MEASUREMENT="es_ES.UTF-8"
LC_IDENTIFICATION="es_ES.UTF-8"
LC_ALL=es_ES.UTF-8

6º) Execute these commands on FreePBX

amportal a reload

amportal a ma refreshsignatures

amportal chown