Active
Project:
Tweet Button
Version:
6.x-1.4
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
7 Mar 2011 at 16:05 UTC
Updated:
7 Mar 2011 at 16:09 UTC
Let me start off by saying this module saved me the work of implementing this myself so thanks for that.
But i'm using multiple languages on our websites(using i18n). Therefore it would seem pretty useful to me for anonymous users to see the tweetbutton in the language they're viewing the website in.
A simple modification to the 'tweetbutton_get_attributes' function accomplishes this.
I just added the following code to the function and modified the $attributes parameter:
global $language
$attributes['data-lang'] = $language->language;
Comments
Comment #1
y_h commentedMake that
I was a little too fast on adding the code :)