Home › Forums › Ticket Products › Eventbrite Tickets › string translation
- This topic has 2 replies, 3 voices, and was last updated 7 years, 11 months ago by Support Droid.
-
AuthorPosts
-
May 3, 2016 at 3:10 am #1109918edebexParticipant
Hi,
I need support to find a string that I need to translate and I don’t find…I’ve edited the po files in the 3 plugins folders I’m using (the-events-calendar, events-calendar-pro and the-events-calendar-eventbrite-tickets). It works perfectly for 99% of the strings. But there is 1 string that I cannot translate : the word “free” = event ticket price. The string “Free” is translated where it appears in all the po files but remains in english on the site.
Do you know why? Can you help me please?See my event page
https://edebex.com/event/la-gestion-de-tresorerie-un-facteur-essentiel-a-la-croissance-de-votre-activite-ucm-brabant-wallon/
Screenshot with the word highlighted
https://drive.google.com/file/d/0B-BUT9qEm8-iTVB4QldwMU5EZVU/view?usp=drivesdkThanks
May 3, 2016 at 10:13 am #1110130NicoMemberHey @edebex,
Thanks for reaching out to us! I’ll help you here, but first let me say that editing the language file (.po) is not recommended as your changes will be overwritten with plugin updates. There’s a really handy plugin to do this safely: Say What?.
Now regarding the string for Free not translating there, I’m not sure why that happens. If you decide to use the above mentioned plugin it might work, if not you can use the followin snippet (just paste it in your theme (or child theme) functions.php file):
/*
* Change the Free ticket label
*/
function change_free_label ( $cost, $post_id, $with_currency_symbol ) {if ( $cost == 0 || $cost == "" || $cost == "Free" ) return 'gratuit';
}
add_filter('tribe_get_cost', 'change_free_label', 20, 3);
Please let me knows if any of those solutions work for you,
Best,
NicoMay 18, 2016 at 9:35 am #1115941Support DroidKeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘string translation’ is closed to new replies.