Hi!

Share links "title" like "Share on LinkedIn", "Tweet this", etc., are not translatable ?

Thx.

Comments

CPJS’s picture

I've been looking into the translation file of widgets but there is no string containing share. Maybe will be in strings within a new version.

TomDude48’s picture

Status: Active » Needs review

I am running the default title attributes through the t() now. That should help.

broon’s picture

Version: 7.x-1.0-beta11 » 7.x-1.0-beta12

While running the strings through t() helps with translations, it would be nice to have an option to change the English default as well.

Also, I noted that the Facebook share button has the same title as the profile button due to line 132 in socialmedia.widgets.inc reading:
'share-button' => '<a href="http://www.facebook.com/sharer.php?u=[|[node:url]||[current-page:url]|]&t=[|[node:title]||[current-page:title-plain]|]" title="'.$title.'"[?link-target= target="{[socialmedia:sm-default_link_target_sharing]}"?][?link-rel= rel="{[socialmedia:sm-default_link_rel_sharing]}"?]><img src="[?icon-path=[socialmedia:sm-facebook_icon-path]?]" alt="Facebook icon" ></a>',

Instead of title="'.$title.'" it should be title="'.$stitle.'".

broon’s picture

Version: 7.x-1.0-beta12 » 7.x-1.0-beta13

Missed the update to beta13. Still, it now reads title="' . $title . '" and should be title="' . $stitle . '".

And regarding the issue of alternatives for English phrases, until this is maybe integrated as a social media option, one can use String Overrides to, well, override the strings. ;)