Localization: Can specify an alternate button, but can't specify menu language?

smacphail - May 4, 2009 - 21:34
Project:AddThis Button
Version:6.x-2.6
Component:Code
Category:feature request
Priority:normal
Assigned:wesku
Status:needs work
Issue tags:language, localization
Description

Hi there,

According to the AddThis website, to get the menu to show up in your own language, you need to specify a javascript var:

<script type="text/javascript">
var addthis_language = "zh";
</script>

...but there doesn't seem to be an option for setting that var in the admin settings.

I can override theme_addthis_button() and manually enter the language, but perhaps this should be a menu option? Or perhaps it should be a value taken from a Drupal site's (or the current page's) language settings, in order to be really useful for multilingual sites.

Or am I missing something somewhere in the code/settings page?

Cheers,
Stephen

#1

wesku - May 6, 2009 - 14:16
Assigned to:Anonymous» wesku

No, you are right. There is currently no smart way to set the language. This feature will be added in future releases. I think it should always default to same language as current page since we want to also support multilanguage sites.

#2

wesku - May 18, 2009 - 16:44
Status:active» needs work

I just had another look at this. Does anybody want to implement this to support both multi-language sites, official addthis.com translations and custom translations? This should be quite simple thing to implement, but I just don't have the time before June.

 
 

Drupal is a registered trademark of Dries Buytaert.