webERP Forum
webERP 4.12.3 User language problem - Printable Version

+- webERP Forum (http://www.weberp.org/forum)
+-- Forum: webERP Discussion (/forumdisplay.php?fid=1)
+--- Forum: Problems / Bugs? (/forumdisplay.php?fid=8)
+--- Thread: webERP 4.12.3 User language problem (/showthread.php?tid=2483)



webERP 4.12.3 User language problem - iangrech - 06-07-2015 04:34 PM

Hi All;

I am setting up a demo for a client that requires to have some users using non-English UI language (namely Italian). I have set up a user to do this for demo. On login the UI is in Italian however soon I click on something it reverts to English and stays there. At first I thought it was Chrome doing auto language translate but browsing to an Italian site (corriere.it) the site remained in Italian (ie was not auto translated).

Anyone faced similar issues? Any solutions or recommendations appreciated.

Regards
Ian


RE: webERP 4.12.3 User language problem - falkoner - 06-07-2015 06:44 PM

Probably a silly question but best to check the obvious first.

Is the Italian locale installed on the server?

Is it a windows or Linux server?

Tim


RE: webERP 4.12.3 User language problem - iangrech - 06-07-2015 07:41 PM

Hi Tim

It is Linux (Ubuntu). i do not think it is a matter of locale as Language is set in User Management.

Thanks
Ian


RE: webERP 4.12.3 User language problem - falkoner - 06-07-2015 07:46 PM

Hi Ian, my experience is that the locale does need to be installed for the translations to work. If it_IT.utf8 isn't installed it is worth a try I think.

Thanks
Tim


RE: webERP 4.12.3 User language problem - iangrech - 06-07-2015 07:48 PM

Will check.

Thanks Tim


RE: webERP 4.12.3 User language problem - falkoner - 06-07-2015 07:51 PM

Oh and also I have found for reasons that I cannot explain that after installing the locale it still doesn't work until apache is restarted. I would guess this has something to do with PHP but I can't explain it, just that I have found that it works on a number of installations over the years. Smarter people than me may be able to explain the technical details.

Tim


RE: webERP 4.12.3 User language problem - iangrech - 06-08-2015 11:25 PM

Adding locale it_it and it_IT.utf8 worked. Thanks.

I am listing how to do it to speed up resolution if someone else encounters problem.

Note: I only tried this on Ubuntu 14.04LTS.

locale -a <- lists all locales on machine
sudo locale-gen it_IT
sudo locale-gen it_IT.utf-8


After this is done restart Apache.

Thanks Tim.

Ian


RE: webERP 4.12.3 User language problem - falkoner - 06-08-2015 11:33 PM

Glad that it worked for you Ian.

Strange thing is it shouldn't require the locale installed but as you have seen it does. I have been intending for years to go back and look why this is but never had the time. Maybe one day I will get that time :-)

Tim