• Resolved alecsec

    (@alecsec)


    Hello,

    Love this plugin! Thanks for this.

    We are using a WPML multi-language site and when we save the colors for the categories on the English side evertyhing works perfectly.
    Then I switch the WP backend to French for my French category colors and when I save them, the English colors disappear.

    Is there a way to save colors for both languages without losing them in the other?

    Thank you

    https://wordpress.org/plugins/the-events-calendar-category-colors/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter alecsec

    (@alecsec)

    OK, after some time, I figured it out.

    1- You have to go to Events-Settings-Category Colors
    2- Choose ‘All Languages’ from the Language tab on Adminstrator Menu Bar on the top of WordPress Backend
    3- Then you can change colors for both languages at the same time
    4 Save and you’re done.

    The only other problem I see is that when I add the Legend on the Calendar page in French, the links redirect me to permalink:
    …/events/categorie/”MY CATEGORY”/ which is not the correct link

    The working link is:
    …/events/category/”MY CATEGORY”/

    Is there a fix for this?

    Thanks

    Plugin Author Andy Fragen

    (@afragen)

    Hmm, the code for the legend links is as follows.

    $link = get_term_link( $id, Tribe__Events__Main::TAXONOMY );

    It’s not really custom code so I’m not sure what to do. I would guess that reserving your Permalinks in the Dashboard might fix this. If it does, I would think having some code to flush and save the permalinks every time the language changes might be needed. You might want to ask the WPML folks if this is true.

    Thread Starter alecsec

    (@alecsec)

    I’m not sure what you mean by reserving my Permalinks in the Dashboard.

    I also noticed that it’s not just the /category/ tag that translates in the permalink that causes the link error, it’s all the tags before and after including /list, / month, … The only tag that should be translated for the link to work is the actual Category Name tag. “MY CATEGORY” in the example above.

    Plugin Author Andy Fragen

    (@afragen)

    Sorry meant refreshing. Just need to go to Permalinks in Dashboard and Save.

    Plugin Author Andy Fragen

    (@afragen)

    Category Colors really has nothing to do with translating URLs and the link I’m using for the legend comes from a core function. Unfortunately I’m not sure how to proceed.

    Plugin Author Andy Fragen

    (@afragen)

    It seems that WPML also translates the category slug. As such, any Category Colors settings disappear as they are based upon the slug.

    Perhaps an issue with WPML to not translate the category slug and only translate the category name would help.

    Plugin Author Andy Fragen

    (@afragen)

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Colors disappear with WPML multi-language site’ is closed to new replies.