![]() |
Oh it's a hack but it works. Suport multiple languages with one template set. Put links on your page that when clicked chance all the vB text like username, pwd, etc to spanish, german etc. Uses dictionary libraries that get importated by the PHP scripts. Goign live tonite on my site. Reply here if you are curious.
J |
This sounds nice, keep us updated..
-Brian |
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.
We'll be adding Italian and French support this week. That brings this hack to six langs (Eng, Spa, Port, Germ), and switching the language of the vB on the fly. The links are at the top of every page of our site. Best, H [Edited by Huss on 05-24-2000 at 07:22 PM] |
Any change you'd share this hack? :)
|
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 |
Are you including the variable definitions via global.php or where?
H |
Quote:
if (!(isset($language))) $language = "Eng"; if ($language == "Eng") include ("English.php"); if ($language == "Ned") include ("Dutch.php"); if ($language == "Fra") include ("French.php"); |
Any ideas?
Anyone? Otherwise I'll have to start copying the "Forumjump" template code into the other templates :( |
One last question, and then I'll be of your back :)
Does anyone have an Idea how to accomplish this without using cookies? I want to be able to switch the language even if the user has the usage of cookies turned of in his browser. How can I keep the $language variable set during the entire visit of the user? Thanks! |
Any chance of this being released....please. :)
Thanks. |
All times are GMT. The time now is 05:46 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|