The ShareThis link in the link bar can't be translated. Any ideas on how to do it. I had a look in the module but it looks like it is generated by script?

Comments

feconroses’s picture

Yeah, i need to translate it too. I think that its not a problem of the module, its ShareThis that need to be more flexible in the STAPI and with the code.

msathesh’s picture

did you guys find a the solution? If so please post the solution here. So that it's useful to everyone.

mmartinov’s picture

Title: Translation » Translation of "ShareThis" text in link bar
Status: Active » Needs review

Here's how I've solved the issue for a three lingual site, took me some time to figure it out, hope this will save you some efforts.

0) You must have i18n module installed.
1) In your settings.php add the "sharethis_code" variable name in the array under the 'i18n_variables' key in $conf, so it becomes something like this:

$conf['i18n_variables'] = array(
  'site_footer',
  // ...
  'sharethis_code',
);

2) Then go to admin/settings/sharethis and in the "Code" textarea paste the following code:

http://w.sharethis.com/button/sharethis.js#buttonText=Your%20Translation%20for%20the%20current%20language

3) Repeat 2) for each of the site languages changing the string after buttonText= to the desired output.
4) Don't forget to clear the Drupal cache.

Note that this is a workaround and probably a patch to the module is a better idea. I could try to come up with one if the maintainer finds it a valuable addition?

avpaderno’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)

I am closing this bug report, as Drupal 6 is no longer supported. Please re-open it if the issue is still relevant for the Drupal 7 or 8 version of the module.