WP Event Organiser is not far from 100% WPML compatible. The only issue remaining seems to be the fixed URL setup in EO Permalink URL structures for events. With various programmer insights, this seems to be the only part that cannot be translated when using WPML.
Would be a nice Update as everything else is not a problem with WPML.
Miho Karlic
Hi Miho,
As we’ve previously discussed the URL structure is not immediately translatable because its a user-provided value rather than a hard-coded one. However, the properties of events and taxonomies are filtered before events and the taxonomies are registered (see https://github.com/stephenharris/Event-Organiser/blob/bdf98f3b489ee3adc132017ec8539ce724645365/includes/event-organiser-cpt.php#L87 and https://github.com/stephenharris/Event-Organiser/blob/bdf98f3b489ee3adc132017ec8539ce724645365/includes/event-organiser-cpt.php#L302)
So you could over-ride that a replace the URL structures with translatable text. From what you’ve previously told me the issue is then getting WPML to recognise the text. As far as I’m aware, providing a translatable string as the URL slug should be sufficient for WPML to pick it up and add the additional rewrite rules for each language. (Perhaps you need to flush the rewrite rules after the change)?
You could try using this plugin https://wordpress.org/plugins/monkeyman-rewrite-analyzer/ to inspect the rewrite rules as that may shed some light on the rules that WPML is adding. Unfortunately I do not know WPML enough to be able to help debug this issue any further.
Stephen Harris