Search with Google in user's language

Registered by TheCaméléon

The Google plug-in always uses Google English. It may be a good idea to adapt it to user's native language.
I think it's easy to fix. In the python file of the plug-in, just add "&hl=LN" in Google api url (3 variables are to be changed).
You may get the LN (language) easily. It's (often??) 2 letters long (en, fr, it, ...).

Blueprint information

Status:
Complete
Approver:
None
Priority:
Undefined
Drafter:
None
Direction:
Needs approval
Assignee:
None
Definition:
Approved
Series goal:
None
Implementation:
Implemented
Milestone target:
None
Started by
Thiago Teixeira
Completed by
Thiago Teixeira

Related branches

Sprints

Whiteboard

[tvst 2010-06-27]

This is implemented in the bzr trunk and will be deployed onto the PPA tonight with version 0.9.117

-------------------------------
[TheCaméléon 28-06-2010]

I saw that the plug-in uses "&lr=lang_fr" for French. This makes Google search results which are WRITTEN in French. Wouldn't it be better to use "&hl=fr" which is the same as using "http://google.FR", and so NOT only french-written results, but uses google "localized" website ?

-------------------------------
[tvst 29-06-2010]

Ok, this is now fixed in the bzr trunk. Now there are two Google plugins:

* the first searches in *all* languages, but goes to Google's localized page when clicked

* the second searches only in the system's language (and, of course, also goes to Google's localized page when clicked)

This way, people can just pick whichever they want -- or both, even :)

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.