CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 please codecharge see this...

Print topic Send  topic

Author Message
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
}

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.