PDA

View Full Version : LIbrary


12 May 2000, 02:13
I want to include a library of variables that will hold the bulk of the standard text.

What I envision doing is saying

if lang = english load english lib
if lang = spanish load spanish lib
etc

the lib would look like this:

$txtwelcome = "Welcome to my board"
$txtlogin = "Please log in"

Is this doable? What command do I use to include the files?

12 May 2000, 03:54
If ($lang == "english) {

include ("englishlib.php");

} Elseif {

etc..

and then echo $txtwelcome





[Edited by Fquist on 05-12-2000 at 07:12 PM]

14 May 2000, 08:33
In a future version, we will be supporting multiple sets of templates, that the user/admin can select. That would make implementing multiple languages easy.

John

14 May 2000, 09:22
See it in action:

http://www.bigsoccer.com/forum/

16 May 2000, 09:12
so..whacha think?