• Resolved edsulst

    (@edsulst)


    Hi,

    I’m using this plugin and it works great.
    I only have some troubles with translation. The translation of the backend is no problem, but on the front end (for the viewers) there are some labels that ar not translated.

    For instance I would like to change the word “Cost” into Dutch and also a couple of other words.
    I found the .mo and .po files, but I don’t get it to work as I like.
    I also tried this: https://theeventscalendar.com/knowledgebase/k/change-the-wording-of-any-bit-of-text-or-string/
    This didn’t work either, but I’m not sure if it will work for the free plugin.

    Can anybody help me out how to change the words into Dutch by using the .mo and .po files.

    My language in WordPress is already set to Dutch.

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter edsulst

    (@edsulst)

    Anybody ??

    Plugin Support Jaime

    (@jaimemarchwinski)

    Hi @edsulst

    Thanks for reaching out! I’d recommend using the third-party plugin Loco Translate in order to fix those translations.

    I hope that helps!

    Thanks,
    Jaime

    Thread Starter edsulst

    (@edsulst)

    Hi Jaime,

    I’m using the loco translate plugin.
    When I look for “Cost:” I can find one result and the translation into Dutch is correct (“Kosten:”).

    When I click “Toggle code”, I get the following:
    src/views/modules/meta/details.php:139 src/views/blocks/parts/details.php:145 src/admin-views/events-meta-box.php:261

    Only when I change something in src/admin-views/events-meta-box.php on line 261 (put some letters before the php value it’s working, but only in the backend.

    Whatever I change on the other 2 php files, it doesn’t change anything in the frontend.
    Can you please check this for me ?

    Ali Darwich

    (@tokyobiyori)

    SUPER-O EL MOPO

    Hello!

    Thanks so much for your message! When you use Loco Translate, are you clicking on “sync” to make sure all strings are up to date?

    Thread Starter edsulst

    (@edsulst)

    Yes I did click on sync.
    I also downloaded a new translation from the website and upload it using Loco Translate.

    Only de backend (admin area) is translated into Dutch, but not the frontend.
    The labels Start:, End:, Cost:, Event Category, etc are still not translated into Dutch.

    Thread Starter edsulst

    (@edsulst)

    Does anybody else have problems with the translation on the front end ?

    Hi there,

    Thanks for reaching out.

    I visited the link you shared and it appears some modifications have been made to the single events template on your site. It’s possible that this may be the reason why translations are not working.

    Could you look into this and see what you find.

    Best regards,

    Marho

    Thread Starter edsulst

    (@edsulst)

    I didn’t make any changes to the templates.
    It’s a standard plugin installation installation,

    Hi there,

    Thanks for the reply.

    I know you mentioned that you didn’t make any changes to the templates, although the author of the theme currently active on your site may have.

    I see it’s a paid ThemeForest theme that advertises an integration with The Events Calendar. This may mean they’re using a template override.

    I’d be curious to hear if this problem persists with another theme, let’s say a WordPress default theme like Twenty Twenty-Two.

    If not, this would indicate the theme you are using has another text domain.

    For example:

    <?php esc_html_e( 'Cost:', 'the-events-calendar' ); ?>

    Is what we use on our end, on both the frontend and the backend.

    However, if the theme you’re using is doing a template override on one of our views, and contains something like this:

    <?php esc_html_e( 'Cost:', 'kriya-theme' ); ?>

    (Note: I don’t have access to the theme, so the code above is just speculation.)

    Even though it’s the exact same string, it would need to be translated separately because it’s in another text domain.

    Loco Translate should be able to help with this as well. Just attempt to translate your theme. The theme author may be able to shed more light as well.

    I have a hunch this may explain the discrepancy you’re seeing on the frontend and backend.

    Can you let us know how it goes?

    Best regards,
    Leland

    Plugin Support Abz

    (@abzlevelup)

    Hi @edsulst,

    Since we haven’t heard from you in a while on this topic we will assume that the problem was fixed or is no longer applicable and with that I will mark this as resolved.

    If that is not the case, please let me know, and I will gladly remove the “Resolved” tag and try to help you further. Or you can create a new topic with the problem if you prefer.

    Best Regards,
    Abz

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Translation not working’ is closed to new replies.