Hi all,
thank you very much to Fergal,Christian,Ben,Daniel and others :-)
I have now a lot of ideas to resolve my problem.
Regards

Giorgio

----- Original Message ----- 
From: "Christian Platt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, February 07, 2004 8:41 AM
Subject: Re: Witango-Talk: multi-language website


I would prefer another kind of building international Sites

Think of a set of text you store outsite your .taf as .inc Data or as
Data-Set from a database.


Could work like

@@user$language=de
...
<@INCLUDE FILE="/text/@@user$language/text.txt">
...


or you read a set of text from a database into an array an do set the text
from the array..

I guess that is much more secure against errors.


And be sure to have the text read by native speaking peaple :-)

> <@ASSIGN Text value="W�hlen sie zuerst die Anzahl der Passagieren aus">
MUST be singular
> <@ASSIGN Text value="W�hlen sie zuerst die Anzahl der Passagiere aus">



Christian Platt


Am 04.02.2004 16:50 Uhr schrieb "Ben Johansen" unter <[EMAIL PROTECTED]>:

> Try This
>
> <@ASSIGN Text value="W�hlen sie zuerst die Anzahl der Passagieren aus">
> <SCRIPT>
> var test = unescape("<@VAR Text ENCODING=URL>");
> alert(test);
> </SCRIPT>
>
> Ben Johansen - http://www.pcforge.com
> Authorized Witango & MDaemon Reseller
> Available for Witango Developement
>
>
> -----Original Message-----
> From: Ferr� A&T - Giorgio Tassistro [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 04, 2004 10:18 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Witango-Talk: multi-language website
>
> Hi Scott,
> can you check this in a Taf ?
>
> -----------------------------
> <@ASSIGN Text value="W�hlen sie zuerst die Anzahl der Passagieren aus">
> <SCRIPT>
> alert("<@VAR Text ENCODING=JAVASCRIPT>");
> </SCRIPT>
> -----------------------------
> I think that it is "witango sintax correct", and you ?
> You see the result and after say me.
>
> Thanks & Bye
>
> Giorgio
>
>
>
> ----- Original Message -----
> From: "Scott Cadillac" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, February 04, 2004 4:09 PM
> Subject: Re: Witango-Talk: multi-language website
>
>
>> Hi Giorgio,
>>
>> Shouldn't it be ENCODING=JAVASCRIPT (no hyphen)?
>>
>> Hope this helps. Cheers...
>>
>>
>>
>> -----Original Message-----
>> From: Ferr� A&T - Giorgio Tassistro <[EMAIL PROTECTED]>
>> To: <[EMAIL PROTECTED]>
>> Date: Wed, 4 Feb 2004 15:54:57 +0100
>> Subject: Re: Witango-Talk: multi-language website
>>
>>> Dave,
>>>
>>> thank you for your answer but my problem is the "translate" in
>>> Javascript of Witango Variable.
>>> If I use a special european letter like "�" witango server translate
> in
>>>  &#228 (I use encoding=Javascript)
>>> This is a real problem in Javascript code.
>>> It's a limited of witango encoding ?
>>> Bye
>>>
>>> Regards
>>>
>>> Giorgio
>>>
>>>
>>> ----- Original Message -----
>>>   From: Dave Shelley
>>>   To: [EMAIL PROTECTED]
>>>   Sent: Wednesday, February 04, 2004 3:22 PM
>>>   Subject: RE: Witango-Talk: multi-language website
>>>
>>>
>>>   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-----
>>>   From: Ferr� A&T - Giorgio Tassistro [mailto:[EMAIL PROTECTED]
>>>   Sent: February 4, 2004 4:17 AM
>>>   To: [EMAIL PROTECTED]
>>>   Subject: Witango-Talk: multi-language website
>>>
>>>
>>>
>>>   Hi all,
>>>
>>>   I have a little problem with a multi-language website.
>>>
>>>   See this sample:
>>>
>>>
>>>
>>>   <@ASSIGN user$Lang "DE">
>>>
>>>   .
>>>
>>>   .
>>>
>>>
>>>
>>>   <@IF "@@user$lang='UK'">
>>>   <@ASSIGN TextChoose "Choose before the number of passengers">
>>>   <@ELSEIF "@@user$lang='DE'">
>>>   <@ASSIGN TextChoose value="W�hlen sie zuerst die Anzahl der
>>> Passagieren aus" encoding=none>
>>>   <@ELSE>
>>>   <@ASSIGN TextChoose "E<@SQ> necessario in inserire prima i
>>> passeggeri">
>>>   </@IF>
>>>
>>>   .
>>>
>>>   .
>>>   <script language=javascript>
>>>   alert('<@VAR TextChoose encoding=Javascript>');
>>>
>>>   </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
>>>
>>>
> _______________________________________________________________________
>>> _
>>> TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
>>
>>
> ________________________________________________________________________
>> TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
>
> ________________________________________________________________________
> TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
>
>
> ________________________________________________________________________
> TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf





________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

________________________________________________________________________TO 
UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to