What steps will reproduce the problem?
1. I have a multi-language website which correctly detects the current user's
language (the page's language changes accordingly). Users always use URLs
starting with "http://www.perehana.com" but the canonical address in the head
is for example "http://fr.perehana.com" (according to the user's language).
2. When users try to share it on Google+, the title and description that Google
automatically chooses for the site are in English, even if they are viewing a
page in French and their G+ user account is in French.
What is the expected output? What do you see instead?
Users should be able to share http://www.perehana.com in the language they are
currently using, not only in English.
What version of the product are you using? On what operating system?
Please provide any additional information below.
The site currently exists in two languages, therefore I have set up two
different sets of meta properties, one for each language:
English pages:
<link rel="canonical" href="http://en.perehana.com/"/>
<meta property="og:title" content="Perehana, the best way to find perfect
gifts!"/>
<meta property="og:type" content="website"/>
<meta property="og:url" content="http://www.perehana.com"/>
<meta property="og:image" content="http://www.perehana.com/img/large-icon.jpg"/>
<meta property="og:site_name" content="Perehana"/>
<meta property="og:description" content="No gift ideas for Christmas,
birthdays, weddings, births or any other event? Perehana allows you to enter
gift ideas and to reserve your family and friends' ideas before buying them."/>
<meta property="og:locale" content="en_GB"/>
<meta property="fb:app_id" content="242045389185230"/>
<meta property="og:locale:alternate" content="fr_FR"/>
<meta itemprop="name" content="Perehana, the best way to find perfect gifts!"/>
<meta itemprop="description" content="No gift ideas for Christmas, birthdays,
weddings, births or any other event? Perehana allows you to enter gift ideas
and to reserve your family and friends' ideas before buying them."/>
<meta itemprop="image" content="http://www.perehana.com/img/square_logo.png"/>
French pages:
<link rel="canonical" href="http://fr.perehana.com/"/>
<meta property="og:title" content="Perehana, le meilleur moyen de faire plaisir
à coup sûr !"/>
<meta property="og:type" content="website"/>
<meta property="og:url" content="http://www.perehana.com"/>
<meta property="og:image" content="http://www.perehana.com/img/large-icon.jpg"/>
<meta property="og:site_name" content="Perehana"/>
<meta property="og:description" content="En manque d'idées de cadeaux à
l'approche de Noël, des anniversaires, des mariages ou des naissances ?
Perehana est un site qui vous permet de saisir des idées-cadeaux et de
réserver celles de votre famille et de vos amis. Vous pouvez ensuite aller les
acheter sans qu'ils le sachent."/>
<meta property="og:locale" content="fr_FR"/>
<meta property="fb:app_id" content="242045389185230"/>
<meta property="og:locale:alternate" content="en_GB"/>
<meta itemprop="name" content="Perehana, le meilleur moyen de faire plaisir à
coup sûr !"/>
<meta itemprop="description" content="En manque d'idées de cadeaux à
l'approche de Noël, des anniversaires, des mariages ou des naissances ?
Perehana vous permet de saisir des idées-cadeaux et de réserver celles de
votre famille et de vos amis. Vous pouvez ensuite aller les acheter sans qu'ils
le sachent."/>
<meta itemprop="image" content="http://www.perehana.com/img/square_logo.png"/>
As you can see, the locales and alternates are correctly set.
This is how I call the G+ API (this is an example for a French user):
<div class="g-plusone" data-size="medium"
data-href="http://www.perehana.com"></div>
<script type="text/javascript">
window.___gcfg = {
lang: 'fr'
};
(function() {
var po = document.createElement('script'); po.type = 'text/javascript';
po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
Original issue reported on code.google.com by pereh...@gmail.com on 23 Jul 2012 at 4:09
Original issue reported on code.google.com by
pereh...@gmail.com
on 23 Jul 2012 at 4:09