I use the 'Share' service and 2 other customized services. I created these customize services because I wanted to change the name.

The problem is that I want translatable titles.

I modified addthis.module at line 224 and line 243 to translate title during rendering :
line 224 :

      // Make titles translatables
      //return "<a class='$class' $attributes>$title</a>"; 
      return "<a class='$class' $attributes>".t($title)."</a>";                                                                                               

line 243 :

      // No need to translate Share here because I did it in theme_addthis_toolbox_item ?
      //'title' => t('Share'),
      'title' => 'Share',

Comments

nikosnikos’s picture

I've clicked on 'Save' to fast !

So, I try to be more clear : I want the titles of my custom services to be translatable and I didn't find another way than modifying addthis.module but I'm not sure this is the good solution.