facebook plugin (language)

Discussion in 'Subrion CMS Plugins Discussion' started by graphixzonne, Feb 18, 2013.

  1. graphixzonne

    graphixzonne New Member

    Hello,
    Anyone know how to change the language to Spanish
    buttons and window facebook comments plugin?
    I tried changing the following line in channel.tpl

    <script src="http://connect.facebook.net/en_US/all.js"> </ script>
    for this
    <script src="http://connect.facebook.net/es_ES/all.js"> </ script>

    but no change
    any idea how to change it
    thanks in advance
  2. Gleb_S.

    Gleb_S. Subrion Designer Staff Member

    Hello!

    You need to change
    HTML:

    <script src="http://connect.facebook.net/en_US/all.js"> </ script>
     
    to
    HTML:

    <script src="http://connect.facebook.net/es_ES/all.js"> </ script>
     
    In the hook «smartyFrontAfterHeadSection» for Facebook plugin.

    You can make the change using Admin Panel → Manage Database → Hooks
    or
    Edit plugins/facebook/install.xml file and make the same replacement.
  3. Chaffinch

    Chaffinch Member

    OR
    in the admin panel:
    Admin Panel >> Manage Blocks
    edit block: Facebook
    Change the line from :
    PHP:
    print '<script type="text/javascript" src="http://connect.facebook.net/en_US/all.js"></script>';
    to
    PHP:
    print '<script type="text/javascript" src="http://connect.facebook.net/es_ES/all.js"></script>';
    This effect the same. Plug-in works in ES
  4. Gleb_S.

    Gleb_S. Subrion Designer Staff Member

    Chaffinch,

    Thank you for your note. Yes, that will work for the facebook plugin version 2.2.*
    Starting from the version 2.3.0 the code is removed from the block and added to the hook.
  5. Chaffinch

    Chaffinch Member

    I need to update my plugin , :))
    Thank you for the info
  6. graphixzonne

    graphixzonne New Member

    I appreciate the help
    I changed it as you mention Alex B., thank you too Chaffinch
    I also want to mention that the plugin does not show the faces and the button is on, in "Show faces for Like button" of "FaceBook Plugin Options"
    I need modify some other code?
  7. Gleb_S.

    Gleb_S. Subrion Designer Staff Member

  8. graphixzonne

    graphixzonne New Member

    Hello
    I installed the version 232 (Patch 2.3.1 to 2.3.2) and the problem has been corrected, and now shows the faces.
    Not sure if that has anything to do ... but corrected

    Thanks for the help
  9. Gleb_S.

    Gleb_S. Subrion Designer Staff Member

    Oh, that's nice! =)

    Glad to help you!
    Do not hesitate to contact us if you need any help!

Share This Page