When entering a language in the options, these are not used. Only the default language is used.
This is because there is an error in the php function explode (in function google_plusone_button_negotiate_language).

Patch follows...

CommentFileSizeAuthor
#1 google_plusone-1206216-2.patch498 bytesjoostvdl
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

joostvdl’s picture

FileSize
498 bytes

Patch

corbacho’s picture

Status: Active » Fixed

Thanks Joost ! patch comitted

The 6.x branch was fine, I don't know how I managed to change the order of the parameters in the 7.x branch :/

Anyhow, 7.x. rc6 version should work. If you can test the multi-lingual feature and report it, will be nice

joostvdl’s picture

RC6 works fine. Thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

alechko’s picture

Hey, got problem with language at 7.x-1.x-dev version ,using D7 7.8

Set up to "ru" but the button still has "en" lang.

in the module set to $glanguages = explode(",", $glanguages);.

ideas?

corbacho’s picture

Hi alechko
You did right. It should work. Can you confirm me that you have installed the Russian language in Drupal. Check that also has the code 'ru' in the Language page settings. Not 'RU' or 'Ru' or sth like that.
And you are testing the google button in the Russian version of the site, true?

corbacho’s picture

Hi again alechko.
I reviewed and fixed the language settings.
Download the dev branch (7.x or 6.x, depending of your case)

Also I changed something else. If only 1 language is present, it won't be compared against the language of Drupal, it will be applied automatically to the button.

Only in case of 2 or more languages, then is compared against the languages installed in Drupal (Locale module) to decide what language code use for Google+1.

Please report if it worked for you.Thanks