Support

Home Forums Event Espresso Premium EE4 – Cannot change text with poedit

EE4 – Cannot change text with poedit

Posted: August 15, 2017 at 1:29 pm

Viewing 2 reply threads


juniorleague

August 15, 2017 at 1:29 pm

I have tried multiple combinations to alter the checkout page wording, but have not been successful. I’ve followed the instructions here:
https://eventespresso.com/wiki/how-to-change-wording-with-poedit/#custom-function without making any progress. Here are some other forum topics I’ve referenced so far, but that have not worked in helping me solve this:

I just want to change “Attendee #1” to “Registrant #1”. Here is the latest failed attempt:

//* Change messaging for Event Espresso 4
function ee_messaging_changes_extras( $translated, $original, $domain ) {
  
    $strings = array(
        'Attendee #%s' => 'PLEASEGODWHYWHONTYOUCHANGE',
    );
 
    if ( isset( $strings[$original] ) ) {
        $translations = &get_translations_for_domain( $domain );
        $translated = $translations->translate( $strings[$original] );
    }
  
    return $translated;
}
  
add_filter( 'gettext', 'ee_messaging_changes_extras', 10, 3 );


Josh

  • Support Staff

August 15, 2017 at 2:17 pm

Hi there,

I’m so sorry for the trouble. May I ask is the code you added included within a plugin and if so is the plugin activated?


juniorleague

August 16, 2017 at 2:21 pm

Not sure what I did differently, but this morning it is working.

Viewing 2 reply threads

The support post ‘EE4 – Cannot change text with poedit’ 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.

Event Espresso