Support » Plugins » [Plugin: Simple Facebook Connect] How Localize icons

  • How localize icons on this plugin

    Hi all my problem was localization. Default language is EN (icons and others things are published in english on your web)

    There are instructions how you can localized FB icons to your language…

    1) open file “sfc.php” and add simple syntax for you language (in my case it is “/cs_CZ”)

    wp_enqueue_script( ‘fb-featureloader’, ‘’, array(), ‘0.4’, false);
    wp_enqueue_script( ‘fb-featureloader’, ‘’, array(), ‘0.4’, false);

    2) Translate few things in file “sfc-comments.php”

    // Show their FB details TODO this should be configurable, or at least prettier…
    if (!jQuery(‘#fb-user’).length) {
    jQuery(‘#comment-user-details’).hide().after(“<span id=’fb-user’>” +
    “<fb:profile-pic uid=’loggedinuser’ facebook-logo=’true’ size=’normal’ height=’96’></fb:profile-pic>” +
    “<span id=’fb-msg’>Ahoj <fb:name uid=’loggedinuser’ useyou=’false’></fb:name>!
    Jsi propojen s Facebookem. ” +
    \”); return false;’>Odpojit” +

    3) THAT´S ALL 🙂

Viewing 1 replies (of 1 total)
  • Moderator Samuel Wood (Otto)

    (@otto42) Admin

    The next version of SFC will use the correct locale if your WordPress has a different locale than English. Also, it will have the fb:intl tags surrounding those hardcoded pieces, meaning that you can use the Facebook Translator application to translate the strings into your language correctly, yet still have the English strings appear for English speakers.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Simple Facebook Connect] How Localize icons’ is closed to new replies.