Gl.ib.ly

(glibly); Just another techie blog.

Setting Google search language in Firefox 3.5 on the Mac

Posted by Tariq • Wednesday, July 29. 2009 • Category: Tidbits
While traveling around the place I have been highly annoyed at the Firefox search box's default behavior for Google search. While in the Middle East it shows me RTL pages in Arabic. Well you can easily fix this on the Mac!

Just open the file /Applications/Firefox.app/Contents/MacOS/searchplugins/google.xml in an editor. I normally use vim, so: vim /Applications/Firefox.app/Contents/MacOS/searchplugins/google.xml or you could let your OS decide open /Applications/Firefox.app/Contents/MacOS/searchplugins/google.xml at the terminal.

You should see something like:

...
<Url type="text/html" method="GET" template="http://www.google.com/search">
  <Param name="q" value="{searchTerms}"/>
  <Param name="ie" value="utf-8"/>
  <Param name="oe" value="utf-8"/>
  <Param name="aq" value="t"/>
  <!-- Dynamic parameters -->
  <Param name="rls" value="{moz:distributionID}:{moz:locale}:{moz:official}"/>
  <MozParam name="client" condition="defaultEngine" trueValue="firefox-a" falseValue="firefox"/>
</Url>
...


We change this to:

...
<Url type="text/html" method="GET" template="http://www.google.com/search">
  <Param name="q" value="{searchTerms}"/>
  <Param name="ie" value="utf-8"/>
  <Param name="oe" value="utf-8"/>
  <Param name="aq" value="t"/>
  <!-- Stop Google from thinking we read anything but English -->
  <Param name="hl" value="en"/>
  <!-- Dynamic parameters -->
  <Param name="rls" value="{moz:distributionID}:{moz:locale}:{moz:official}"/>
  <MozParam name="client" condition="defaultEngine" trueValue="firefox-a" falseValue="firefox"/>
</Url>
...


You can change this to any language (just change hl's value) or even country specific languages, like en_GB. When you finish editing save the file and restart Firefox (⌘Q). When using the search box you should now only see results in English.

Defined tags for this entry: , , , , , , ,
Vote for articles fresher than 90 days!
Current karma: 5 of 5, 3 vote(s)
Bookmark Setting Google search language in Firefox 3.5 on the Mac  at del.icio.us Digg Setting Google search language in Firefox 3.5 on the Mac Bloglines Setting Google search language in Firefox 3.5 on the Mac Technorati Setting Google search language in Firefox 3.5 on the Mac Fark this: Setting Google search language in Firefox 3.5 on the Mac Bookmark Setting Google search language in Firefox 3.5 on the Mac  at YahooMyWeb Bookmark Setting Google search language in Firefox 3.5 on the Mac  at Furl.net Bookmark Setting Google search language in Firefox 3.5 on the Mac  at blogmarks Stumble It!

0 Trackbacks

  1. No Trackbacks

3 Comments

Display comments as (Linear | Threaded)
  1. hi there how did you edit the google.xml
  2. Somehow Firefox prevents you from editing search XML's. After they are edited, the plugin gets disabled. So how do you circumvent this weird FF behaviour?
  3. Hi Bert,

    Haven't seen the behavior you speak of, I can edit /Applications/Firefox.app/Contents/MacOS/searchplugins/google.xml without any issues; however, you may need to repeat on updates -- not sure.

    Tariq

Add Comment


Standard emoticons like :-) and ;-) are converted to images.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

You can use [geshi lang=lang_name [,ln={y|n}]][/geshi] tags to embed source code snippets.