EO Permalink URL's for WPML or language translation

WordPress Event Management, Calendars & Registration Forums Request A Feature EO Permalink URL's for WPML or language translation

This topic contains 1 reply, has 2 voices, and was last updated by  Stephen Harris 8 years, 8 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #22172

    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
    #22213

    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
Viewing 2 posts - 1 through 2 (of 2 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.