WordPress.org

Ready to get started?Download WordPress

Forums

Facebook
How do I change language setting (14 posts)

  1. kyamamu
    Member
    Posted 2 years ago #

    I want to change language setting en_US to ja_JP.

    Is there the way to change it, or will be capable in the future?

    Best Regards,

    http://wordpress.org/extend/plugins/facebook/

  2. Matt Kelly (Facebook)
    Member
    Plugin Contributor

    Posted 2 years ago #

    kyamamu, can you be more specific? Do you mean that you want to change it for users? Or admins?

  3. kyamamu
    Member
    Posted 2 years ago #

    Matt

    It's for admins.

    When I activate this plugin, It automatically installs the following script code setting "en_US".
    <script type='text/javascript' src='http://connect.facebook.net/en_US/all.js'></script>

    That's why all of facebook plugins display in English.

    I want them to display in Japanese, so need to change en_US to ja_JP,
    But there is not language setting form.

  4. impactumconsultoria
    Member
    Posted 2 years ago #

    Matt, I think he meant to change the language of the pluging.

    Example snippet of this one like a Code of:

    <div id="fb-root"></div>
    <script>(function(d, s, id) {
    var js, fjs = d.getElementsByTagName(s)[0];
    if (d.getElementById(id)) return;
    js = d.createElement(s); js.id = id;
    js.src = "//connect.facebook.net/pt_BR/all.js#xfbml=1&appId=319767378100700";
    fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>
    <div class="fb-like" data-href="http://www.imoveisdany.impactum.com.br/" data-send="true" data-width="450" data-show-faces="false" data-font="arial"></div>

  5. kyamamu
    Member
    Posted 2 years ago #

    impactumconsultoria

    That's right, I meant so.
    I want to change the language of the plugin.

    Thank you for your help!

  6. impactumconsultoria
    Member
    Posted 2 years ago #

    I did so:

    go to the plugin folder and edit the file:

    fb-core.php

    Localize the words:

    $ locale = 'en_US';

    and switch to the 'ja_JP'

    Make tests and tell me if succeeded.

  7. impactumconsultoria
    Member
    Posted 2 years ago #

    You have access to the plugin folder?

  8. kyamamu
    Member
    Posted 2 years ago #

    It works!

    I really appreciate it, Thank you so much!

  9. impactumconsultoria
    Member
    Posted 2 years ago #

    Anything now I have the problem:

    how do I remove the plugin page I do not want?

    In other plugins have this option, I wonder if in future versions our requests will be answered about it.

    Bad until the next version comes what can I do to remove the plugin pages that I do not want to appear?

    Do you know how to solve this?

  10. kyamamu
    Member
    Posted 2 years ago #

    sorry, I don't know, but I want to know it too.
    Anyway, I think you' better to open another thread about it on forums.

    And back to the language problem.
    I think originally this plugin has been supposed to work on any language.
    So this language problem is one of the bug and will be fixed on next version.

  11. impactumconsultoria
    Member
    Posted 2 years ago #

    Certainly my friend

    hugs

  12. kurddata2006
    Member
    Posted 1 year ago #

    I did not find fb-core.php in plugin directory .
    I want to set Kurdish as default language streame .
    regards

  13. sonartom
    Member
    Posted 1 year ago #

    hi,

    version 1.4

    I found the setting in plugins/facebook.php line 47:

    public $locale = 'en_US';

    but still it would show everything in spanish..

    in the Database I found in table wp_options I found option_name _transient_facebook_locale set to es_ES - however..

    change this to your choice - worked for me.

    AAnd - just found out: if you completely delete it, the setting in the facebook.php takes over again.. don't know how this was saved there in the first place.

    Tom

  14. sonartom
    Member
    Posted 1 year ago #

    usually I think the viewers language should change the buttons language - we use WPML - so if the language is changed - the buttons could change.

    if logged in to facebook the language of the like buttons might change to whatever the actual person browsing your page uses as language in facebook.

    I could not confirm, that this happens though.

    but anyway..

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.