Posted: June 26, 2014 at 12:54 pm
|
Hello, I’m trying to translate the plugin in french, – Full description of your purchases and registration information. Print it, download it, cherish it – Registration Details: Can you help me with this ? Thanks !! |
Hi, Could you give this a try: add_filter ('FHEE__payment_overview_template__order_conf_desc', 'override_confirmation_text'); function override_confirmation_text() { return 'Change this message to new instructions'; } It can go into your child themes functions.php file or a site specific plugin: https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/ — |
|
Could you tell me more about the question above — is a screenshot or a link available? — |
|
|
I could send you a screenshot by email for this one, I dont see any file uploader in the forum |
Could you upload to WP media and link to it here? — |
|
|
nice workaround 😉 here : http://dependancemontreal.ca/?attachment_id=4121 you’ll see the “cherish it” and the “Registration detail” there is also the : “for :” that we don’t find for translation |
What happens when the following is added to your site? https://eventespresso.com/topic/translation-issues-2/#post-104215 — |
|
|
Hello, yes it’s working, so there weas 3 items I was not able to translate : – the on you just solved – the “Registration Detail :” , on the same screen – the “for: {event_name}” , on the same screen also Can you help me with these one too ? Thanks |
Hi Olivier, Could you give this a try: function ee_change_thank_you_page_details( $translated, $original, $domain ) { $strings = array( 'Registration Details:' => 'Change me 1', 'for: ' => 'Change me 2', ); if ( isset( $strings[$original] ) ) { $translations = &get_translations_for_domain( $domain ); $translated = $translations->translate( $strings[$original] ); } return $translated; } add_filter( 'gettext', 'ee_change_thank_you_page_details', 10, 3 ); — |
|
|
Nice, it’s working but only for the Registration Details, not for the “for :” |
Alright, please replace the code snippet that I shared before with these: function ee_change_thank_you_page_details_registration_details( $translated, $original, $domain ) { $strings = array( 'Registration Details:' => 'Change me 1', ); if ( isset( $strings[$original] ) ) { $translations = &get_translations_for_domain( $domain ); $translated = $translations->translate( $strings[$original] ); } return $translated; } add_filter( 'gettext', 'ee_change_thank_you_page_details_registration_details', 10, 3 ); function ee_change_thank_you_page_details_for($phrase) { $post = get_the_id(); if ($post == 286 ) { $phrase = str_replace('for:', 'Change me to soemthing new', $phrase); return $phrase; } else { return $phrase; } } add_filter('the_content', 'ee_change_thank_you_page_details_for', 200); Be sure to update the post id of 186 to the post id for your Event Espresso thank you page. This numeric value appears at the end of the URL when you are viewing the page in the WordPress admin. — |
|
|
ouch! this is a bit hardcore ! but it’s working 😀 Thanks for your support anyway ! |
The support post ‘translation issues’ 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.