Language files in PRO

Home Forums Calendar Products Events Calendar PRO Language files in PRO

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1023909
    Marcel Stephan
    Participant

    Hi, 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?

    #1024040
    Cliff
    Member

    Marcel,

    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:

    Screenshot 2015-11-10 23.15.08

    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.

    #1024224
    Cliff
    Member

    Marcel, 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.

    #1075528
    Support Droid
    Keymaster

    This 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.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Language files in PRO’ is closed to new replies.