The share label (variable social_share_label) is not translatable in multilanguage sites.
To solve it just wrap a t() function arround the label:

social_share.module line 45

$node->content['social_share']['#prefix'] = '<div class="social-share"><span>'. variable_get('social_share_label', 'Share to') . $suffix .'</span>';

should be changed to

$node->content['social_share']['#prefix'] = '<div class="social-share"><span>'. t(variable_get('social_share_label', 'Share to')) . $suffix .'</span>';

Thanks

Comments

willvincent’s picture

Status: Active » Needs work
Issue tags: +2.x Roadmap

Your solution isn't ideal as I believe it would pass a variable, rather than a string, into t().

I might be wrong on that, but I've already implemented a more robust solution in the 2.x branch, which I've just commit. It lets you configure a different label for each enabled language on your site. I suspect there's still a little more work involved with this item, so I'm not going to mark it as fixed yet.

One thing for sure that is not yet addressed is moving the existing setting to the new setting format with an update function, I'm also not quite sure if the code that's currently implemented to select which label to use is going to work as expected.

willvincent’s picture

Assigned: Unassigned » willvincent
willvincent’s picture

Status: Needs work » Closed (won't fix)

this will be addressed in 2.x