Hi,<br><br>Thank you very much, Lukas&#39; solution is working :)<br><br>Cédrick, I forgot to add the string to be translated in the e-mail, but I was using it in the original code hehe<br><br>Bernat.<br><br><div class="gmail_quote">

2009/12/8 Cédrick Béler <span dir="ltr">&lt;<a href="mailto:cdrick65@gmail.com">cdrick65@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Hi,<div><br></div><div>Lukas solution is far more better. But Soup should work too. Did you pass the string to translate because <span style="font-family: &#39;courier new&#39;,monospace;"><a href="http://translate.google.com/#en%7Cca%7C" target="_blank">http://translate.google.com/#en|fr|</a> is the default url and translation is done by &quot;ajax&quot; on the fly. Otherwise, the string to translate is encodeed at the end of the url. </span></div>


<div><font face="&#39;courier new&#39;, monospace"><br></font></div><div><span style="font-family: &#39;courier new&#39;,monospace;">For instance, try with <a href="http://translate.google.com/#en%7Cca%7C" target="_blank">http://translate.google.com/#en|f</a>r|a%20string%20to%20translate</span><span style="font-family: &#39;courier new&#39;,monospace; font-style: italic;"> <span style="font-family: arial; font-style: normal;">?</span></span></div>


<div><br></div><div>hth,</div><div><br></div><div>Cédrick</div><div><br><div class="gmail_quote"><div class="im">2009/12/8 AxiNat <span dir="ltr">&lt;<a href="mailto:tibabenfortlapalanca@gmail.com" target="_blank">tibabenfortlapalanca@gmail.com</a>&gt;</span><br>


</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi all!<div class="im"><br><br>I&#39;m developing a Seaside app that needs to retrieve a translation from google translator, so I thought I&#39;d use Soup.<br>


<br>So i go like: <br><br><div style="margin-left: 40px;"><i style="font-family: courier new,monospace;">aSoup := Soup fromUrl: &#39;<a href="http://translate.google.com/#en%7Cca%7C" target="_blank">http://translate.google.com/#en|ca|</a>&#39;</i><br>




</div><br>but i find that the fetched string is a bit different from the actual source code i can see in Mozilla...<br><br><div style="margin-left: 40px;"><i style="font-family: courier new,monospace;">results := aSoup findAllTags: </i><i style="font-family: courier new,monospace;">[:aTag | <br>




</i><div style="margin-left: 40px;"><i style="font-family: courier new,monospace;">aTag name = &#39;span&#39; and: <br></i><div style="margin-left: 40px;"><i style="font-family: courier new,monospace;">[(aTag attributeAt: &#39;id&#39;) asString beginsWith: &#39;result_box&#39;]].</i></div>


</div></div></div></blockquote><div><br></div><div>you can also search for span whose title are each line you want to translate.</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div class="im">
<div style="margin-left: 40px;"><div style="margin-left: 40px;"><div style="margin-left: 40px;"><br>

</div></div></div><br><span style="font-family: courier new,monospace;">results</span> contains the correct tag, but the tag contains an empty string, instead of the translation (it holds the translated string when I check the HTML source in firefox)<br>




<br>Any ideas? I find it really awkward, I&#39;ve worked with soup before and never had such problem... so I&#39;m kinda clueless.<br><br>Sorry if the question is a bit off-topic (not exactly a Seaside issue...), I just guessed that a lot of seasiders sure must have dealt with Soup quite a few times :)<br>




<br>Thanks!<br><br>Bernat Romagosa.<br>
<br></div><div class="im">_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
<br></div></blockquote></div><br><br clear="all"><br>-- <br>Cédrick<br>
</div>
<br>_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>O HAI I&#39;M IN UR FOOTER SIGNATURING UR MAILZ<br>