The google default search engine returns results in other than the system's language

Bug #754855 reported by André Gondim
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Translations
Invalid
Undecided
Unassigned
firefox (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: firefox

Well, my searchs result is in ca language istead my own language pt_BR, example below:

http://www.google.com/webhp?hl=chr

$ locale
LANG=pt_BR.UTF-8
LANGUAGE=pt_BR:en
LC_CTYPE="pt_BR.UTF-8"
LC_NUMERIC="pt_BR.UTF-8"
LC_TIME="pt_BR.UTF-8"
LC_COLLATE="pt_BR.UTF-8"
LC_MONETARY="pt_BR.UTF-8"
LC_MESSAGES="pt_BR.UTF-8"
LC_PAPER="pt_BR.UTF-8"
LC_NAME="pt_BR.UTF-8"
LC_ADDRESS="pt_BR.UTF-8"
LC_TELEPHONE="pt_BR.UTF-8"
LC_MEASUREMENT="pt_BR.UTF-8"
LC_IDENTIFICATION="pt_BR.UTF-8"
LC_ALL=

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: firefox 4.0~rc2+build3+nobinonly-0ubuntu2
ProcVersionSignature: Ubuntu 2.6.38-8.41-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic i686
NonfreeKernelModules: wl
Architecture: i386
Date: Fri Apr 8 14:33:51 2011
FirefoxPackages:
 firefox 4.0~rc2+build3+nobinonly-0ubuntu2
 flashplugin-installer 10.2.153.1ubuntu1
 adobe-flashplugin N/A
 icedtea-plugin N/A
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Beta i386 (20110407.1)
ProcEnviron:
 LANGUAGE=pt_BR:en
 LANG=pt_BR.UTF-8
 SHELL=/bin/bash
SourcePackage: firefox
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
André Gondim (andregondim) wrote :
Revision history for this message
Chris Coulson (chrisccoulson) wrote :

I'm not sure what issue you're trying to report here. Could you explain in more detail what you are doing?

The URL provided specifies another language in it, so it will be in the wrong language. Why are you doing that?

Changed in firefox (Ubuntu):
status: New → Incomplete
Revision history for this message
André Gondim (andregondim) wrote :

to do the search engine by default, instead of Google being in my language is Portuguese of Brazil, is in another language.

Ursula Junque (ursinha)
summary: - The google default search engine is in other language
+ The google default search engine returns results in other than the
+ system's language
Revision history for this message
Mitsuya Shibata (cosmos-door) wrote :

Reproduced in Japanese.

Procedure.
1. Open firefox in your locale(my lang code=ja).
2. Input any word and enter in top-right google search box.
3. Displayed search result, and it seems that UI is Cherokee(lang code=chr)
4. Click Google logo
5. Check URL, it is http://www.google.com/webhp?hl=chr
  But should be http://www.google.com/webhp?hl=ja

Revision history for this message
Mitsuya Shibata (cosmos-door) wrote :

I took screenshots.

Changed in firefox (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Mitsuya Shibata (cosmos-door) wrote :
Revision history for this message
André Gondim (andregondim) wrote :

Since last update, now it's ok to pt_BR language.

Revision history for this message
Chris Coulson (chrisccoulson) wrote :

Closing the Firefox task, as this isn't a browser bug

Changed in firefox (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Chris Coulson (chrisccoulson) wrote :

Oops, wrong bug. In any case, this is because your intl.accept_languages is set to the wrong value. A few people have hit this, but I can't recreate it (and we definitely don't set it to a wrong value by default). I'm not sure whether people are running a particular extension which messes this up.

Changed in ubuntu-translations:
status: New → Invalid
Revision history for this message
Mitsuya Shibata (cosmos-door) wrote :

Hi Chris,

Thank you for your information. I checked intl.accept_langages.
Problem machine: chrome://global/locale/intl.properties
Reinstalled (not problem) machine: ja, en, en-US

It seems that first three letters of "chrome" was used as
as language code. Because problem machine use "Firefox Sync"
with various machines (included Firefox Mobile beta) and
services.sync.prefs.sync.intl.accept_languages is "true",
unexpected settings might have mingled with sync data.

I re-installed 2011/04/23 daily-live, and set up Firefox
Sync with new account. It works with no problem.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.