Automatic language detection of the browser wrong language de-lu /de-de

General questions regarding the use of languages in Joomla! 3.x.

Moderators: infograf768, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Post Reply
kitan
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Thu Aug 10, 2017 1:16 pm

Automatic language detection of the browser wrong language de-lu /de-de

Post by kitan » Sun Feb 03, 2019 9:19 am

I have just tested the automatic language selection and found errors in Firefox.

It's about the German languages de-at, de-de, de-li, de-lu

I did a complete reinstallation. I installed all languages. Then I selected automatic browser language detection in the language plugin.

Deleted the entire browser history to simulate a first visit.

And the first time you open the page you always end up with the wrong language.

In the browser is set in each case de-de

If I open the page for the first time with Chrome, then I really land on de-de.

But Firefox opens the language de-lu for Luxembourg instead of de-de.

Where is the error?

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 37265
Joined: Sat Apr 05, 2008 9:58 pm

Re: Automatic language detection of the browser wrong language de-lu /de-de

Post by Webdongle » Sun Feb 03, 2019 10:53 am

Have you checked the default language of Firefox? If has the habit of installing with the wrong (or no) last two letters.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"The definition of insanity is doing the same thing over and over again, but expecting different results": Albert Einstein

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 18856
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Automatic language detection of the browser wrong language de-lu /de-de

Post by infograf768 » Sun Feb 03, 2019 11:11 am

Look at your Firefox language preferences.
Screen Shot 2019-02-03 at 12.09.52.png
Is de-de present?
You do not have the required permissions to view the files attached to this post.
Jean-Marie Simonet / infograf · http://www.info-graf.fr
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

kitan
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Thu Aug 10, 2017 1:16 pm

Re: Automatic language detection of the browser wrong language de-lu /de-de

Post by kitan » Mon Feb 04, 2019 8:04 am

Hello folks and thanks for your answers.

You're right, in Firefox German is only with [de] and not with [de-de]

But since it's a reinstallation of Firefox, I'm worried that users won't understand why they're being shown the wrong language.

On other pages I call up, the correct language is displayed.

But now I see that these pages only offer one language for the German or French language, for example.

So I will have to think about whether I really offer de-de, de-at, de-ch, de-li, de-lu. Or just one language.

How do you see that?

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 37265
Joined: Sat Apr 05, 2008 9:58 pm

Re: Automatic language detection of the browser wrong language de-lu /de-de

Post by Webdongle » Mon Feb 04, 2019 1:41 pm

It's a common problem with firefox. If it's download from places like https://mozilla-firefox.en.softonic.com/download and not the specific language page like https://www.mozilla.org/en-GB/firefox/new/ ... then it seems to set default as the first 2 letters not the last two.

Came across that problem when installing Joomla a few years ago when installing Joomla. infograf768 pointed out why and I changed the browser setting and Joomla install defaulted tothe correct default language. Not sure if (when visitors browser are set incorrectly) the problem can be overcome on visiting browsers.

I suggest that you carry on as normal and let your visitors view it in the language they have set.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"The definition of insanity is doing the same thing over and over again, but expecting different results": Albert Einstein

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 18856
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Automatic language detection of the browser wrong language de-lu /de-de

Post by infograf768 » Tue Feb 05, 2019 6:54 am

Also, Joomla never promesses that choosing Browser settings will always work.
It will just try to as the tip righfully states.
Screen Shot 2019-02-05 at 07.52.28.png
You do not have the required permissions to view the files attached to this post.
Jean-Marie Simonet / infograf · http://www.info-graf.fr
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

kitan
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Thu Aug 10, 2017 1:16 pm

Re: Automatic language detection of the browser wrong language de-lu /de-de

Post by kitan » Tue Feb 05, 2019 11:30 am

Thanks, guys. Yes it seems that Firefox only asks for the first 2 letters of a new installation.

But then I wonder why the languages are not changed. As follows:

de-li too li-de

de-lu too lu-de

da-at too at-de

en-gb too gb-en

en-us too us-en

But that's the way it is and most people use chrome. And where the wrong language appears it can changed by language selection. Not really user-friendly.

But my opinion is, this problem is a browser specific problem. I will end the topic and hope Firefox changes it. It would have been better to change them as described above.

Thanks guys.

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 18856
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Automatic language detection of the browser wrong language de-lu /de-de

Post by infograf768 » Thu Feb 07, 2019 6:37 am

the possible lang tags you post above make no sense.
I explain:
In a language tag, the first group of letters concerns the language itself and the second group concerns the country code.

de is the language
li is the country code for Luxemburg

de-li is a variant of the German language for Luxemburg.
Jean-Marie Simonet / infograf · http://www.info-graf.fr
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

milenaR
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Mon May 13, 2019 11:01 am

Re: Automatic language detection of the browser wrong language de-lu /de-de

Post by milenaR » Mon May 13, 2019 11:13 am

Hi!

Have you this problem with all languages or only with German?
I can't find a similar issue on my browser (I have downloaded Mozilla here 2 weeks ago: https://rocketfiles.com/windows/browser ... la-firefox), maybe they already fixed this bug?
Now I have version 67.0 Beta 15, maybe it helps.

And I didn't agree, Mozilla is really user-friendly, especially with Windows.


Post Reply

Return to “Language - Joomla! 3.x”