WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Simple Facebook Connect] How Localize icons (2 posts)

  1. qendorf
    Member
    Posted 4 years ago #

    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', 'https://ssl.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php/cs_CZ', array(), '0.4', false);
    else
    wp_enqueue_script( 'fb-featureloader', 'http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php/cs_CZ', 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 :)

    http://wordpress.org/extend/plugins/simple-facebook-connect/

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 4 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic