Posted: January 30, 2015 at 8:30 am
|
Hello, I’ve changed also my WordPress(4.1) installation to German (as described here: https://eventespresso.com/wiki/how-to-change-languages/ ). WordPress and part of 4.6.0.beta.144 is now German. I made translations with Poedit and uploaded them. Still a part of the keys that I translated and uploaded won’t appear. Strings like “This field is required.” I translated in custom questions won’t appear either. Is it because of EE or did I missed something? Regards, |
Hi there Pyramidal,
The field above not translating is a known issue that will be corrected before the final version of Event Espresso 4.6 is released. We are aiming for mid-February. There may also be some strings that don’t translate as they may have been changed. We do plan on updated the language files prior to release. For now, they can be changed via a gettext filter. Can you share a screenshot of the area that you are running into an issue with? https://eventespresso.com/wiki/troubleshooting-checklist/#screenshots — |
|
|
Hi Lorenzo, http://anmeldung.kleinkunst-ka.de/wp-content/uploads/2015/01/Bildschirmfoto-2015-01-31-um-12.47.05.png |
|
Hi, Those images require log in details to view. |
|
Hey, Oh sorry, It should be ok now! |
Hi, those screenshots were helpful. Try this sample coding: //* Change messaging for Event Espresso 4 function ee_46_messaging_changes( $translated, $original, $domain ) { $strings = array( 'Attendee Information' => 'New message here', 'Payment Options' => 'New message here', 'Important information regarding your payment' => 'New message here', 'The Attendee Information Step has been successfully completed.' => 'New message here', 'Please select a method of payment and provide any necessary billing information before proceeding.' => 'New message here', 'Please answer all required questions correctly before proceeding.' => 'New message here', ); if ( isset( $strings[$original] ) ) { $translations = &get_translations_for_domain( $domain ); $translated = $translations->translate( $strings[$original] ); } return $translated; } add_filter( 'gettext', 'ee_46_messaging_changes', 10, 3 ); It can be added to your child theme’s functions.php file (do not include the opening php tag) or a site specific plugin: https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/ Be sure to change “New message here” for each line. Please see this tutorial for how to change the button text: https://eventespresso.com/wiki/customize-checkout-registration-button-text/ — |
|
|
Hi, Thx! So I made a new Plugin and it work partially: Here my plugin: http://anmeldung.kleinkunst-ka.de/wp-content/uploads/2015/02/ee-anmeldung-customs.txt Here what I mean in screenshots: Thanks in advance |
Hi, Try these additional gettext filters: //* Update the messaging for the congratulations messaging that appears at the top of the thank you page add_filter( 'FHEE__thank_you_page_overview_template__order_conf_desc', 'ee_change_thank_you_page_congratulations_messaging' ); function ee_change_thank_you_page_congratulations_messaging() { return 'New message here'; } //* Change messaging for Event Espresso 4 function ee_46_messaging_changes_extras( $translated, $original, $domain ) { $strings = array( 'Attendee #%s' => 'New message here', 'You have selected "%s" as your method of payment. Please note the important payment information below.' => 'New message here', 'Please wait while we process your registration.%sDo not refresh the page or navigate away while this is happening.%sThank you for your patience.' => 'New message here', ); if ( isset( $strings[$original] ) ) { $translations = &get_translations_for_domain( $domain ); $translated = $translations->translate( $strings[$original] ); } return $translated; } add_filter( 'gettext', 'ee_46_messaging_changes_extras', 10, 3 ); The text for the buttons can be changed through the messages editor (toggle the text view). — |
|
|
Hi, So I’m now using EE 4.6.5 and tried those Filter: still problems 🙁 Thx for your help |
Hi there, Can you post the current code that you are using in a pastebin, a gist, or a link to a txt file like you did before so we can investigate? |
|
The support post ‘EE4 keys don't translate’ 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.