Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author bonnerl

    (@bonnerl)

    I am unsure. I’ll look into it some tomorrow.

    Plugin Author bonnerl

    (@bonnerl)

    May I have the ID for the feed you’re displaying please?

    Thread Starter RemizZ

    (@remizz)

    Sure! 117746804923810

    Plugin Author bonnerl

    (@bonnerl)

    Could you do me a favor? You’ll need to be logged into Facebook.

    The link at the bottom is to Facebook’s Graph API and should return the same raw info that the plugin gets when it asks Facebook for your feed but localized for German. Would you look through the text and see if it’s correct?

    If it says something about having a invalid access token then just click the “get_access token” button in the upper right region. That will open a little pop box. None of the check boxes need checked just click the “Get Access Token” button at the bottom.

    developers.facebook.com/tools/explorer?method=GET&path=117746804923810%2Ffeed%2F%3Flocale%3Dde_DE

    Thread Starter RemizZ

    (@remizz)

    That seems to work. All the texts in the what looks like a json are in german.

    Plugin Author bonnerl

    (@bonnerl)

    Awesome. I’ll see if I can’t an update with this out tomorrow or Monday.

    In the mean time if you want the change immediately you can make the following two changes in “/~plugin-directory~/facebook-feed-grabber/facebook.php”. Just add “&locale=de_DE”where it is in the text.

    Line 521: $content = $cache->theMagic($this, '/'. $feed_id .'/feed?date_format=U&locale=de_DE', (($cache_feed * 60)));

    and line 524: $content = $this->facebook->api('/'. $feed_id .'/feed?date_format=U&locale=de_DE');

    Thread Starter RemizZ

    (@remizz)

    Thank you very much for this 🙂 I’ll wait for the update though, the website is still in development so time is no issue atm. Thanks!

    Plugin Author bonnerl

    (@bonnerl)

    I just post the update. I didn’t do much testing though. So please let me know if it works.

    Thread Starter RemizZ

    (@remizz)

    Localizsation seems to work fine for all information returned from facebook. Very nice.

    What doesn’t work for me is ‘Today at 9:47pm • No Comments’ is not translated correctly. I see it has __() in the code, but it doesn’t seem to do anything.
    Any ideas?

    Edit: Also, there is always a ‘1’ displayed at the end of the feed, outside of the #fb-feed container. Is that a bug or is that something I don’t see.

    It’s just

    <?php $facebook = fb_feed();
                    echo $facebook;
                ?>

    Plugin Author bonnerl

    (@bonnerl)

    That is beyond my knowledge. I haven’t really delved into how wordpress’s localization works for strings like that other than to know that I need to put it in those __() functions… I do know that I will have to change how it does “Today at” as it doesn’t run through the localization function currently.

    The only idea I have is to make sure your wordpress is setup to localize strings like that. I can’t really point you in the direction to do that.

    Thread Starter RemizZ

    (@remizz)

    I think I know where to look. Should be a simple translation in one of the .mo/.po files in wp-content/languages.

    I’ll have a look at it. Thanks anyway.

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Language setting?’ is closed to new replies.