Bug 270023 - Bad language detection (Arabic instead of Latinamerican Spanish)
Summary: Bad language detection (Arabic instead of Latinamerican Spanish)
Status: RESOLVED FIXED
Alias: None
Product: rekonq
Classification: Applications
Component: general (show other bugs)
Version: 0.7.0
Platform: Chakra Linux
: NOR normal
Target Milestone: 0.8
Assignee: Andrea Diamantini
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-03 19:18 UTC by Luciano Leveroni
Modified: 2011-10-31 11:26 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luciano Leveroni 2011-04-03 19:18:56 UTC
Version:           0.7.0 (using KDE 4.6.1) 
OS:                Linux

When entering facebook.com in Rekonq, the arabic version of facebook is shown by default instead latinamerican spanish. My system locale is es_AR (Spanish - Argentina) and in other browsers this problem does not occur (tested in Firefox and Chromium), the site is shown in the correct language.
Something that maybe is causing problems: AR can mean ARabic and ARgentina?

Reproducible: Didn't try

Steps to Reproduce:
1. Set local in es_AR (Maybe with another latinamerican country the problem also occurs)
2. Clear any settings of Rekonq, cookies, etc.
3. Enter facebook.com

Actual Results:  
The page is shown in Arabic instead of Latinamerican Spanish.

Expected Results:  
It should be in latinamerican spanish, as I live in Argentina (es_AR).
Comment 1 Andrea Diamantini 2011-04-04 10:15:39 UTC
While we'll try to fix this, you can try learning Arabic :D
Comment 2 Steven Sroka 2011-07-24 01:27:12 UTC
I can confirm this. Facebook is French for me. Even though I am Canadian, I can't read French :(

rekonq 0.7.0
KDE 4.6.5
Comment 3 Shaun Hunter 2011-08-22 02:21:53 UTC
I have the same problem execpt I live in Canada (en_CA) and get Catalan. This problem is not limited to Facebook, all of Google's services are effected by this for me. Some sites even atomatically translate for me. sabayonlinux.org does this and the kdeuserbase site also does this.

I have tried Firefox, Chrome, Konquerer and Arora on the same sites without issue.
This leads me to belive that it is a problem with Rekonq.
Comment 4 Andrea Diamantini 2011-08-23 09:27:10 UTC
I hope/fear this depends just on QtWebKit. Let's see if will be fixed in the upcoming 2.2 release.
Shaun, you were talking about konqueror/khtml, right?
Comment 5 Shaun Hunter 2011-08-23 13:18:10 UTC
I was talking about Konqeror/KHTML but I tested the sites I mentiond earlier with the webkit engine and had no problems. I expected this as Arora uses the same webkit libraries as Rekonq and Konquereor/webkit.

I also went though Rekonq's config files searching for a work around. I found a promising line in the rokonqrc in my ~/.kde/share/config. 


[HTML Settings]
AutomaticDetectionLanguage=1

I changed it to 0, nothing happend. Do you have any suggestions on anouther possible place to look?
Comment 6 Alvaro Soliverez 2011-09-07 12:31:08 UTC
I think the problem is Rekonq is using the last 2 letters of the locale code to send as a language, but that's wrong when it's a variation of the language, like en_CA or es_AR.
People are getting Catalan (CA) or Arabic (AR) instead.
Comment 7 Shaun Hunter 2011-09-14 07:37:35 UTC
I just upgraded to Rekonq 0.7.57 via the rekonq-ppa on Launchpad and this issuse has been resovled. Thank you, I've been using Konquerer for almost two weeks. Now I can not look at it again for as long as possible.

You guys are the best!

Kubuntu 11.04_x64
KDE 4.7
Comment 8 Shaun Hunter 2011-09-14 17:59:52 UTC
I spoke to soon, no change. It must have been because I was logged in with Konquerer that my locale was detected properly. 

