Topic: Solution to locale problems on Ubuntu based systems

I have FA installed on Linux Mint, and have had a lot of troubles getting FA to display anything but English.  The solution is relatively simple, so I will share it here.

Description of the problem:  In FA, if you go to settings and language, only Chinese locale is shown as "supported".  If you tick the "show unsupported locales" and install the language pack you need (in my case Spanish), nothing changes - the text is still in English only.  After much search and dabbling with the different locale files, I stumbled over the solution.  What happens is that Ubuntu based systems (including Mint) default to Unicode UTF8, and the FA language packages are ISO-8859-1. So this need to be added to the supported locales in Ubuntu/Mint:

Open a terminal and write

sudo gedit /var/lib/locales/supported.d/local

The file should look something like this:

en_US.UTF-8 UTF-8
xx_XX.UTF-8 UTF-8

where xx_XX is your local language (in my case es_Ni i.e. Spanish Nicaragua).

Add the ISO.8859-1 so it looks like this

en_US.UTF-8 UTF-8
en_US.ISO-8859-1
xx_XX.UTF-8 UTF-8
xx_XX.ISO-8859-1

Save the file, reconfigure locales with:

sudo dpkg-reconfigure locales

Restart MySQL:

sudo service mysql restart

Open FA and it should now be in your selected language (supposing you have already installed the language and chosen it under "preferences").

smile and smile

Re: Solution to locale problems on Ubuntu based systems

Hola Thor:

Luego de modificar el archivo local, al ejecturar el reconfigure locales obtengo el siguiente error:

Error: Bad entry 'es_EC.ISO-8859-1 '

¿Alguna sugerencia?

Saludos

Re: Solution to locale problems on Ubuntu based systems

Hola Paul

Yo traté ahora en mi sistema de incluir es_EC.ISO-8859-1 a mi fichero

Re: Solution to locale problems on Ubuntu based systems

Hello guys, please try to make these posts in English, so we all can share the information.
Thanks in advance smile

Joe

Re: Solution to locale problems on Ubuntu based systems

Hola Paul

Yo traté ahora en mi sistema de incluir es_EC.ISO-8859-1 a mi fichero "supported.d-local" y el "reconfigure" salió sin error.

¿Será que no tienes instalado el locale es_EC?

Intente la orden "locale -a" que te dará la lista de idiomas instalados.  Si no aparece el es_EC, escriba:

sudo locale-gen es_EC

para generar el locale Ecuatoriano y repita el "reconfigure".

Re: Solution to locale problems on Ubuntu based systems

Hi Paul - now in English as asked by the moderator.

I tried to include es_EC.ISO-8859-1 in my "supported.d-local" file and after that the "reconfigure" gave no error.

¿Perhaps you have not installed the locale es_EC?

Try "locale -a" to give you the list of installed languages.  If es_EC does not appear, write :

sudo locale-gen es_EC

to generate the Ecuatorian locale and repeat the "reconfigure".

Re: Solution to locale problems on Ubuntu based systems

Hi All,

After install “FrontAccount” on a Ubuntu box, I notice that my chose language (brasiliian portuguese) do not showed up. Using “locale” to see what I have in my box, I've got:
 
root@ubuntu-server:~# locale -a
C
POSIX
pt_BR.utf8
pt_PT.utf8

For that reason I start to try figure out why. After some readings I decide to change my “../lang/installed_languages.inc” file like this:

    'encoding' => 'utf-8', 
# 'encoding' => 'iso-8859-1',

and it works beautifully.

Re: Solution to locale problems on Ubuntu based systems

Thanks flaviove. This is of importance to other with installed utf-8 language in linux.

Just change the /lang/installed_languages.inc file.

/Joe

Re: Solution to locale problems on Ubuntu based systems

This workaround has its price. Generated pdf report files will be quite heavy. Another solution is just to generate pt_BR.iso-8859-2 on your box as described in another thread on forum.
Janusz

10 (edited by apmuthu 10/24/2012 01:55:23 am)

Re: Solution to locale problems on Ubuntu based systems

Wiki

Re: Solution to locale problems on Ubuntu based systems

hi

i´m new in FA, i changed muy language to spanish, but in my host is still in english,
i think is something about charset, you can help me?

Install/Update Languages

error:   Display also languages not supported by server locales


-------------------
hola

soy nuevo en FA, cambie los parametros para el lenguaje en español, pero en mi hosto no cambia
creo que tiene que ver con algo sobre charset, pueden ayudarme?

Install/Update Languages

error:   Display also languages not supported by server locales

Re: Solution to locale problems on Ubuntu based systems

thorbjornw wrote:

sudo gedit /var/lib/locales/supported.d/local

The file should look something like this:

en_US.UTF-8 UTF-8
xx_XX.UTF-8 UTF-8

where xx_XX is your local language (in my case es_Ni i.e. Spanish Nicaragua).

Add the ISO.8859-1 so it looks like this

en_US.UTF-8 UTF-8
en_US.ISO-8859-1
xx_XX.UTF-8 UTF-8
xx_XX.ISO-8859-1

Save the file, reconfigure locales with:

sudo dpkg-reconfigure locales

Restart MySQL:

sudo service mysql restart

Open FA and it should now be in your selected language (supposing you have already installed the language and chosen it under "preferences").

smile and smile

There a small error in the text:
Add the ISO.8859-1 so it looks like this

en_US.UTF-8 UTF-8
en_US.ISO-8859-1
xx_XX.UTF-8 UTF-8
xx_XX.ISO-8859-1

must be:
Add the ISO.8859-1 so it looks like this

en_US.UTF-8 UTF-8
en_US.ISO-8859-1 iso-8859-1
xx_XX.UTF-8 UTF-8
xx_XX.ISO-8859-1 iso-8859-1

For me, the iso must be in normal letters, not in capitals to get it to work.
Good luck with it.

Jan Willem Bosch

cool JWBosch Techniek cool
-- Work - Frontaccounting - terrace --

Re: Solution to locale problems on Ubuntu based systems

thorbjornw wrote:

Hi Paul - now in English as asked by the moderator.

I tried to include es_EC.ISO-8859-1 in my "supported.d-local" file and after that the "reconfigure" gave no error.

¿Perhaps you have not installed the locale es_EC?

Try "locale -a" to give you the list of installed languages.  If es_EC does not appear, write :

sudo locale-gen es_EC

to generate the Ecuatorian locale and repeat the "reconfigure".

Sorry for my very late reply. Thanks a lot for your help.