|
Giorgio, There is no C style switch/case statement
in Witango. It would be nice though, I hope they include it someday. I
implemented a switch/case years ago with custom tags when they were first
developed. We built a multi-language application once.
We did it something like this. Say you have 100 different text messages in 4
languages. You put them all in a 100 x 4 domain scope array,
domain$textMessages. When the user picks a language you set a user scope
variable, user$language, to 1,2,3 or 4. Then you can display message 42 in
language 3 (or any other combination) with one @var tag. Ie <@var domain$textMessages[<@var local$messageNum>,<@var
user$language>]> This way you don’t need to put the
text in long if/elseif constructs. The messages can all be stored in a database
or in a text file where they can be spell checked and grammar checked and
corrected without touching your code. Hope this helps Dave Shelley -----Original
Message----- Hi all, I have a little problem
with a multi-language website. See this sample: <@ASSIGN
user$Lang "DE"> . . <@IF
"@@user$lang='UK'"> . . </script> If the language is deutch
(lang='DE') the windows builds with "alert()" is "Wählen ....
etc" I choosed this
alternative method : alert(unscape('<@VAR
TextChoose encoding=URL>')); But is there another
witango method ? Is There a
"switch/case like C" method that i don't know ? Thanks Best regards Giorgio ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf |
- Witango-Talk: multi-language website Ferr� A&T - Giorgio Tassistro
- Re: Witango-Talk: multi-language we... Dave Shelley
- Re: Witango-Talk: multi-languag... Ferr� A&T - Giorgio Tassistro
- Re: Witango-Talk: multi-lan... Scott Cadillac
- Re: Witango-Talk: multi... Ferr� A&T - Giorgio Tassistro
- RE: Witango-Talk: ... Ben Johansen
- Re: Witango-Ta... Christian Platt
- Re: Witang... Ferr� A&T - Giorgio Tassistro
- Re: Witango-Talk: multi-lan... Fergal Donlon
- Re: Witango-Talk: multi... Ferr� A&T - Giorgio Tassistro
- Re: Witango-Talk: ... [EMAIL PROTECTED]
- RE: Witango-Talk: multi-language we... Troy Sosamon
