WordPress.org

Ready to get started?Download WordPress

Forums

All-in-One Event Calendar
Multilingual calendar (65 posts)

  1. OC2PS
    Member
    Posted 2 years ago #

    I am using WPML to create a multilingual website. Facing 2 major problems with ai1ec:

    1. Not sure how to create the multilingual calendar page. I mean, WPML lets me click to create (say) a German version of the English page, but even if I tell WPML to "Copy content from English", the German page remains an empty page in the frontend.

    2. Fields like month names (january, february, etc), day names (Mon, Tue, etc) etc are not in translation files. This makes the internationalization very weak. Even if my default language is (say) French, and I create a calendar in French, if I go to that page in frontend, the month names, day names etc are in English. Well, actually it's a bit more complicated...on the first load, calendar shows French (e.g.) day names...

    But if I go to next month, everything is English. Worse, if I come back, everything (including day names) is English. And even weirder is the fact that if I then refresh the page then first the day names appear in French (while grayed and still with the loading marker) before changing to English when page is fully loaded.

    http://wordpress.org/extend/plugins/all-in-one-event-calendar/

  2. Hancock
    Member
    Posted 2 years ago #

    Same issue

  3. josjo
    Member
    Posted 2 years ago #

    @OC2PS

    Can you name one or two plugins that works with WPML? Preferably plugins that work with dates.

  4. OC2PS
    Member
    Posted 2 years ago #

    WPML authors are happy to work with you to make ai1ec compatible with WPML http://forum.wpml.org/topic.php?id=5707#post-28360

    Documentation & contact form http://wpml.org/documentation/theme-compatibility/go-global-program/

    @josjo: I use several plugins that are compatible:
    Theme Weaver and plugin Weaver Plus
    Basic Google Maps Placemarks
    Greg's High Performance SEO
    Contact Form 7
    etc

  5. Barbulescu Catalin
    Member
    Posted 2 years ago #

    I have the same problem. Thanks OC2PS for pointing it out.

  6. Kuldeep Singh
    Member
    Posted 2 years ago #

    Yup, ai1ec seems to struggle with multilingual sites...

  7. Joyce
    Member
    Posted 2 years ago #

    Good to see that I'm not the only one with this problem :-)

    I really like the plugin, apart from this annoying issue.

    No word yet from the developers?

  8. Barbulescu Catalin
    Member
    Posted 2 years ago #

    How is it good that we have this problem?

  9. Joyce
    Member
    Posted 2 years ago #

    Of course the problem is bad.

    I meant it is good to know that I am not alone, and that it's not me that's doing something incredibly stupid...

  10. Yani Iliev
    Member
    Plugin Contributor

    Posted 2 years ago #

    Hi all,

    Happy new year!

    All in one event calendar is developed strictly according to I18n for WordPress Developers
    There are German, Spanish, French, Dutch, and Swedish translations available with the plugin. When you enable these translations, Month names, Day names, etc are being translated properly.

    The issue here is WPML and not with ai1ec. The solution to this problem will be to fix WPML.
    Again, there is nothing wrong with ai1ec as it has been developed strictly to the standard provided by WordPress.

    If you think that there is something wrong with the plugin and it hasn't been developed properly, just let me know and I will be more than happy to fix it.

    We are open to work with everyone to make the plugin work on any configuration but in this case, I think that the problem is not in ai1ec.

  11. OC2PS
    Member
    Posted 2 years ago #

    Yani, I think the issue is not i18n. The issue is multilingual support. There is a difference.

    If I install ai1ec on a German site, I think it might work fine. Problem is that if I have a site in German AND English, I know that it doesn't.

    There are really only 2 ways of creating multilingual sites with WordPress - WPML is the most popular, and qTranslate.

    So it would be good if you can make ai1ec work with WPML.

    All I am asking is that you go to http://wpml.org/documentation/theme-compatibility/go-global-program/ and fill up the form. WPML guys will install ai1ec on their test site with WPML and check it out. Then, if any changes need to be made to WPML, they will make them. If any changes need to made to ai1ec, they will let you know in specific detail.

  12. OC2PS
    Member
    Posted 2 years ago #

    Oh, and a very happy and prosperous new year to you.

  13. OC2PS
    Member
    Posted 2 years ago #

    P.S. You can check #2 out at http://www.csillamvilag.com/naptar-2/

    You will see the calendar day names, month name are in Hungarian (as picked from the WP .mo). Excellent!

    But if you go to previous/next month, these change to English. If you then come back to current month, these stay English.

    THAT is a problem.

    Don't worry about things like Month, Week, Agenda, Today, etc being in English...that's just because I haven't provided a Hungarian .mo for the plugin yet.

  14. Yani Iliev
    Member
    Plugin Contributor

    Posted 2 years ago #

    @OC2PS
    I am more than happy to fill out the form and I just did.
    Let's wait to hear back from WPML.
    Thank you!

  15. OC2PS
    Member
    Posted 2 years ago #

    Thanks, Yani! Fingers crossed, breath bated, etc :-)

  16. OC2PS
    Member
    Posted 2 years ago #

    The WPML guys say they have contacted you but haven't heard back from you yet.

  17. Yani Iliev
    Member
    Plugin Contributor

    Posted 2 years ago #

    @OC2PS
    I am a bit busy working on 1.3 release - it is scheduled for 16th of January.
    I will post updates here as soon as we have something - so far, all that has been done is to exchange emails - there no actual suggestions or any other useful information.

  18. OC2PS
    Member
    Posted 2 years ago #

    Thanks for the update, Yani!

    Have they promised to install ai1ec and do their tests to figure out what could/should be done, at least?

  19. Yani Iliev
    Member
    Plugin Contributor

    Posted 2 years ago #

    WPML reply:

    But in general, the easiest way to fix this is:

    1) Add another parameter in the ajax call for the language. You can use the ICL_LANGUAGE_CODE constant to know the active language.
    2) Get that parameter and do this at the top of your ajax process:

    $lang = $_POST["lang"] //or whatever you used
    global $sitepress;
    $sitepress->switch_lang($lang);

    I will try to add this in 1.3 but a sure bet will be 1.4

    We are making a release every 2 weeks - 1.4 is scheduled for 30th of January 2012.

    I will create a trac ticket for this task, once the trac ticket is fixed you can download the beta release available on The Seed Website (I will provide a link later) and use the plugin before the actual release.

    Trac ticket: #251

  20. OC2PS
    Member
    Posted 2 years ago #

    Thanks! I will follow the ticket...I assume Trac lets me subscribe to ticket progress

  21. ni-ka
    Member
    Posted 2 years ago #

    IMHO, there is more to be done to properly integrate with WPML. I'd love to hear if those can be solved already today!

    - All-in-One event calendar uses a special page where the calendar is rendered and all actions are done. WPML however creates a page per language version and can be configured to jump to the homepage when a page does not exist in the language requested by the user (makes sense for sites where the translated parts does not represent the whole original content). Thus aioec needs to support the translated versions as well and display its calendar there.

    - Because WPML creates a new post for every language the translations must be filtered according to the current language. At the moment the calendar displays the events in every language version (thus multiple entries for one item). Maybe an additional setting is required where one can set whether to display only events in current language, events in current language + untranslated events in another language (only 1!), or all events.

    - Because of the multiple posts for an event, the events attributes are stored twice. Here a complete integration should probably display an option to change other languages' event data as well. However it is not valid for all event details, for ex. the user might want to set a different location name for every language (which represents the same location).

    I'd love to see this plugin support WPML. I guess its a bit more complicated to implement than qTranslate (which was done for example in the Events Made easy plugin), and maybe not as clean due to the way WPML creates multiple posts. But if added to aioec it would be a real winner feature for this plugin!

    Looking forward to your feedback!

  22. OC2PS
    Member
    Posted 2 years ago #

    ni-ka, I think it might be simpler than you think. I've replied to your comment in the ticket, but here goes:

    I am not a techie, but have been using WPML for a while, and present the following opinions based on my experiences alone.

    My understanding is that ai1ec creates a page for calendar, and special posts for events and event categories.

    Further, WPML can create pages and also posts and special posts in order to hold translations.

    In fact, if you have both ai1ec and WPML installed, you can already create translations for each event (you can type anything there, including an entirely different venue) and event category.

    Finally, based on my experience, WPML does most of the heavy lifting - when a plugin requests a page from WP, WPML steps in and serves the correct translation based on the language variable. This is how it seems to work with plugins like Contact Form 7 and Basic Google Placemarks, etc.

    The problem with ai1ec, as I understand, is that since ai1ec doesn't use the language variable ICL_LANGUAGE_CODE, WPML does not know it is supposed to serve a page different from the original (as opposed to translated) one.

    I believe that the bulk of the issue may be resolved with the solution yani has listed above.

    Of course, I could be very wrong.

    Eitherway, waiting with bated breath. I hope Yani is able to include this in 1.3

  23. OC2PS
    Member
    Posted 2 years ago #

    Yani, does it look like you might be able to include this in 1.3 (16 Jan)?

  24. Yani Iliev
    Member
    Plugin Contributor

    Posted 2 years ago #

    @OC2PS
    Not likely

  25. OC2PS
    Member
    Posted 2 years ago #

    I see that you have released 1.2.4...

    I'll hold my breath for 1.2.5

  26. OC2PS
    Member
    Posted 2 years ago #

    How goes it, Yani?

  27. Yani Iliev
    Member
    Plugin Contributor

    Posted 2 years ago #

    @OC2PS
    The priorities are bugs. Once we have eliminated all bugs, then we can look into features.
    The top features so far are enabling excluding of events and additional recurrence options.
    We haven't started on this task yet and I cannot give you any time estimates.

  28. JABŁOŃSKI
    Member
    Posted 2 years ago #

    Oh, no! C'mon yani, this is important...

  29. Luke Xie
    Member
    Posted 2 years ago #

    Yes, please prioritize this!

  30. Yani Iliev
    Member
    Plugin Contributor

    Posted 2 years ago #

    Guys,
    I cannot put one request over the other. It's like standing on a line and you want to get infront of the other people.
    Again, there are bugs that need to be resolved, a few features that need to be added and then we can look into this issue.
    If you'd like to speed the development, there are 2 ways to do that:
    1. You add a patch to the task and I will be more than happy to apply it and include it in the next release.
    2. You use the premium support - this way there will be a developer who will be dedicated to develop this.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic