Page 1 of 1

French web site

Posted: Tue Sep 02, 2008 5:18 pm
by TTP mk2
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.

Posted: Tue Sep 02, 2008 5:22 pm
by la vache!
I've tried it and it goes to the UK homepage.

Posted: Tue Sep 02, 2008 5:32 pm
by TTP mk2
la vache! wrote:I've tried it and it goes to the UK homepage.
Thanks, what OS & browser are you using & is it a French Browser ?

Posted: Tue Sep 02, 2008 5:37 pm
by la vache!
TTP mk2 wrote:
la vache! wrote:I've tried it and it goes to the UK homepage.
Thanks, what OS & browser are you using & is it a French Browser ?
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??

Posted: Tue Sep 02, 2008 5:51 pm
by TTP mk2
la vache! wrote:No, my FF is in English, so that is probably why it didn't work,
That would have been the reason

I've just checked it on IE7, which is French, and it does default to the French version.[/quote]

Thanks
Can I ask how you do that??
The following is in the include_headerphp file

<?
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>
<? }
?>

Posted: Tue Sep 02, 2008 6:36 pm
by Rocket Rab
The French version reads really nicely. You must have had it done by a native speaker?

Posted: Tue Sep 02, 2008 6:52 pm
by mpprh
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

Posted: Tue Sep 02, 2008 7:06 pm
by TTP mk2
RR

Thanks, yes it was done by a native speaker (a software translator I have worked with for years, details upon request)

Peter,

That's as it should be, it should only detect the Browser language