Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Constantin Bosneaga

    (@ameoba32)

    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];

    Plugin Author Zack Grossbart

    (@zgrossbart)

    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

    Thread Starter Constantin Bosneaga

    (@ameoba32)

    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
    https://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

    Plugin Author Zack Grossbart

    (@zgrossbart)

    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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Editorial Calendar] Not compatilbe with WPML plugin’ is closed to new replies.