I just completed a multi language site with information in 10 languages for
30 countries.
This is the code I put at the top of the page to get the browser to the
correct encoding for the language I want.
Then I have if blocks with html code in them and it displays the block of
text in the selected language depending on the country selected.


<head>
<title>EAP International - CSFB</title>
<@! Assign user$country var on change>
<@ifempty value="<@ARG country>">
<@else>
<@assign name="country" value="<@ARG country>" scope="user" >
</@if>

<@if expr="@@user$country='Japan'">
<@comment> Japanese </@comment>
<meta http-equiv="Content-Type" content="text/html; charset=x-JIS-jp">
<@elseif expr="@@user$country='Czech'">
<@comment> Russian </@comment>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<@elseif expr="@@user$country='Korea'">
<@comment> Korian </@comment>
<meta http-equiv="Content-Type" content="text/html; charset=ks_c_5601-1987">
<@else>
<@comment> US & others </@comment>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<@endif>


Hope this helps.

Troy Sosamon
Denver, Co.

-----Original Message-----
From: Ferr� A&T - Giorgio Tassistro [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 04, 2004 2: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&#228;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

Reply via email to