French web site

Get some feedback on your site or ad from other rental owners and techies. Also a library of online resources so you can make DIY improvements to your web presence.
TTP mk2
Posts: 1020
Joined: Tue Mar 25, 2008 10:15 pm
Location: Guingamp/Bourbriac in Brittany
Contact:

French web site

Post 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.
la vache!
Posts: 11065
Joined: Wed Feb 16, 2005 7:22 pm

Post by la vache! »

I've tried it and it goes to the UK homepage.
TTP mk2
Posts: 1020
Joined: Tue Mar 25, 2008 10:15 pm
Location: Guingamp/Bourbriac in Brittany
Contact:

Post 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 ?
la vache!
Posts: 11065
Joined: Wed Feb 16, 2005 7:22 pm

Post 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??
TTP mk2
Posts: 1020
Joined: Tue Mar 25, 2008 10:15 pm
Location: Guingamp/Bourbriac in Brittany
Contact:

Post 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>
<? }
?>
User avatar
Rocket Rab
Posts: 2248
Joined: Mon Sep 18, 2006 5:37 pm
Contact:

Post by Rocket Rab »

The French version reads really nicely. You must have had it done by a native speaker?
User avatar
mpprh
Posts: 873
Joined: Tue Jun 14, 2005 6:07 am
Location: Languedoc, France
Contact:

Post 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
The Languedoc Page
www.the-languedoc-page.com
Image
TTP mk2
Posts: 1020
Joined: Tue Mar 25, 2008 10:15 pm
Location: Guingamp/Bourbriac in Brittany
Contact:

Post 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
Post Reply