Home › Forums › Ticket Products › Event Tickets Plus › Translation not applied
- This topic has 17 replies, 2 voices, and was last updated 8 years, 7 months ago by
Geoff B..
-
AuthorPosts
-
March 8, 2016 at 3:51 am #1086189
Jitske Nipius
ParticipantI’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 cart3. in conrfirmation e-mail:
You’ll receive your tickets in another emailPlease help, because this is keeping us from start selling tickets now
March 10, 2016 at 12:50 am #1087030Geoff B.
MemberGood 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 translation2. on the event page:
‘add’ for add to cartI 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 emailOnce 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.March 10, 2016 at 4:51 am #1087111Jitske Nipius
ParticipantThanks 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,March 10, 2016 at 11:27 am #1087344Geoff B.
MemberHey 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.
March 11, 2016 at 12:38 am #1087619Jitske Nipius
ParticipantYes, 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?
March 11, 2016 at 1:50 pm #1087978Geoff B.
MemberGood 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.
March 14, 2016 at 1:26 am #1088344Jitske Nipius
ParticipantThis is de .po file I used:
http://translations.theeventscalendar.com/projects/event-tickets-plus/nl/defaultMarch 14, 2016 at 11:33 am #1088570Geoff B.
MemberGood afternoon Jitske,
Thank you. I just went ahead and did the following:
- Downloaded the event-tickets-plus-nl_NL.po and event-tickets-plus-nl_NL.mo files
- Replaced the files found in /wp-content/plugins/event-tickets-plus/lang with that download
- Switched my WordPress site Language to Nederlands
- Bought a ticket using WooCommerce
- 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/langLet me know how that goes.
Best regards,
Geoff B.March 14, 2016 at 12:45 pm #1088636Jitske Nipius
ParticipantHi 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.March 14, 2016 at 1:34 pm #1088675Jitske Nipius
ParticipantHi 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.
March 15, 2016 at 9:56 am #1089214Geoff B.
MemberGood 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.
March 15, 2016 at 11:57 am #1089274Jitske Nipius
ParticipantHi 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.phpMarch 16, 2016 at 11:13 am #1089834Geoff B.
MemberGood 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.March 16, 2016 at 12:30 pm #1089917Jitske Nipius
ParticipantThis reply is private.
March 17, 2016 at 10:55 am #1090400Geoff B.
MemberHi 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. -
AuthorPosts
- The topic ‘Translation not applied’ is closed to new replies.
