<P>Dear Michel,</P>
<P>So If I read well I should combine the following Chinese methods to obtain 'it', 'fr', 'de' ...etc.</P>
<P> x isNil ifTrue: [<BR> x := 0. y := 0.<BR> html script: 'window.location.href="' , html context actionUrl asString ,<BR> '&' , (html callbacks registerCallback: [ :v | x := v asNumber]) ,<BR> '=" + screen.width + "' ,<BR> '&' , (html callbacks registerCallback: [ :v | y := v asNumber]) ,<BR> '=" + screen.height' ].<BR> html render: x; text: ' x '; render: y</P>
<P> </P>
<P><!-- PLACE IN HEADER --></P>
<P><SCRIPT LANGUAGE="JavaScript"> <BR><!-- Begin <BR>/*<BR>Find free scripts and get free help:<BR> <A href="http://www.able2know.com">www.able2know.com</A> <BR>*/<BR>if (navigator.appName == 'Netscape') <BR>var language = navigator.language; <BR>else <BR>var language = navigator.browserLanguage; <BR>if (language.indexOf('en') > -1) document.location.href = 'english.html'; <BR>else if (language.indexOf('de') > -1) document.location.href = 'german.html'; <BR>else if (language.indexOf('it') > -1) document.location.href = 'italian.html'; <BR>else <BR>document.location.href = 'defaultpage.html'; <BR>// End --> <BR></script> </P>
<P>Thanks,..</P>
<P>Lucky ME !!!</P>
<P>@+Maarten,</P>
<P> </P>
<P>> Message du 25/07/07 16:30<BR>> De : "Bany, Michel" <MBANY@CINCOM.COM><BR>> A : "Maarten MOSTERT" <MAARTEN.MOSTERT@WANADOO.FR>, "Seaside - general discussion" <SEASIDE@LISTS.SQUEAKFOUNDATION.ORG><BR>> Copie à : <BR>> Objet : RE: [Seaside] Language Detection<BR>> <BR>>
<META content="MSHTML 6.00.6000.16481" name=GENERATOR></P>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #ff0000 2px solid">
<DIV dir=ltr align=left><FONT face="Trebuchet MS" color=#0000ff size=2><SPAN class=305222814-25072007>Hi Maarten.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face="Trebuchet MS" color=#0000ff size=2><SPAN class=305222814-25072007>You can pull any data you want from the browser using a java-script in a redirect</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face="Trebuchet MS" color=#0000ff size=2><SPAN class=305222814-25072007>See </SPAN></FONT><FONT face="Trebuchet MS" color=#0000ff size=2><A href="http://lists.squeakfoundation.org/pipermail/seaside/2007-July/012857.html">http://lists.squeakfoundation.org/pipermail/seaside/2007-July/012857.html</A></FONT></DIV>
<DIV dir=ltr align=left><FONT face="Trebuchet MS" color=#0000ff size=2><SPAN class=305222814-25072007>HTH</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face="Trebuchet MS" color=#0000ff size=2><SPAN class=305222814-25072007>Michel.</SPAN></FONT></DIV><BR>>
<BLOCKQUOTE dir=ltr style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> seaside-bounces@lists.squeakfoundation.org [mailto:seaside-bounces@lists.squeakfoundation.org] <B>On Behalf Of </B>Maarten MOSTERT<BR>> <B>Sent:</B> mercredi, 25. juillet 2007 16:23<BR>> <B>To:</B> Seaside - general discussion<BR>> <B>Subject:</B> [Seaside] Language Detection<BR>> </FONT><BR>> </DIV>
<DIV></DIV>
<P>> Hi,</P>
<P>> Is there a way in seaside to detect the browsers local language and adapt so accordingly ?</P>
<P>> Rgrds,</P>
<P>> @+Maarten,</P>
<P>> </P>
<P>> </P>
<P>> </P>
<P>> </P>
<P>> </P></BLOCKQUOTE></BLOCKQUOTE>