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
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.
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.
Sorry meant refreshing. Just need to go to Permalinks in Dashboard and Save.
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.
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.