asterisk2billing.org
http://forum.asterisk2billing.org/

Can not change the language!
http://forum.asterisk2billing.org/viewtopic.php?f=19&t=3356
Page 1 of 1

Author:  imitrik [ Fri Mar 07, 2008 10:31 am ]
Post subject:  Can not change the language!

Hi to everyone!

I am troubling with something, I can not change the language of the customer interface, meaning, i press, for example, greek, italian, or what so ever, but nothing happens! The url just changes to /PP_intro.php?language=italian(greek, etc.), but the interface language stays english! I have installed gettext. Have ubuntu on my server.

Any suggestion?

Author:  cristianvirtual [ Wed Mar 19, 2008 1:44 pm ]
Post subject:  me too

I have the same problem, also in admin interface.
how can i solve it?
i use
a2billing 1.3.2
ubuntu server 7.10
locales es_CL

Author:  stavros [ Wed Mar 19, 2008 2:21 pm ]
Post subject: 

I can't think of anything that might cause this other than PHP not having working gettext support. Is 'gettext' in the list generated by 'php -m'?

Author:  cristianvirtual [ Wed Mar 19, 2008 2:40 pm ]
Post subject: 

thanks stavros i chcked...
Code:
#php -m |grep get
gettext

my php configuration:
Code:
# php -v
PHP 5.2.3-1ubuntu6.3 (cli) (built: Jan 10 2008 09:38:37)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

my apache
Code:
apache2 -v
Server version: Apache/2.2.4 (Ubuntu)
Server built:   Feb  4 2008 20:30:42


and my locales
# locale
Code:
LANG=es_CL.UTF-8
LC_CTYPE="es_CL.UTF-8"
LC_NUMERIC="es_CL.UTF-8"
LC_TIME="es_CL.UTF-8"
LC_COLLATE="es_CL.UTF-8"
LC_MONETARY="es_CL.UTF-8"
LC_MESSAGES="es_CL.UTF-8"
LC_PAPER="es_CL.UTF-8"
LC_NAME="es_CL.UTF-8"
LC_ADDRESS="es_CL.UTF-8"
LC_TELEPHONE="es_CL.UTF-8"
LC_MEASUREMENT="es_CL.UTF-8"
LC_IDENTIFICATION="es_CL.UTF-8"
LC_ALL=

Author:  asm2me [ Tue Mar 25, 2008 11:25 pm ]
Post subject:  FIXED!

I have the same problem, I finally found the variable $language in the file defines.php can't get the assigned value from the url PP_intro.php?language=xxxxxx
I couldn't fix the reason, since I don't know the sequence of the program, and I'm a newbie in PHP

Added after 53 minutes:

Finally found the problem in activating the language
the problem is in the lib/defines.php
the variable $language is not included in the getpost_ifset statement, so it is not aquired from the url
to fix just add 'language' to the statement like that:
getpost_ifset(array('form_action', 'atmenu', 'action', 'stitle', 'sub_action', 'IDmanager', 'current_page', 'order', 'sens', 'mydisplaylimit', 'filterprefix', 'language','cssname', 'popup_select'));

//
Please tell me if it is useful

Author:  willianmazzardo [ Sun Jun 01, 2008 11:52 pm ]
Post subject: 

asm2me

did'nt worked for me ...

just to let you know !!

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/