CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> Archive -> GotoCode Archive

 multiling. translation - finding template-content

Print topic Send  topic

Author Message
joe
Posted: 08/14/2002, 6:56 AM

hi there!

I want to create a multilingual application (asp w/templates) with CC2 (great software ... by the way).

For this reason I created a table with an english-german dictionary with phrases in it. Then I want to search-and-replace all these phrases of the table within the html template of the application.

Now my question:

Within the created asp code, the template gets loaded at the top of the program as you see below:
>'-------------------------------
>' Load HTML template for this page
>'-------------------------------
>LoadTemplate sAppPath & sTemplateFileName, "main"

Now how can I get the content of this template in order to save it in a string variable. After making my search-and-replaces within this variable, I also want to write it back to the "template-buffer". Is there a variable in the template object where I can get the data and write it back again???

Or is there another solution? (But I want to avoid to create manually a second template for the other language)

Thanks a lot!







Nicole
Posted: 08/15/2002, 2:06 AM

Joe,
I can propose the slightly different solution. It can be done in Template version only and requires 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 GetParam("language") = "eng" then
SetVar "FormCaption", "Results"
SetVar "Field1caption", "Name"
' other captions
SetVar "insert_button", "Insert"
'other buttons
SetVar "Previous", "Previous"
'other navigator captions
end if

   


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

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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