Hello,
This is a SEO question :
i've the choice to display a page's title according to the culture of the visitor.
If it's an english :
<title>
<?php if ($sf_user->getCulture() == 'en') : ?>
Hello, this is an english website
<?php else ?>
Bonjour, ceci est un site français
<?php endif ?>
</title>
Does the bots/spiders has a culture ?
Does that means that on Google uk my website page will be : "Hello, this is...." and on Google france this will be "Bonjour...."
Thank you
EDIT: Anyone visiting my website will see it in english, except for france, beligum, and maybe canada. It can be done because getCulture() retunrs browser accepted & preferred languages
EDIT2:
When a user opens my website (based on HTTP_ACCEPT_LANGUAGE
) :
<?php $culture = $request->getPreferredCulture(array('en', 'fr'));
$this->getUser()->setCulture($culture);
$this->getUser()->isFirstRequest(false); ?>