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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

YK85’s picture

Translation would help many multilingual sites. Especially as Facebook is so global =)

hkirsman’s picture

Version: 6.x-2.0-beta1 » 7.x-2.x-dev
FileSize
534 bytes

Patch for the latest version.