WordPress.org

Ready to get started?Download WordPress

Forums

Editorial Calendar
Not compatilbe with WPML plugin (5 posts)

  1. Constantin Bosneaga
    Member
    Posted 1 year ago #

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

    WPML Multilingual CMS. Version 2.0.4.1

    http://wordpress.org/extend/plugins/editorial-calendar/

  2. Constantin Bosneaga
    Member
    Posted 1 year 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
    Member
    Plugin Author

    Posted 1 year 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.

    Thanks,
    Zack

  4. Constantin Bosneaga
    Member
    Posted 1 year 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
    http://a32.me/wp-admin/edit.php?page=cal&lang=all

    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
    Member
    Plugin Author

    Posted 1 year 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.

    Thanks,
    Zack

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.