Translation not applied

Home Forums Ticket Products Event Tickets Plus Translation not applied

Viewing 15 posts - 1 through 15 (of 18 total)
  • Author
    Posts
  • #1086189
    Jitske Nipius
    Participant

    I’ve translated everything I wanted in .po. But even after that the translation is not applied.

    These are the things I would like to translate:
    1. in ticket email:
    Check in for this event, Scan this QR code at the event to check in.

    2. on the event page:
    ‘add’ for add to cart

    3. in conrfirmation e-mail:
    You’ll receive your tickets in another email

    Please help, because this is keeping us from start selling tickets now

    #1087030
    Geoff B.
    Member

    Good evening Jitske and welcome to the Events Calendar Support forum!

    Thank you for reaching out to us.
    I would love to help you with these topics.

    1. in ticket email:
    Check in for this event, Scan this QR code at the event to check in.

    That is a very good point. I am not seeing a translatable string for this sentence found in /event-tickets-plus/src/Tribe/QR.php line 106

    I will open a ticket to make it a translatable string.
    In the meantime, it looks like you might have to hardcode the translation

    2. on the event page:
    ‘add’ for add to cart

    I have helped one other customer solve the exact same issue. If my memory serves me right, the issue was that the po/mo files used where not updated (sometimes that happens with the files that come with the plugin). Your best bet would be to download the latest version of the language files here: http://translations.theeventscalendar.com/projects

    3. in conrfirmation e-mail:
    You’ll receive your tickets in another email

    Once again, this string should be in the tickets plus language file. I would recommend updating the file.

    Let me know how that goes.

    Best regards,
    Geoff B.

    #1087111
    Jitske Nipius
    Participant

    Thanks for your answer.
    1. via /event-tickets-plus/src/Tribe/QR.php line 106 worked!

    2. I’ve updated the language files and this is also solved.

    3. Not solved yet.
    Strange enough it now says: You’ve been added to our reservation list!
    So there a different text since the new .po but not the Dutch text I am looking for. In the .po files I can’t find this text to translate,

    #1087344
    Geoff B.
    Member

    Hey Jitske,

    I’m glad you have successfully solved 2 out of 3 issues. Congratulations on that.

    Let’s try to work on number 3 together. Would you mind sharing with me a copy of the Dutch po/mo files you are using for Tickets Plus (via Dropbox or Google Drive) ?

    Have a great day!

    Geoff B.

    #1087619
    Jitske Nipius
    Participant

    Yes, I am already very happy with 2 out of 3;-)

    I can share via Dropbox. Can you give me the mailaddres to share it with?

    #1087978
    Geoff B.
    Member

    Good afternoon Jitske,

    To share the link, we unfortunately do not provide email support, but to make sure this link stays private, you can use the “Private reply” option 🙂

    Have a good week-end,

    Geoff B.

    #1088344
    Jitske Nipius
    Participant
    #1088570
    Geoff B.
    Member

    Good afternoon Jitske,

    Thank you. I just went ahead and did the following:

    1. Downloaded the event-tickets-plus-nl_NL.po and event-tickets-plus-nl_NL.mo files
    2. Replaced the files found in /wp-content/plugins/event-tickets-plus/lang with that download
    3. Switched my WordPress site Language to Nederlands
    4. Bought a ticket using WooCommerce
    5. Received the WooCommerce order email with the following “Let op: je krijgt je tickets in een andere mail, zodra de bestelling in onze systemen afgerond is.”

    My dutch is not very good, but I believe this is the correct translation.

    My best recommendation would be to re-download the po/mo files and overwrite the ones found in /wp-content/plugins/event-tickets-plus/lang and see how that goes.

    Some of our users tend to favour putting translations in /wp-content/languages/plugins instead.
    That’s also a possibility, but just to be extra sure these are the ones picked up by the plugin, I would remove the translations files found in /wp-content/plugins/event-tickets-plus/lang

    Let me know how that goes.

    Best regards,
    Geoff B.

    #1088636
    Jitske Nipius
    Participant

    Hi Geoff,

    Thanks for your help. Probaby there is an other error in the translation.
    At first I saw this phrase in de confirmational email: You’ll receive your tickets in another email.

    After downloading the .po I see this:
    You’ve been added to our reservation list!
    But I expected to see this: You’ll receive your tickets in another email (or the Dutch translation of it).
    What you saw is perfect! That’s what I want, but I don’t know where the phrase You’ve been added to our reservation list! is coming from.

    #1088675
    Jitske Nipius
    Participant

    Hi again,

    Maybe you can tell me where I can find this phrase hardcoded. Then I’ll translate in there. That’s probably the quickest solution.

    #1089214
    Geoff B.
    Member

    Good afternoon Jitske,

    In the end, it is totally up to you to decide.
    As you know, the only issue with hardcodes is that you’ll have to redo them every upgrade 🙁

    You can find the string at /event-tickets-plus/src/Tribe/Commerce/WooCommerce/Main.php line 404

    Let me know if that helps.

    Have a great day!

    Geoff B.

    #1089274
    Jitske Nipius
    Participant

    Hi Geoff,

    Ofcourse I prefer a better solution than hardcoding. But ticket sales has started today and this is confusing for the buyers.

    Unfortunately It’s stil not solved.
    In line 404 I did find “You’ll receive your tickets in another email.”

    But in my email it says: You’ve been added to our reservation list!
    And I still can’t find where this phrase comes from. It’s not in the .po and not in /event-tickets-plus/src/Tribe/Commerce/WooCommerce/Main.php

    #1089834
    Geoff B.
    Member

    Good afternoon Jitske,

    Hmmm, I am sorry this last part is proving more difficult. But I am sure we can get to the bottom of it 🙂

    So let’s just make sure we are on the same page.

    To use the translations files:

    • The .po/.mo files (event-tickets-plus-nl_NL.po and event-tickets-plus-nl_NL.mo) contained by default with the plugin (version 4.05) are not up to date and are indeed missing the “You’ll receive your tickets in another email.” string. If you are confortable with the process, you can update these files from the .pot file.
    • As a simpler alternative, the updated version (that contain the missing string) can be found at http://translations.theeventscalendar.com/projects/event-tickets-plus/nl/default?page=4 (you can see them on page 4). If you download these files, make sure you overwrite the version in place at /event-tickets-plus/lang. If you don’t, the older version of the po/mo file will still kick in (even if you have a better one at /wp-content/languages/plugins/)

    To hardcode the string:

     

    It is very odd that you are not seeing the string at line 404 of /event-tickets-plus/src/Tribe/Commerce/WooCommerce/Main.php. Just in case, this might be causing any confusion there is also a file with the same name found at /event-tickets-plus/src/Tribe/Main.php

    Could you do a search on the plugin folder for the following expressions “wootickets_email_message” ?

    Let me know how that goes.

    Best regards,
    Geoff B.

    #1089917
    Jitske Nipius
    Participant

    This reply is private.

    #1090400
    Geoff B.
    Member

    Hi again Jitske,

    You are so right. My bad.

    I believe my colleague George has a nice post on that specific message: https://theeventscalendar.com/support/forums/topic/message-on-ticket-receipt/

    With a simple snippet in the functions.php file of your theme, you should be good to go 🙂

    Let me know how that goes.

    Best regards,
    Geoff B.

Viewing 15 posts - 1 through 15 (of 18 total)
  • The topic ‘Translation not applied’ is closed to new replies.