Hello, i can’t change the language of the ticket into Dutch language. The rest of the plug-in is correct translated (po/mo). I changed everything myself manual (in the php file of ticket) except the date (day of the week, month). Is there a way to change this and were can i find the file? Day of the week and month is showing correct translated on all the other pages.
This is actually fixed in the alpha branch of 3.1.X (3.1.37). If you open up plugins/event-espresso/espresso.php and go towards the bottom of the file and look for:
it’s line 1137 in the version that I’m looking at. And about 20 lines above that there is a similar fix for the invoice. Change the ‘plugins_loaded’ to ‘init’.
It turns out the invoice changes are more extensive. In espresso.php you’ll find:
//Export PDF invoice
if (isset($_REQUEST['download_invoice']) && $_REQUEST['download_invoice'] == 'true') {
if (file_exists(EVENT_ESPRESSO_GATEWAY_DIR . "/invoice/template.php")) {
require_once(EVENT_ESPRESSO_GATEWAY_DIR . "/invoice/template.php");
} else {
require_once(EVENT_ESPRESSO_PLUGINFULLPATH . "gateways/invoice/template.php");
}
}
Which can be changed to:
//Export PDF invoice
function espresso_export_invoice() {
if (isset($_REQUEST['download_invoice']) && $_REQUEST['download_invoice'] == 'true') {
if (file_exists(EVENT_ESPRESSO_GATEWAY_DIR . "/invoice/template.php")) {
require_once(EVENT_ESPRESSO_GATEWAY_DIR . "/invoice/template.php");
} else {
require_once(EVENT_ESPRESSO_PLUGINFULLPATH . "gateways/invoice/template.php");
}
}
}
add_action('init', 'espresso_export_invoice', 30);
Viewing 3 reply threads
The support post ‘Can't change language of the ticket’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.