If there is anyone here with a French operating system, would they be kind enough to go to http://www.bandb-in-brittany.co.uk & see if they are automatically redirected to the French site.
If anyone would like to check the language, I would be pleased to hear any comments.
Thanks in advance.
French web site
No, my FF is in English, so that is probably why it didn't work, I've just checked it on IE7, which is French, and it does default to the French version. Can I ask how you do that??TTP mk2 wrote:Thanks, what OS & browser are you using & is it a French Browser ?la vache! wrote:I've tried it and it goes to the UK homepage.
-
- Posts: 1020
- Joined: Tue Mar 25, 2008 10:15 pm
- Location: Guingamp/Bourbriac in Brittany
- Contact:
That would have been the reasonla vache! wrote:No, my FF is in English, so that is probably why it didn't work,
I've just checked it on IE7, which is French, and it does default to the French version.[/quote]
Thanks
The following is in the include_headerphp fileCan I ask how you do that??
<?
if($_GET{lang}=="true"){
$_SESSION{bandb}{lang} == 1;
}
if($_SESSION{bandb}{lang} != 1){ ?>
<script>
var languageinfo=navigator.language? navigator.language : navigator.userLanguage
function redirectpage(dest){
if (window.location.replace)
window.location.replace(dest)
else
window.location=dest
}
if (languageinfo.substr(0,2)=="fr"){
redirectpage('/fr<?=substr($_SERVER['PHP_SELF'], $pos)?>?lang=true')
}
</script>
<? }
?>
- Rocket Rab
- Posts: 2248
- Joined: Mon Sep 18, 2006 5:37 pm
- Contact:
Hi, so this is me :
Location : Montpellier
Telephone : FT
ISP : Wanadon't / Orange
Browser : Firefox 3X ( English)
OS : XP (French)
And I went straight to the English version at http://www.bandb-in-brittany.co.uk
Peter
Location : Montpellier
Telephone : FT
ISP : Wanadon't / Orange
Browser : Firefox 3X ( English)
OS : XP (French)
And I went straight to the English version at http://www.bandb-in-brittany.co.uk
Peter