Browser language detection

This forum includes all questions and reports related the Joom!Fish core extension. This includes all related and with the main package distributed extensions such as the JFRounter, Admin Translation Module, Search Plugins or the Language Selection Module.

We do not support version 1.7/1.8 anymore. You are strongly advised to upgrade your site to the latest Joomla and JoomFish extension
Forum rules
Please visit the Documentation section first. Especially take a look at the Installation issues and the FAQ document.

Before posting, don't forget to search the forums.

If you still have issues, start a topic and include as much information as possible:

First of all, check if you are running the latest available version of Joomla! (1.5.20) and Joom!Fish (2.0.4). Posts for issues, where both systems are not updated, will be ignored.

We need the following at least (you can find this in your Joomla! backend under help > system info):

* PHP version (e.g. 5.2.5). Note: The support for PHP4 is discontinued.
* Joomla! version
* Joom!Fish version
* Web Server software (Apache or IIS with version number if possible)
* Server Operating system (e.g. Linux, Windows, Solaris, Darwin ...)
* Webserver to PHP interface (e.g. apache2handler, cgi-fcgi)
* Database version
* memory_limit from your phpinfo

Please enable error reporting and include any error messages in your posting.

Finally, please describe the steps required to recreate the problem and also please enable error reporting and give us any error messages generated.

Browser language detection

Postby sylrob on Tue Jul 17, 2012 12:41 pm

Good Morning,
PHP 5.2.14
Joomla 1.5.14
Joomfish 2.0.4
IIS 6.0
Windows server 2003
FastCGI

My site as French (fr-FR)as default language and the second language is English (en-GB), I tested all the page on my site in french and I switch to English with the Right corner language option and everything is working perfectly.

My only problem is that when a user with (en-GB) in the language option of his internet explorer (and surely all other browser I only tested IE) enter our site, the site is always in french.So the language browser detecvtion option in JFROUTER don't seem to work properly or I missed something.

1- I'm using SH404SEF
2- I check the order for JFROUTER (-101) and JFDATABASE (-102) the yseem's ok
3- I check STATE in Joomfish control panel everything is GREEN and OK
4- The option selected in JFROUTER are:
Enable Language detection = YES
Language detection for new visitor = Browser settings
Use 302 = NO
Save user language in a cookie = YES
USE SEF prefix or Subdomains = SEF prefis is selected
SEF PRefix Francais= fr
English = en

As a test I clear the cache and cookies in my internet explorer, I chech the languages setting in my internet option and its English (United Kingdom( [en-GB].

When I go to the site http://www.datadis.com, it is displayed in french and I have the language button to switch to the English version ?

Any help will be appreciated !

Best REgards,

Sylvain
sylrob
Newbee
 
Posts: 5
Joined: Mon Jul 16, 2012 8:17 pm

Re: Browser language detection

Postby quodo on Tue Jul 17, 2012 1:06 pm

You really need to update Joomla to the latest version, currently 1.5.26: http://www.joomla.org/download.html.

Isn't sh404SEF overruling the JoomFish settings? Don't really know how to test this, I don't use sh404SEF, but I've seen several posts where using third party SEF components combined with JoomFish give "unexpected" results... Is there perhaps a sh404SEF router plugin ordered higher than the JoomFish router plugin?
quodo
Contributor
 
Posts: 556
Joined: Wed Feb 03, 2010 3:08 pm

Re: Browser language detection

Postby sylrob on Tue Jul 17, 2012 2:48 pm

First thank you for the answer !

Second I'm not a JOOMLA expert :). I'm trying to solved that problem, and I just began to study how JOMMLA and PLUGINS works.

Third, in the plugin extension the first plugin loaded is JFROUTER id -101 and after taht I have JFDATABASE
id -100, the first SH404SEF plugin loaded in system type plugin is Sh404sef- System mobile template switcher.

I was under the impression that JFROUTER work with SEF plugin if you active the SEF option in it, I'll do some research to see if it's the case !.
In the mean time if you have another idea, let me know !

Best Regards,

Sylvain
sylrob
Newbee
 
Posts: 5
Joined: Mon Jul 16, 2012 8:17 pm

Re: Browser language detection

Postby sylrob on Tue Jul 24, 2012 8:00 pm

Good Afternoon,

After a lot of test I decided to update:
Joomla 1.5.26
SH404SEF 2.1.7.761
Joomfish 2.2.3

To be able to have the browser language detection I have to enable the 302 redirection option in JFROUTER. But my problem is that my page are not reachable (error 404) because th URL is translated to en.thml and fr.html, and by default SH404SEF use /en/ and /fr/ for the URL.IF I disabled 302 redirection in JFROUTER and disable URL optimisation in SH404SEF the site run smoothly and language detection work perfectly I just have a couple of image that don't appear in some URL but I'll have to check if the link is the real path or a translate one !

I tested different setting and nothing work as expected. Is there any step by step documentation to follow to have Joomfish and SH404SEF work properly together.

Best Regards,

Sylvain
sylrob
Newbee
 
Posts: 5
Joined: Mon Jul 16, 2012 8:17 pm

Re: Browser language detection

Postby quodo on Wed Jul 25, 2012 12:12 pm

sylrob wrote:To be able to have the browser language detection I have to enable the 302 redirection option in JFROUTER.
Is that true? Just asking because I have Enable Language determination set to Yes and Use 302 redirect set to No and it's working. However I don't have sh404SEF.

sylrob wrote:Is there any step by step documentation to follow to have Joomfish and SH404SEF work properly together.
Not that I know of. JoomFish and sh404SEF both are complicated extension that do quite some "magical interaction" with Joomla. The "System - jfrouter" description does say "When activated this plugin provides language determination and basic routing. Must be enabled unless you are using a SEF plugin that performs the same tasks." which makes me wonder if sh404SEF has such a SEF plugin and the JoomFish plugin should then be disabled?

Sorry, don't know how to help here :( I hope you get some response from people who use both sh404SEF and JoomFish.
quodo
Contributor
 
Posts: 556
Joined: Wed Feb 03, 2010 3:08 pm

Re: Browser language detection

Postby sylrob on Wed Jul 25, 2012 1:12 pm

Good Morning,

If I don't enable SH404SEF, I don't have to enable 302 redirection it works correctly !. If I enable SH404SEF and I want the language detection to work I have to enable 302 redirection in JFROUTER, but my site don't work properly I have a lot of 404 error which is normal du to the URL translation made by JFROUTER.

Thank's for your precious comment, I'll take a 1 year subscription with anything digital to just probably have a BUG fix in SH404SEF we will see ! :)

Best Regards,

Sylvain
sylrob
Newbee
 
Posts: 5
Joined: Mon Jul 16, 2012 8:17 pm

Re: Browser language detection

Postby quodo on Fri Jul 27, 2012 1:04 pm

According to this thread: http://anything-digital.com/forum/exten ... tml#p29710 the problem was solved by updating sh404SEF.
quodo
Contributor
 
Posts: 556
Joined: Wed Feb 03, 2010 3:08 pm

Re: Browser language detection

Postby sylrob on Mon Jul 30, 2012 11:29 am

Good Morning,

It is not completely solved. I still have redirection problem and I'll work on it this week. For now I'm not sure if the problem come from JOOMFISH or SH404SEF. I'll keep you inform.

Thank you,

Sylvain
sylrob
Newbee
 
Posts: 5
Joined: Mon Jul 16, 2012 8:17 pm


Return to Joom!Fish 2.0.x Core [deprecated]

Who is online

Users browsing this forum: No registered users and 1 guest