Translating events
-
Hello! My experience with translating pages on WordPress has been that for every page there’d be a + sign and when I hit it, it creates the equivalent of the page where I type my translation. But how does this work with Sugar Calendar events? When I look at my events I do not see anything to create the page equivalent in another language. By the way, I use the Polylang plugin for translation.
-
Hi @dmikra,
Thank you for the suggestion! Currently, there isn’t an out-of-the-box “+” option to enable event translations. I’ve however, forwarded this request to our development team for consideration and will share any updates on the same as they become available.
Kind regards.
Does that mean that there is no way to translate events? on Sugar Calendar?
Hi @dmikra,
Thanks for the follow-up question!
Since events in Sugar Calendar are stored as a custom post type, you can already translate the event title and description. However, the event attributes (for example, location, category, cost, etc.) are not yet translatable. Our dev team has this on their roadmap, and we hope to include it in a future release.
In the meantime, you can translate Sugar Calendar by following this guide on How to Translate a WordPress Plugin
That tutorial covers two main approaches:
- On-site translation using the Loco Translate plugin
- Local translation on your computer with a tool like Poedit
Please note that days of the week and month names are handled by WordPress’s locale settings (Settings → General), so you won’t see them in Loco Translate, they’ll automatically display in your site’s language.
I hope this helps! If you have any other questions, just let us know.
Actually translating the event title and description would be enough for me. But where do I do that? You mentioned posts, but when I go to the posts sections of WordPress, nothing’s there; the only place where I see my events is within the Sugar Calendar plugin, and there I cannot find any place where I can insert the translation.
I think I might have figured it out. I use Polylang and I went to its settings and activated SC-related custom post types. After that, when I open an event in Sugar Calendar, I have the usual Polylang’s + symbol where I can create an equivalent page in a different language. I hope this works.
Tried to figure it out, but couldn’t.
In Polylang plugin settings, I activated the checkmarks next to:
Custom post types
- Events (sc_event)
and
Custom taxonomies
- Calendars (sc_event_category)
- Tags (sc_event_tags)
Now, whenever I create a Sugar Calendar event, I get the usual Polylang + symbol to create a translation. I hit that + symbol and this takes me to creating the event in the second language, which I thought is just what I need. However, now, in this second-language event, my previously created Event Tag is not available. Neither my calendar is.
Interestingly, when I go back to Polylang settings and deactivate the taxonomies “Calendars (sc_event_category)” and “Tags (sc_event_tags)”, the second-language event page starts to display my usual calendars and my usual tags again. So I thought this is just what I needed, and I assigned the same calendar and the same tag to my second-language event as it was in the first language.
So I went ahead and inserted a block into my page to display a list of my Sugar Calendar events. However, now when I open the first-language version of my wrebsite, this list displays both my first-language event and my second-language event one after another. It was not my intention. I expected that the first-language event would be displayed when the first-language version of the website is open, while the second-language event would do so when for the second-language version.
As you see, there’s confusion here, and I would love to get some of your help with this.
Hi @dmikra,
Thanks for the follow-up and feedback on your experience.
I’m afraid this is a current limitation with the Sugar Calendar plugin as it’s not yet translation-ready, and this explains why the event attributes, including categories and tags, are not translatable. The Sugar Calendar blocks do not also have the option to show the events based on the current locale as yet.
As shared, the team already has this on their radar for discussion and consideration on how to improve the experience here, and I’ll be sure to pass along your feedback.
In the meantime, I’m afraid we do not have a workaround that would allow for the implementation as described, but I hope such an option will be available in a future release.
Kind regards.
The workaround I’ve found:
Install Polylang plugin. In the Settings, in Custom post types and Taxonomies, activate the option “Events (sc_event)” (do not activate Custom Taxonomies).
Now, when creating a new event, you will have a + symbol to create an equivalent page in another language. Follow that symbol to create the equivalent page.
When creating the event in the original language, assign it a tag that would be specific for that language, for example, “Music Events EN”
When creating the equivalent page in the second language, assign a tag that would be specific for that second language, for example, “Music Events DE”
When building the Events List for the page in the primary language, in the block options select the tag for that language, i.e. “Music Events EN”. When building the same for the page in the second language, select the second-language tag i.e. “Music Events DE”.
This way you will end up with the necessary event lists for each language, where the events are interconnected between languages.
The good thing is that Polylang automatically takes care of translating all the event attributes, I mean, words like “Date”, “Time”, “Description”, etc.
Hi @dmikra,
Thanks for writing back and sharing your workaround. This should work great to isolate the events based on their respective language.
Kind regards.
The topic ‘Translating events’ is closed to new replies.