We've been live on this one for over a week now. We set a cookie variable 'Eng' or 'Ita' and global.php imports a dictinary file based upon that setting. In our templates, all text is replaced with $variables which are cross referenced in the aforementioned included file from global.php.
[Edited by Huss on 05-24-2000 at 07:22 PM] [/QUOTE]
I've been using this method to implement multi-language support too, and mostly succesful. However, there seems to be a problem with the forumjump template.
Using this code in forumjump (which is the standard code except for the variables $forumjumpmessage, $selectone and $gobutton that are introduced.
<FONT SIZE="2" FACE="arial, helvetica"><FORM ACTION="forumdisplay.php" METHOD="GET"><B>$forumjumpmessage</B>
<SELECT NAME="forumid">
<option $defaultselected>$selectone</option>
$jumpforumbits
</SELECT>
<input type="hidden" name="daysprune" value="$daysprune">
<INPUT TYPE="SUBMIT" VALUE=$gobutton></FORM></font>
However, the variable-content is not added to the page, resulting in empty strings. I only have this problem with the forumjump template, and the variables are correctly defined in the language files. If I copy this code exactly to the forumdisplay template, there is no problem, and everything works perfectly. I could off course do that for every form that uses the forumjump template, but that's a far-from-nice approach.
Can anybody here please tell me what I'm doing wrong or why the forumjumptemplate is so special. How can I fix this problem?
Thank you in advance
Yves
|