Support

Home Forums Event Espresso Premium How to Translate QTY* in ticket selector

How to Translate QTY* in ticket selector

Posted: December 26, 2016 at 6:41 am


ardiaful

December 26, 2016 at 6:41 am

I have translated QTY in po file, and Qty, but translation has no effect. How can this be tranlated?


ardiaful

December 26, 2016 at 9:37 am

Please also help with this “Sold Out” translation in ticket selector, as I’ve translated it in po file without effect.

https://postimg.org/image/q27wjc909/


Tony

  • Support Staff

December 27, 2016 at 4:04 am

Are you using the PO file from our glotpress project?

From here: https://translate.eventespresso.com/projects/event-espresso-4

Do you have that PO file name correctly? It should be event_espresso-{locale}.PO (and the accompanying MO file) and placed within /wp-content/uploads/espresso/languages/

Try clearing your session by visiting the registration-cancelled page on your site and retesting. Do the translations show then?


ardiaful

December 27, 2016 at 4:10 am

Yes, I’m using last version of the po file from glotpress and the file name is correct. As I said, I’ve translated both “QTY” and “Qty”, but there is no such a term as “Qty*” in the po file. I’ve retest, but translation does come up.


Josh

  • Support Staff

December 27, 2016 at 10:07 am

Hi there,

It looks like Qty* has yet to be added to the language files. In the meantime, you can use this filter to translate the string:

FHEE__ticket_selector_chart_template__table_header_qty

The Sold Out text string has an html space in the string:

Sold Out, and can be found on GlotPress here.


ardiaful

December 28, 2016 at 3:58 am

Can you help with how to use the filter: FHEE__ticket_selector_chart_template__table_header_qty


Tony

  • Support Staff

December 28, 2016 at 4:42 am

Something like this should work:

https://gist.github.com/Pebblo/6c8c3c8d84b9d77608d9116bfe012dec

That would display ‘CustomQty*’ so just replace the text to return with your own.

You can that to your themes functions.php file or better yet a Custom Functions Plugin.

The support post ‘How to Translate QTY* in ticket selector’ 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