GetSimple Support Forum

Full Version: I18N bug google chrome
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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";
?>
-->
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
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.
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]
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