This problem is still in Rekonq :(
Comment 9 Andrea Diamantini 2011-09-14 21:00:04 UTC
Targetting 0.8...
Comment 10 Jaxxed 2011-09-23 02:54:55 UTC
Same bug for me.  For me this affects facebook. google and other very, very important sites that feed me my list of jpegs of cats with funny hats.

I am also en_ca and get Catalan Spanish as my language.  No system language selection connection
(0.7.0) - I will try to use a more recent version.

I actually cannot use as my principle browser anymore until this is solved.
Comment 11 Andrea Diamantini 2011-10-03 17:01:29 UTC
Git commit f8594405df1225a0a90820e701760042c09cf91b by Andrea Diamantini.
Committed on 03/10/2011 at 19:04.
Pushed by adjam into branch 'master'.

use language, NOT country!!!

This should fix bad language detection. Please, let me know about

CCBUG: 270023

M  +7    -4    src/networkaccessmanager.cpp

http://commits.kde.org/rekonq/f8594405df1225a0a90820e701760042c09cf91b
Comment 12 Shaun Hunter 2011-10-03 19:11:35 UTC
switching to en_US or en _UK changes nothing. I haven't tried changing my
system locale to the US instead of Canada. I will if you think it my helpyou
find the bug but please note that Rekonq is the only browser with this issue
on my system. Arora and Konquerer/webkit, which use the same QTWebKit
library work fine.

On Mon, Oct 3, 2011 at 11:01 AM, Andrea Diamantini <adjam7@gmail.com> wrote:

> https://bugs.kde.org/show_bug.cgi?id=270023
>
>
>
>
>
> --- Comment #11 from Andrea Diamantini <adjam7 gmail com>  2011-10-03
> 17:01:29 ---
> Git commit f8594405df1225a0a90820e701760042c09cf91b by Andrea Diamantini.
> Committed on 03/10/2011 at 19:04.
> Pushed by adjam into branch 'master'.
>
> use language, NOT country!!!
>
> This should fix bad language detection. Please, let me know about
>
> CCBUG: 270023
>
> M  +7    -4    src/networkaccessmanager.cpp
>
> http://commits.kde.org/rekonq/f8594405df1225a0a90820e701760042c09cf91b
>
> --
> Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You are on the CC list for the bug.
>
Comment 13 Andrea Diamantini 2011-10-04 07:30:45 UTC
(In reply to comment #12)
> switching to en_US or en _UK changes nothing. I haven't tried changing my
> system locale to the US instead of Canada. I will if you think it my helpyou
> find the bug but please note that Rekonq is the only browser with this issue
> on my system. Arora and Konquerer/webkit, which use the same QTWebKit
> library work fine.

Yes, I'm now perfectly aware about. Just please explain me what should change from en_US to en_UK??

Please, check the "locale" settings in your system (systemsettings -> locale) and tell me:
- Country
- available languages
- preferred language

then open rekonq facebook.com and tell me what language it is translated, thanks.
Comment 14 Shaun Hunter 2011-10-07 19:37:47 UTC
I just upgraded to Rekonq 0.7.92 via the rekonq-ppa on Launchpad and this
issue seems to have been resovled this time.

Thank you
Comment 15 Andrea Diamantini 2011-10-10 13:26:36 UTC
Can someone else please confirm this bugs has been fixed, so to definitely close this?
Many thanks for.
Comment 16 tomas nackaerts 2011-10-18 13:06:23 UTC
mmm, using rekonq 0.8.0 installed from rekonq-ppa and i'm stil having this problem. maybe I need to remove some configuration files first?

i checked the locale settings:
country: belgium
available languages: English, dutch
prefered: dutch
Comment 17 Phantom 2011-10-22 23:07:42 UTC
In my system work fine.

www.facebook.com: in english.
www.google.com: redirect to argentina version
www.yahoo.com: redirect to argentina version

ArchLinux
Rekonq: 0.8
Local: es_AR