Support

Home Forums Event Espresso Premium Please change a few lines in multi_registration_page_display.php and cart.php.

Please change a few lines in multi_registration_page_display.php and cart.php.

Posted: April 8, 2014 at 4:58 pm


Wim Brouwer

April 8, 2014 at 4:58 pm

In EE3 a piece of text doesn’t get translated because of a small error. Can you change it in future releases?
In event_espresso > templates > multi_registration_page_display.php line 74:
please change:
echo ‘<h4 class=”section-heading”>‘.__(‘Price Type:’) . ‘ ‘ . stripslashes_deep($meta[‘price_type’]).$attendee_quantity.'</h4>’;
into:
echo ‘<h4 class=”section-heading”>‘.__(‘Price Type:’, ‘event_espresso’) . ‘ ‘ . stripslashes_deep($meta[‘price_type’]).$attendee_quantity.'</h4>’;

This would be great for foreign languages. It was a whole tour to find out where this text was hidden.

Also in event_espresso > includes > functions > cart.php a few words are not translatable:
line 864: ‘ – Attendee – ‘
line 868: ‘ – Attendee – ‘
line 875: CLEAR FIELDS
I now translated it, but in future releases I have to repeat this over and over. A good solution would be welcome.

In return I would like you to look at my last comment that your solution to copy info from one attendee to others with a special javascript does not work if people order more than one event or if there are more than one price type. Please help, because my client really wants this solution without the standard copy solution.

The page to start is on: http://www.paleisconcerten.nl/overzicht


Wim Brouwer

April 8, 2014 at 5:04 pm

Sorry, I forgot one text in cart.php
on line 845: $var .= ‘<label>Copy from: </label>’;
It would be nice if that text would also be translatable in poedit.

Wim


Dean

April 9, 2014 at 5:10 am

Thanks Wim!

I’ve added these to the ticket system to look into.

The support post ‘Please change a few lines in multi_registration_page_display.php and cart.php.’ 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