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
|
|
|
 |
|