"Add to Cart" in WooTickets not being translated

Home Forums Ticket Products Event Tickets Plus "Add to Cart" in WooTickets not being translated

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #924088
    Robert Staddon
    Participant

    For some reason the “Add to Cart” text in views/wootickets/tickets.php (line 82) isn’t being translated even though it’s being run through esc_html_e(). Why is this? (See http://iblp.org.mx/evento/conferencia-familiar/)

    By the way, this is a WooTickets issue and not a WooCommerce issue because all of the “Add to Cart” buttons in the Online Store are properly translated (http://iblp.org.mx/recursos/).

    Also by the way, I am using the correct most up-to-date Spanish language translation file (see https://theeventscalendar.com/support/forums/topic/messed-up-tribe-wootickets-es_es-po-in-latest-wootickets-distribution/#post-923895)

    #924198
    Brian
    Member

    Hi Again,

    Sorry for the issues you are having with the translations.

    All our translations are provided by the community and provided as is we do not do them ourselves so sometimes there are issues and since this one has been broken for awhile it looks like this was missed.

    And it uses the text domain for the WooCommerce Tickets Plugins and not WooCommerce itself so that is why WooCommerce does not translate it.

    I do have some coding you can use to translate it yourself.

    https://gist.github.com/jesseeproductions/48897101078d0ee74e69

    Add that to your theme’s function.php and change Add to cart(Translate) to the text you would like it to be.

    Let me know if that works.

    Thanks

    #924688
    Robert Staddon
    Participant

    This worked!

    For Spanish I used “Añadir al carrito”

    Thanks!

    #924689
    Robert Staddon
    Participant

    By the way, in my earlier reply the &ntilde was automatically translated to HTML. I did have to use the HTML entity “&ntilde” to get the accent on the n.

    #925401
    Brian
    Member

    Thanks for the information and glad that resolves the issue.

    Closing out this ticket, but if you have any other issues related to this or something new, please create a new one.

    Thanks

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘"Add to Cart" in WooTickets not being translated’ is closed to new replies.