Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
While the like widget on the widget settings page in Service Links has a locale field, the share widget does not. The widget defaults to en_US when viewed on a page.
It would be nice to have the locale field for the share widget as well.
Comment | File | Size | Author |
---|---|---|---|
#4 | fb_share_button_locale-2206875-3.patch | 2.34 KB | mvonfrie |
Comments
Comment #1
dj1999 CreditAttribution: dj1999 commentedHi,
created a patch, please review it.
Regards!
Joe
Comment #2
Talkless CreditAttribution: Talkless commentedCould it be reviewed, please?
This is really a must-have.
Comment #3
mvonfrie CreditAttribution: mvonfrie commentedThe patch works, I just added a smal change to it. The locale field in the widget settings form must be required because if the user removes the locale the share buttons stops working. This is because the locale is part of the script url here and not a parameter as for the like widget.
Comment #4
mvonfrie CreditAttribution: mvonfrie commentedComment #5
hanoiiseems to work just fine
Comment #6
Simon Georges CreditAttribution: Simon Georges at Makina Corpus commentedI committed the patch from #2499217: Support for localized Facebook share button , same as this one. I apologize for not crediting you.