it has a template file at wp-content/plugins/events-manager/templates/templates/my-bookings.php
Using templates: http://wp-events-plugin.com/documentation/using-template-files/
Translating EM: http://wp-events-plugin.com/documentation/translating/
Thanks for your answer.
Unfortunately i can´t find the original terms in this way.
I think that i would find the transleted words in the de_DE.mo, too, if I take into account the upper and lower case:
“meine” or “meine Reservierungen”.
But i can only find similar entries, for other parts/templates.
Could it be that you’re referring to page names? If so, you can edit them in your admin area, some stuff is installed first time round and saved to the database, including texts etc. in your Events > Settings > Formatting section. You’d need to change htose to reflect on your site.
Hi Marcus!
Now i see the options for create a own site.
This is a solution to edit the translation for the headline (“My bookings”). Great!
So i only need a solution to translate the options for Status, e.g. “approved” (it´s already translated to “genehmigt”, but i want change it to “bestätigt”).
you can try to hook into em_booking_get_status filter.
e.g.
function my_em_mod($status,$EM_Booking){
/*custom codes below*/
/**/
return $tatus;
}
add_filter('em_booking_get_status','my_em_mod',1,3);
Here’s two examples of how you can do this by hooking into gettext, which is when it’s translated (edit translation texts accordingly):
//Rewrite any gettext field
function my_em_text_rewrites($translation, $orig, $domain) {
switch ($orig) {
case 'Booking is now fully paid and confirmed.' :
$translation = 'your text here';
break;
case 'Repeat this again for what you want to translate (needs to be exactly same text in english)' :
$translation = 'your text here';
break;
}
return $translation;
}
add_action ( 'gettext', 'my_em_text_rewrites', 1, 3 );
or
//Rewrite any gettext field
function my_em_text_rewrites($translation, $orig) {
$translation = str_replace('Booking','Ticket',$translation);
$translation = str_replace('booking','ticket',$translation);
return $translation;
}
add_action ( 'gettext', 'my_em_text_rewrites', 1, 2 );
Hi agelonwl, hi Marcus!
Thank you for the answers. I´ll try it.