WordPress.org

Ready to get started?Download WordPress

Forums

Changing the Language in FeedList Output (3 posts)

  1. G_Couture
    Member
    Posted 3 years ago #

    Hi. My Website is available in both French and English. I display information using FeedList on a page that is available in either language. I would like to change the "Read More" link for the French-language version, depending on the language the page is displayed in (the pages are separetely oced). I have toyed with the plugin's config, and it seems to allow this, but I can't figure how to set it to work, it always displays it in English no matter what. I have tried various combinations of settings, with single and double quotes, no quotes, etc. Maybe I forgot a parameter. Some help with this would be appreciated.

    Here's my current setting for the French page:

    <?php
            feedList(array("rss_feed_url"=>"http://www.myrssfeed.ca/newwebsite/?cat=16&feed=rss2",
                "language"=>fr_FR,
                "num_items"=>4,
                "show_description"=>true,
                "translations"=>ReadMore,
                "max_characters"=>140,
                "max_char_wordbreak"=>true
                    )
            );
        ?>
  2. finalcut
    Member
    Posted 3 years ago #

    Sadly, there isn't a way to do what you want at the moment. Currently the plugin is always either in English or always in French mode.

    In the plugin, on line 181, there is a line to set the language which is set to 'en_US'; I had never thought of the case where a blog might want to work in multiple languages at the same time.

    I'll file an issue at http://code.google.com/p/wp-feedlist and I'll add support for this as soon as I have a chance to work on it.

  3. finalcut
    Member
    Posted 3 years ago #

    I've created an issue at: http://code.google.com/p/wp-feedlist/issues/detail?id=45

    You can follow the progress there if you wish.

Topic Closed

This topic has been closed to new replies.

About this Topic