Home › Forums › Calendar Products › Events Calendar PRO › Language files in PRO
- This topic has 3 replies, 3 voices, and was last updated 10 years, 2 months ago by
Support Droid.
-
AuthorPosts
-
November 10, 2015 at 12:57 pm #1023909
Marcel Stephan
ParticipantHi, I tried and tried, but somehow some translated (in Dutch) frases will not appear in the ‘Events-by-Venue’ widget.
I went to the plugins/events-calender-pro/lang took the Dutch .po file, changed it using PoEdit, saved it, used ftp to put it in the same directory on the server. But somehow the ‘Geen geplande evenementen’ is right now (it said something in English), but the ‘View all events at this venue’ is still not translated, it says ‘view all evenementen at this locatie’.
evenementen and locatie was already translated, but the other terms ‘View all’ and ‘at this’ not.
I have searched for an hour, checked every language setting and I really think I cannot solve this.
Can you?
November 10, 2015 at 9:17 pm #1024040Cliff
MemberMarcel,
Thank you for your detailed question.
I see you’re using the Venue widget.
I looked at the code in this file: /wp-content/plugins/events-calendar-pro/src/views/pro/widgets/venue-widget.php and saw that the 2 phrases you’re asking about are not currently translatable:
I will bring up this issue to the developers.
Thank you for pointing it out to us. I hope they can make it translatable in the near future.
November 11, 2015 at 8:18 am #1024224Cliff
MemberMarcel, I was mistaken. The __() means it is translatable. The error in the code is that it has the incorrect text domain.
Our developers have already fixed this in the version 4.0 major update coming in a month or so (there’s already a beta available for it).
If you really need it fixed now (don’t want to wait), you could just edit that plugin file directly (normally not the recommended way to do things, but this is a special case) by adding”-pro” to “<span class=”s1″>tribe-events-calendar” so that it reads like this:</span>
'View all ...', 'tribe-events-calendar-pro' ), $events_label_plural...Your plugin file edit would be overwritten by any future update… which is what you want anyway.
Another solution would be to add this snippet to your child theme’s functions.php:
Here: https://gist.github.com/cliffordp/ea48db01dfb96a9aebb0
But then you should remove that snippet from functions.php after the fix is added in the next release.
I’m looking forward to hearing back from you. Thanks.
February 18, 2016 at 8:30 am #1075528Support 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 ‘Language files in PRO’ is closed to new replies.

