The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Editorial Calendar
Not compatilbe with WPML plugin (5 posts)

  1. Constantin Bosneaga
    Posted 3 years ago #

    Calendar does not display posts from different languages, only from default one.

    WPML Multilingual CMS. Version


  2. Constantin Bosneaga
    Posted 3 years ago #

    as workaround, for WPML 2.4.1, I modified edcal.js, added these lines

    var url = edcal.ajax_url() + '&action=edcal_posts&from=' + from.toString('yyyy-MM-dd') + '&to=' + to.toString('yyyy-MM-dd')

    +// WPML Support
    +var lang;
    +if (lang=location.href.match(/lang=(\w+)/)) url = url + '&lang=' + lang[1];

  3. Zack Grossbart
    Plugin Author

    Posted 3 years ago #

    Thanks for using the Editorial Calendar, but I'm a little confused by your question. The Calendar has been localized into many languages and works well in all of them. I'm not familiar with WPML and I can't try it out since it's a paid plugin.

    It looks like WPML might provide support for a single blog in multiple languages which WordPress doesn't. If that's the case I can imagine a few issues with the calendar including our strings and the way we pull in the correct date library for your locale.

    Can you give me a few more details about what wasn't working and how your wok around fixed the issue.


  4. Constantin Bosneaga
    Posted 3 years ago #

    Zack, thanks for a quick reply. WMPL does exactly what you wrote above, it allows to blog in several languages.

    In admin part, it shows all posts in default language. To switch to another language it adds new GET parameter &lang=

    So when I am at calendar and choose to display all langiages, URL shows like this

    but calendar makes internal AJAX request to the server for calendar data and does not include "lang" variable to that request.

    in my patch I modified AJAX url to include that variable as well.

    I do not think that many users has such plugin combination :) but if it looks good for you, you can include this fix

  5. Zack Grossbart
    Plugin Author

    Posted 3 years ago #

    Thanks for letting me know. It sounds like an interesting change, but I'm not sure I fully understand it. Could you send me a patch file with your changes? I'd love to take a closer look.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Editorial Calendar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.