Posted: February 2, 2015 at 4:00 am
|
I’m using the language as en_GP. Files Names: But the words are not changing. I have renamed the word “Payment”, but still the word “Payment” there. I installed at wp-config.php the language as well: I also have tried update the language file inside the plugin folder, (I know it’s not right) but doesn’t work. Thank you |
Hi Lucey, If you go to Dashboard -> Settings -> General. At the bottom of that page you should a ‘Site Language’, if so what is currently selected there? |
|
|
Hello Tony, |
Can you send me you MO/PO file so I can test those please? Translating EE4 is working as expected on my tests sites, so need to try and find the cause. If so please send the files to support[at]eventespresso.com, be sure to include a link to this thread so we can link the two. |
|
|
Files sent. Thank you |
Hi Lucey, When translating strings each string is actually unique. So for example translating the string ‘Payment’ would not also translate ‘Make a Payment’. Each of those strings need to be translated individually. Can you provide details of where the strings are you would like to translate? |
|
|
I want to translate this fields: Page Confirm Registration Title Final Button: |
Hey there Lucey, Try this sample coding: //* Replace certain messaging in Event Espresso 4 function ee_change_certain_messaging( $translated, $original, $domain ) { $strings = array( '%s Payment Options' => '%s Confirm Registration', 'Ticket Details' => 'Rehearsal Details', ); if ( isset( $strings[$original] ) ) { $translations = &get_translations_for_domain( $domain ); $translated = $translations->translate( $strings[$original] ); } return $translated; } add_filter( 'gettext', 'ee_change_certain_messaging', 10, 3 ); //* Replace proceed to payment options messaging in Event Espresso 4 function ee_proceed_to_button() { return 'Proceed to'; } add_filter ('FHEE__EED_Single_Page_Checkout__registration_checkout__button_text__proceed_to', 'ee_proceed_to_button'); function ee_payment_options_button( $translated, $original, $domain ) { $strings = array( 'Payment%sOptions' => ' Confirmation Page' ); if ( isset( $strings[$original] ) ) { $translations = &get_translations_for_domain( $domain ); $translated = $translations->translate( $strings[$original] ); } return $translated; } add_filter( 'gettext', 'ee_payment_options_button', 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/ — |
|
|
Worked Lorenzo, Thank you! |
|
But about the file translation? Do you guys know why didn’t work? Thank you |
Hi, each string is unique. For example, if you changed the word Ticket in one string, then it would only affect that string alone. I mention this as the word ticket is used many times on the event pages. If you look at the gettext filters, you’ll see some examples of those strings. — |
|
|
I checked very well the entire list with my words translated, but nothing have changed. Thank you |
The support post ‘Personalised Language EE4’ 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.