Ticket #247 (new defect)

Opened 4 months ago

Last modified 4 months ago

Regression over v1.3.3: change language no longer works

Reported by: stavros Assigned to: areski
Priority: major Milestone: milestone Version 1.3
Component: Customer UI Version:
Keywords: change language Cc:

Description

I'm opening this ticket on behalf of a forum user:

http://forum.asterisk2billing.org/viewtopic.php?p=16754#16754

Change History

07/27/08 21:03:12 changed by asiby

Hello Stavros,

This may be a PHP compilation issue cause v1.3.3 is working fine for me on my servers and it is changing languages flawlessly. The only time I have noticed that the languages stop working was when I installed A2Billing on my USB flash drive as portable application using XAMPP. A quick investigation showed that A2B uses LC_MESSAGES when setting the locales. You can find that is lib/languageSettings.php. >>>> setlocale(LC_MESSAGES, $slectedLanguage); <<<<

The official PHP manual says this:

LC_MESSAGES for system responses (available if PHP was compiled with libintl)

Having seen that, I have then noticed that the PHP that shipped with XAMPP did not have libintl.

I have changed LC_MESSAGES to LC_ALL to get rid of the error messages and to make things work.

I hope this help.

Cheers



Google