How to define a different slug per language: eventos, events, esdeveniments

Home Forums Calendar Products Events Calendar PRO How to define a different slug per language: eventos, events, esdeveniments

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #968057
    Mandarina
    Participant

    Hi,

    I need to have different slugs for the event page per language,

    How can I Do so?

    I am working with WPML

    For example,

    EN /events
    ES /eventos
    CA /esdeveniments

    I haven’t seen a option for the GUI but I really need this, asap!

    #968290
    Brian
    Member

    Hi,

    Sorry for the issues, but we do not support WPML.

    We are working on making our plugins and WPML working together.

    However, it is not absolutely clear that changes are even required or would be best made in our own codebase – which already follows most or all WordPress best practices for internationalization.

    It could be that WPML itself needs to change how it works to accommodate a wider range of plugins, like our own, or alternatively it may need to introduce new facilities our plugins can interact with before we can make changes on our end.

    So it is on our roadmap, but I do not have a timeline when it might be included in a release.

    Thanks

    #968721
    Mandarina
    Participant

    Hi there,

    thanks for your reply,

    Not even hard coding it?

    thanks!

    #968738
    Brian
    Member

    Hi,

    It could be possible to maybe hard code we do not have a guide or resources on how to modify the plugin as such though. It would take going through the plugin itself and rewriting parts, which is not recommended. I can try to answer specific questions to get you started, but not much help beyond that.

    Cheers

    #968952
    Mandarina
    Participant

    I Did a test,

    Defined this function:

    function get_event_slug() {
    	$paginas = array(
    		'es' => 8,
    		'en' => 988,
    		'de' => 989
    	); 
    	$full_slug = get_permalink( $paginas[ICL_LANGUAGE_CODE] );
    	$parts = explode('/', $full_slug);
    	return $parts[ count($parts) - 2];
    }

    Replacing all occurences of

    $this->getOption( 'singleEventSlug', 'event' )

    For this

    get_event_slug()

    But It didn’t work.. in fact, in the help sections of Events settings, it still shows up the events page setted in the admin…

    Any idea what I’m missing?

    #968954
    Mandarina
    Participant

    Sorry,

    That’s what I replaced, not the single event slug..

    $this->getOption( 'eventSlug', 'event' )

    #968987
    Brian
    Member

    I am not sure what is wrong and we do not have any resources to troubleshoot this one.

    Unfortunately, WPML or related plugins cause problems with our plugins and we are unable to provide any resources to help with that for now.

    WPML is something the support team is strongly pushing to get integrated into the Events Calendar and looks like we are going to be able to put some resources to do just that. I do not have a timeline when it might be included though.

    Cheers

    #984306
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘How to define a different slug per language: eventos, events, esdeveniments’ is closed to new replies.