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...
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | google_plusone-1206216-2.patch | 498 bytes | joostvdl |
Comments
Comment #1
joostvdl commentedPatch
Comment #2
corbacho commentedThanks 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
Comment #3
joostvdl commentedRC6 works fine. Thanks.
Comment #5
alechko commentedHey, 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?
Comment #6
corbacho commentedHi 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?
Comment #7
corbacho commentedHi 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