Home › Forums › Calendar Products › Events Calendar PRO › How to define a different slug per language: eventos, events, esdeveniments
- This topic has 7 replies, 3 voices, and was last updated 10 years, 10 months ago by
Support Droid.
-
AuthorPosts
-
June 9, 2015 at 2:21 am #968057
Mandarina
ParticipantHi,
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 /esdevenimentsI haven’t seen a option for the GUI but I really need this, asap!
June 9, 2015 at 5:33 pm #968290Brian
MemberHi,
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
June 11, 2015 at 3:06 am #968721Mandarina
ParticipantHi there,
thanks for your reply,
Not even hard coding it?
thanks!
June 11, 2015 at 5:53 am #968738Brian
MemberHi,
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
June 12, 2015 at 12:12 am #968952Mandarina
ParticipantI 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?
June 12, 2015 at 12:13 am #968954Mandarina
ParticipantSorry,
That’s what I replaced, not the single event slug..
$this->getOption( 'eventSlug', 'event' )June 12, 2015 at 5:30 am #968987Brian
MemberI 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
July 7, 2015 at 6:32 am #984306Support Droid
KeymasterThis 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. -
AuthorPosts
- The topic ‘How to define a different slug per language: eventos, events, esdeveniments’ is closed to new replies.
