Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Can't change language of the ticket | Event Espresso - Staging Server

Support

Home Forums Event Espresso Premium Can't change language of the ticket

Can't change language of the ticket

Posted: February 17, 2014 at 1:13 pm

Viewing 3 reply threads


Hans van der Woerd

February 17, 2014 at 1:13 pm

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.

Best regards,

Hans

version 3.1.36.4.P


Sidney Harrell

  • Support Staff

February 17, 2014 at 1:23 pm

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:

add_action('plugins_loaded', 'espresso_export_ticket', 40);

it needs to be changed to:

add_action('init', 'espresso_export_ticket', 40);

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’.


Hans van der Woerd

February 17, 2014 at 2:56 pm

Hello, thanks it’s working! I can’t find the line for the invoice you mentioned.


Josh

February 18, 2014 at 11:40 am

Hi Hans,

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.

Event Espresso - Staging Server