Home › Forums › Calendar Products › Events Calendar PRO › Translating Calendar Elements
- This topic has 9 replies, 3 voices, and was last updated 7 years, 2 months ago by Tomonori.
-
AuthorPosts
-
January 16, 2017 at 10:43 pm #1219449TomonoriParticipant
Trying to translate certain remaining elements on the Calendar Pro Plugin:
http://cal.peaceofcode.net/events/
For example the Headers for “Monday, Tuesday, Wednesday, etc…”
and at the bottom “<< December” and “January >>”January 17, 2017 at 8:47 pm #1220057Geoff B.MemberGood evening Tomonori and welcome back!
Thank you for reaching out to us.
I would love to help you with this topic.I notice that you are using WPML.
If you haven’t already done so, please make sure to follow our guides on that topic:- https://theeventscalendar.com/knowledgebase/setting-up-the-events-calendar-with-wpml/
- https://theeventscalendar.com/knowledgebase/creating-translations-for-events-using-wpml/
To translate days and Months, I would recommend using the String translation Interface in WPML.
Make sure that you search for those untranslated terms and that you translate them for all domains (not just the Events Calendar Pro), but also the WordPress text domain.
Let me know how that goes.
Best regards,
Geoff B.January 18, 2017 at 10:12 pm #1220761TomonoriParticipantThanks Geoff,
I have removed WPML.
Specifically, I am trying to translate:
1. The fields on this page:
http://cal.peaceofcode.net/events/community/add2. The language in emails that go out to users when they submit an event.
Can you please tell me where these files are?
January 19, 2017 at 6:08 pm #1221244TomonoriParticipantThese are the instances I need to translate to Japanese.
– Submit event form
– E-mail content for when someone submit a new event.January 19, 2017 at 10:36 pm #1221369Geoff B.MemberGood evening Tomonori,
Thank you for writing back.
To become an expert translator of our plugins, I would recommend reading these 2 articles:
- https://theeventscalendar.com/knowledgebase/how-to-override-plugin-language-files/
- https://theeventscalendar.com/knowledgebase/changing-the-language-on-your-calendar/
Additionally, the most recent version of all translation files for our plugins is always found here: http://translations.theeventscalendar.com/projects
To achieve your goal, you will need to open up the language files of our free the Events Calendar plugin, of our the Events Calendar Pro plugin and of our Community Events plugin.
Using Poedit, you can simply search for any string you want to translate in those files and make your own adjustments.
Let me know if that helps.
Have a great day!
Geoff B.
January 19, 2017 at 11:18 pm #1221384TomonoriParticipantThis link doesn’t work.
http://translations.theeventscalendar.com/projectsAnd can you please just tell me, for example, where I can change the existing text shown in this screenshot (I don’t care if I am doing it the ‘wrong’ way for now, I can fix it later).
January 21, 2017 at 9:06 pm #1221976Geoff B.MemberGood evening Tomonori,
I am sorry the link did not work.
As you have guessed, the proper way to do this is to use translation files.Since it looks like you are pressed for time, there are 2 very fast ways to do this:
- Use and adapt the code snippet found at the bottom of this page: https://theeventscalendar.com/knowledgebase/change-the-wording-of-any-bit-of-text-or-string/ . Use that code in the functions.php file of your WordPress theme
- You could simply override the strings in question directly in our plugins file. The complete list of the view files in our Themer’s guide .
For example, to override Community Event’s front-end submission file (which looks like the screenshot you have sent me), the view files are all located in /wp-content/plugins/the-events-calendar-community-events/src/views/
Let me know how that goes.
Best regards,
Geoff B.January 25, 2017 at 5:10 pm #1224097TomonoriParticipantGot it. Thanks
January 25, 2017 at 11:15 pm #1224172Geoff B.MemberGood evening Tomonori,
I am super stoked that this worked out for you!
You are welcome back in our support forums any time 🙂
For now, I am going to close this thread.
Have a great week!
Geoff B.
-
AuthorPosts
- The topic ‘Translating Calendar Elements’ is closed to new replies.