beshoo
|
| Posted: 03/31/2002, 11:52 AM |
|
Template for languages...
Description There is now a template for languages in xml... which is not
i like this to be in the new V of cc ........
dynamic...
I would like that Code Charge generate a $variables instead of the text which is harder to change later on...
This variabels should be listed in one inlude file on every page...
as $button $button="Button"
or $search $search="Search" ...
so on ...
by changing the inc file the whole site can change language even after it has been generated....
|
|
|
 |
Nicole
|
| Posted: 04/01/2002, 1:25 AM |
|
Hello,
if you mean site translation 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("FormCaption", "Result");
$tpl->set_var("Field1caption", "Name");
// other captions
$tpl->set_var("insert_button", "Insert");
//other buttons
$tpl->set_var("Previous", "Previous");
//other navigator captions
}
|
|
|
 |
|