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 class="Apple-style-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 class="Apple-style-span" face="&#39;courier new&#39;, monospace"><br></font></div><div><span class="Apple-style-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 class="Apple-style-span" style="font-family: &#39;courier new&#39;, monospace; font-style: italic; "> <span class="Apple-style-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">2009/12/8 AxiNat <span dir="ltr">&lt;<a href="mailto:tibabenfortlapalanca@gmail.com">tibabenfortlapalanca@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi all!<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></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="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<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>_______________________________________________<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>Cédrick<br>
</div>