Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I've found a small bug in the code re: the translation of the "Connect" text of the facebook button.
On the row 250, as part of the fbconnect_render_button the code for setting the 'text' array part is:
function fbconnect_render_button($attr = array()) {
list($size, $length) = explode('_', variable_get('fbconnect_button', NULL));
$default_attr = array(
'text' => variable_get('fbconnect_button_text', t('Connect')),
'size' => $size,
'onlogin' => 'facebook_onlogin_ready();',
'background' => 'dark',
'v' => 2,
);
It should read, instead:
function fbconnect_render_button($attr = array()) {
list($size, $length) = explode('_', variable_get('fbconnect_button', NULL));
$default_attr = array(
'text' => t(variable_get('fbconnect_button_text', 'Connect')),
'size' => $size,
'onlogin' => 'facebook_onlogin_ready();',
'background' => 'dark',
'v' => 2,
);
Hope it helps
Comment | File | Size | Author |
---|---|---|---|
#2 | fbconnect-allow_button_translation-1005516-2.patch | 534 bytes | hkirsman |
Comments
Comment #1
YK85 CreditAttribution: YK85 commentedTranslation would help many multilingual sites. Especially as Facebook is so global =)
Comment #2
hkirsman CreditAttribution: hkirsman commentedPatch for the latest version.