Back to ProEvents Support

peppad
peppad

Thanks for a great plugin, but I can't seem to get it to work with translate plugin, the content doesn't seem to translate at all (eventlist/eventpage only shown in default language). Tested in a clean install build 351, translate 1.1.7 and ProEvents 2.5.6. One additional language enabled and content added in all fields in both languages.

Or am I missing something?

Pages http://pastebin.com/xq0k0W0k

Last updated

ChadStrat
ChadStrat

So two things: 1) you need to make sure that in the CMS editor for the event list and details pages you have the alternate languages URL field set up to match the default URL params. Secondly, there are two ways to translate the content. I need to figure out a way to automate this...but I will need to do some research. a) you can simply edit the event list and event details views to reference event_item.event.content instead of event_item.content. likely the easies solution. However, this negates any individual edits you make within the generatedDates item content as that refers to the originating event item, not the generated item. Not idea, but likely fine for most people. b) you can actually go through each generated date team and switch between languages for each individual instance. No ideal for anyone needing customization. Having said that....anyone editing the content of individual event instances would need to go through each one anyway? So the best that I could do, and need to do, is auto-copy translated content from the originating date to the generated date instances. I will work on this.

ChadStrat
ChadStrat

So, I just wrote some code and am testing it. I think I now have automated translation updating for generated events. I will get back with an expected patch date.

ChadStrat
ChadStrat

v2.5.7 has changes to better accommodate translation copy from originating parent event to its generated date instances. Thank you for pointing this out.

peppad
peppad

Thanks for a the help and update, really great. Unfortunately I still can't get it to work, and I'm not really sure I understand how you mean it's supposed to be set up. None of my content is translated (not using generated dates). Would be so grateful if you could write a step-by-step on how to get basic translation working.

Thanks in advance, really appreciate your help!

ChadStrat
ChadStrat

so, I won't be able to help you with learning Translate plugin. But in short - if you understand translating pages for Translate, all you need to do is translate the inputs when editing/creating an event...and then follow the normal page translation protocol for the pages that list and display your events. Which to my knowledge just means you click on the URL param translation version and make sure it is set up like your default language. So if my events page url param is set up like "/event_list/:calendar?/", I would click on the translation language "it" for Italy for example, and then make sure that same path is there - "/event_list/:calendar?/" and then to access it would be http://mysite.com/event_list/ for default and http:mysite.com/it/event_lsit/ for the Italian version. I have tested locally and all works well.

peppad
peppad

Everything was working after the update, but I had to create the content again after updating (or update cache? either way, old events didn't translate at first) – it took a while to figure this out but now everything is running as expected!

Thanks again for the update!

1-7 of 7