Hi Stephen
I am confused how to change the thank message. My site is in Dutch. Still testing in sandbox mode. Using Mollie and only ideal payment. After payment has been made, returning to the order form I get this message: Thank you for your booking. You shall receive an e-mail containing your tickets shortly What do I need to change? I have found this in the documentation: function myprefix_set_offline_booking_message(){
return '... new message ...';
}
should I change it to this<br /> function myprefix_set_mollie_booking_message(){
return '... my message ...';
}
and then add this to the functions.php?
In the forum I also found something about the booking status in french, but still remain unsure how to return a dutch text or translation in the thank you message. What should I do to return a Dutch text?
Kind regards, Tony
-
This topic was modified 10 years ago by
Tony.

Tony
Hi Tony,
By default the message reads:
Thank you for your booking. You shall receive an e-mail containing your tickets shortly
and is translated, provided a translation is available for it (I’ll double check if a translation in Dutch has been provided, and if so, it’ll be included in the next update.)
Alternatively you can replace that message on a gateway using the filter:
eventorganiser_pro_get_option_booking_complete_message_{gateway}
where {gateway}
replaced by the gateway identifier. In this case that is ideal-mollie
.
So to change that message:
add_filter( 'eventorganiser_pro_get_option_booking_complete_message_ideal-mollie', 'my_ideal_booking_complete' );
function my_ideal_booking_complete(){
return '... message ...';
}

Stephen Harris
Hi Tony,
I’ve just checked, an a translation in Dutch for that text isn’t available. The link in my previous post details how to translated the plug-in – alternatively, a completely different text can be provided using the method demonstrated above.

Stephen Harris
Hi Stephen,
Thanks for the code and support. It is working now.
I have another question which is related:
When the payment fails: How to change the message if the payment was not received.
Now it shows the same message as if the payment was made.
Also I have this text which I would like to change.
“You have not selected any tickets”
Is it possible for me to make changes in the file “eventorganiserp-nl_NL.json”?
I had tried eariler to make changes in the file, but the changes did not appear in the front-end.
and lastly how to change “Select your bank” to a “Dutch text”
The pop-up allowing the user to select their bank
Sorry a lot of questions, but that’s it.
Many thanks
Kind regards,
Tony

Tony
The “You have not selected any tickets” text hasn’t had a translation provided for it (it’s in Pro, and details on how to provide translations can be found here: http://docs.wp-event-organiser.com/i18n) – that includes details on making site-specific changes.
The eventorganiserp-nl_NL.json
is a json
copy of the corresponding .mo
file, itself generated from the human readable .po
file of the same name. The .json
is used solely for the form customiser and is not used on the front-end. To make changes to the front-end you’ll need to edit the .po
file and then generate the .mo
file from that (using, for example, http://poedit.net/).
However, you can also submit missing/incorrect translations via the link above and they’ll be included in the next update.
The Select your bank is text in the iDeal extension which has no translations provided at this point (I’ll be in touch on this point).

Stephen Harris