2012-08-03, 09:56:46
(This post was last modified: 2012-08-03, 10:40:24 by Andrewmugs.)
chiara Wrote:I found it! There is something wrong in the it_IT.php I've downloaded! Or maybe I touched something!cumbe Wrote:Hi chiara,
It is easy; simply add these lines on line 223 inside guestbook.php:
Code:if (isset($_GET['setlang'])){
$LANG = $_GET['setlang']. '_'.strtoupper($_GET['setlang']);
}
There is to test..
Regards
Hi Cumbe!
Thank you so much for the quickly and clear answer.. I've tried, but it seems is not working again. This is my little piece of code inside guestbook.php
function sv_book($usu, $cada, $eleg, $capt, $vemot){
global $EMAIL;
global $SITEURL;
global $i18n;
global $LANG;
global $PRETTYURLS;
if (file_exists(GSDATAPATH.'users/'.$usu.'.xml')) {
$data = getXML(GSDATAPATH.'users/'.$usu.'.xml');
$EMAIL = $data->EMAIL;
$LANG = $data->LANG;
}
if (isset($_GET['setlang'])){
$LANG = $_GET['setlang']. '_'.strtoupper($_GET['setlang']);
}
//traducción idiomas i18n
i18n_merge('guestbook', $LANG) || i18n_merge('guestbook','en_US');
...
is it right?
PHP is not my best friend..
There is some error in my code?
Thank you again for your precious help!
chiara
...
I mistakenly deleted a comma in the list! Now everything works perfectly! Thank you again. All your help and this forum is invaluable!