In this case, probably is better do browse code set the language,<div>using the translations for this is a recipe to have more problems.</div><div><br></div><div>Gonzalo <br><br><div class="gmail_quote">On Sat, Apr 28, 2012 at 8:55 AM, Eduardo H. Silva <span dir="ltr"><<a href="mailto:hoboprimate@gmail.com" target="_blank">hoboprimate@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">2012/4/28 Manuel Kaufmann <<a href="mailto:humitos@gmail.com">humitos@gmail.com</a>>:<br>
<div class="im">> This string is not translatable, so it's removed from the list.<br>
</div>I really think it should be "translated", to show a localized google<br>
page. This localized page not only has its interface localized, but<br>
also lets you search only for sites of the specific language.<br>
<br>
You add hl=[language-code]& , for example:<br>
<a href="http://www.google.com/search?hl=pt-PT&q=%s&ie=UTF-8&oe=UTF-8" target="_blank">http://www.google.com/search?hl=pt-PT&q=%s&ie=UTF-8&oe=UTF-8</a><br>
<br>
This should probably be explained in a developers commentary to the<br>
string in the PO file, so translators know it.<br>
<span class="HOEnZb"><font color="#888888"><br>
Eduardo<br>
</font></span><div class="HOEnZb"><div class="h5">><br>
> Signed-off-by: Manuel Kaufmann <<a href="mailto:humitos@gmail.com">humitos@gmail.com</a>><br>
> ---<br>
>  browser.py |    2 +-<br>
>  1 files changed, 1 insertions(+), 1 deletions(-)<br>
><br>
> diff --git a/browser.py b/browser.py<br>
> index 259d888..e628848 100644<br>
> --- a/browser.py<br>
> +++ b/browser.py<br>
> @@ -136,7 +136,7 @@ class TabbedView(BrowserNotebook):<br>
>         if soup_uri is None and not _NON_SEARCH_REGEX.match(url):<br>
>             # If the string doesn't look like an URI, let's search it:<br>
>             url_search = \<br>
> -                _('<a href="http://www.google.com/search?q=%s&ie=UTF-8&oe=UTF-8" target="_blank">http://www.google.com/search?q=%s&ie=UTF-8&oe=UTF-8</a>')<br>
> +                '<a href="http://www.google.com/search?q=%s&ie=UTF-8&oe=UTF-8" target="_blank">http://www.google.com/search?q=%s&ie=UTF-8&oe=UTF-8</a>'<br>
>             query_param = Soup.form_encode_hash({'q': url})<br>
>             # [2:] here is getting rid of 'q=':<br>
>             effective_url = url_search % query_param[2:]<br>
> --<br>
> 1.7.7.6<br>
><br>
> _______________________________________________<br>
> Sugar-devel mailing list<br>
> <a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
> <a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
</div></div></blockquote></div><br></div>