Hi eline,
To have multiple languages, and each guestbook has one language, the easiest is to pass the lang in the function sv_book($usu, $cada, $eleg, $LANG){ .... like 4 parameter.
For example: <?php sv_book("cumbe", 4, "D", "en_US"); ?>
Too, you must to comment the lines, global $LANG and $LANG = $data->LANG;
Thus always will use the language that you need.
Oleg,
In this moment, the language of guestbook is the language of user of getsimple....
To have multiple languages, and each guestbook has one language, the easiest is to pass the lang in the function sv_book($usu, $cada, $eleg, $LANG){ .... like 4 parameter.
For example: <?php sv_book("cumbe", 4, "D", "en_US"); ?>
Too, you must to comment the lines, global $LANG and $LANG = $data->LANG;
Code:
...
//global $LANG;
if (file_exists(GSDATAPATH.'users/'.$usu.'.xml')) {
$data = getXML(GSDATAPATH.'users/'.$usu.'.xml');
$EMAIL = $data->EMAIL;
//$LANG = $data->LANG;
....
Oleg,
In this moment, the language of guestbook is the language of user of getsimple....