PDA

View Full Version : LIbrary


05-12-2000, 01:13 AM
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?

05-12-2000, 02:54 AM
If ($lang == "english) {

include ("englishlib.php");

} Elseif {

etc..

and then echo $txtwelcome

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

05-14-2000, 07:33 AM
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

05-14-2000, 08:22 AM
See it in action:

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

05-16-2000, 08:12 AM
so..whacha think?