David
|
| Posted: 03/25/2002, 6:41 AM |
|
Anyone have an idea for a site in 4 languages with CC MySQL PHP & templates?
|
|
|
 |
Nicole
|
| Posted: 03/26/2002, 12:36 AM |
|
For the time being it can be done in Template version only and require some manual coding. All captions on the form (FormCaption and field captions), should be defined in curl braces, like {FormCaption}. And all button captions, navigator captions should be defined the same way.
Then in Open event of the form you should get the selected language and define all captions. E.g. for English:
if (get_param("language") == "eng")
{
$tpl->set_var("FieldCaption", "Result");
$tpl->set_var("Field1Caption", "Name");
//other captions
$tpl->set_var("insert_button", "Insert");
//other buttons
$tpl->set_var("Previous", "Previous");
//other navigator captions
}
|
|
|
 |
|