Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I18N bug google chrome
#1
Hi!

First time Im posting here, never had an issue before, just wanted to let you know, don't know if the author of i18n is here. I assume he is.

discovered a i18n bug on google chrome, tried on mac + pc, standard out of the box installations.

procedure: using i18n on www.jema.be try changing languages and moving between pages in the upper menu.
after 2 switches, eventhough you set the language to FR, as soon as you're navigating, it jumps back to EN.

EN is the default language of this site.

Using Safari and Firefox, pc/mac, everything is ok.

any clue?

Thanks!
Vincent
Reply
#2
vinid3 Wrote:discovered a i18n bug on google chrome, tried on mac + pc, standard out of the box installations.

procedure: using i18n on www.jema.be try changing languages and moving between pages in the upper menu.
after 2 switches, eventhough you set the language to FR, as soon as you're navigating, it jumps back to EN.

Something weird happens.
http://www.jema.be/?setlang=xx returns a menu with no text instead of the default language.
What did you set as default language in the I18N pages view in the administration? english?

Please add the following code to your HTML header to allow debugging:
Code:
<!--
<?php
global $language;
echo "DEFAULT ".return_i18n_default_language()."\n";
echo "SELECTED ".@$_SESSION['language']."\n";
$acceptable = return_i18n_languages();
echo "ACCEPTABLE ".print_r($acceptable,true)."\n";
echo "PAGE ".$language."\n";
?>
-->
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
#3
Hey thanks for your reply,

yes the default language is set to english, the default one.
just added this code underneath the html header tag.

Vincent
Reply
#4
vinid3 Wrote:Hey thanks for your reply,

yes the default language is set to english, the default one.
just added this code underneath the html header tag.

Vincent

Still no idea, why this happens.
However, googling turns up the possibility that maybe .htaccess file is the problem or that you don't have a favicon.ico and http://www.jema.be/favicon.ico returns an error page instead of 404.
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
#5
favicon! waw! this sounds like a weird solution, but Ill give it a try..
htacces is the one generated by GS:

Code:
AddDefaultCharset UTF-8
Options -Indexes

# blocks direct access to the XML files - they hold all the data!
<Files ~ "\.xml$">
    Order allow,deny
    Deny from all
    Satisfy All
</Files>
<Files sitemap.xml>
        Order allow,deny
    Allow from all
    Satisfy All
</Files>

RewriteEngine on

# Usually it RewriteBase is just '/', but
# replace it with your subdirectory path
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9_-]+)/?$ index.php?id=$1 [QSA,L]
Reply
#6
I won't try to figure out how this makes sense, but..seems like the favicon was the way to go.. !

Thanks a lot, I wouldn't have found this by myself.

Vincent
Reply




Users browsing this thread: 1 Guest(s)