• Resolved manevilhena

    (@himidia)


    Hi,

    I’ve searched through all the 58 pages of this Support (why dont we have a search field here is another good question!) and didnt find a right solution to change the language used at the plugin buttons.

    So I’ve read all the documentation about, Localization & Translation, Self-Hosted Objects and Facebook SDK for JavaScript but still cannot understand what’s the solution to change the language (og:locale) from my Facebook Plugin.

    For JavaScript SDK you provide a code for a function but doesnt tell us where to put it.

    The documentation seems a little too complex, outdated or advanced for someone who just want to change a language. I’ve spent hours trying to understand this for example:

    1) Call the Graph API to update the object URL with the locale parameter.
    2) Specify an array of og:locale:alternate meta tags to define which locales you support.

    Specify an array? Where? How? It could be shown some examples here…
    At Object Types in the App Center I’m not able to add or change anything at the og:locale property.

    Can someone help me with it?

    By the way….I’ve chosen the right language everywhere that was possible (pt_BR) but it keeps showing (pt_PT) maybe is an issue inside the API.

    pt_BR is way different than pt_PT.

    Hope someone can dig me out of this hole.

    Thanks.

    https://wordpress.org/plugins/facebook/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Niall Kennedy

    (@niallkennedy)

    The Facebook SDK for JavaScript loads a locale-specific JavaScript file. The Facebook plugin for WordPress tries to associate the WordPress locale returned by get_locale() with a valid Facebook locale.

    See the set_locale() function in Facebook_Loader for details. You can override the transient response and/or act on the fb_locale filter.

    Thread Starter manevilhena

    (@himidia)

    Thanks for the answer Niall,

    I´m sorry to say it, but I believe your answer just made me more confused.
    And it´s not fair putting this as “Resolved” since it´s not.

    I´m not a developer. What do you mean on “act on the fb_locale filter”?

    Would you mind answering my questions?

    Thanks,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change Language’ is closed to new replies.