Support

Home Forums Event Espresso Premium Untranslatable Items?

Untranslatable Items?

Posted: October 6, 2014 at 8:53 am

Viewing 3 reply threads


Philipp Meier

October 6, 2014 at 8:53 am

Hello

I changed my wordpress installation and EE installation to German. PO/MO files work as expected. there are some items that I can’t translate though:

Attendee Information & Payment Options
http://awesomescreenshot.com/0f03lw4g07

Proceed to Payment Options
http://awesomescreenshot.com/0d43lw5047

Register Now
http://awesomescreenshot.com/0373lw5c00

Finalize Registeration
http://awesomescreenshot.com/08a3lw5rc7

Congratulations Screen
http://awesomescreenshot.com/0533lw6c09

regards
Phil


Lorenzo Orlando Caum

  • Support Staff

October 6, 2014 at 11:41 am

Hi Phillipe,

We have various filters available to make those changes. See this tutorial for the buttons:

https://eventespresso.com/wiki/customize-checkout-registration-button-text/

For the other areas, a gettext filter should work:

https://eventespresso.com/wiki/how-to-change-wording-with-poedit/#plugins


Lorenzo


Philipp Meier

October 7, 2014 at 11:54 pm

Hi Lorenzo

Thanks for the link. It worked mostly. However there is still “Attendee Information” which is not described how to change: http://awesomescreenshot.com/0403mamj3d

Also. mo/po files work now and most of my translation can be done in there. there is still on sentence which i’ve translated but does not change on the page. http://awesomescreenshot.com/0413man169

I will send you my po/mo files to support…

regards
Phil


Lorenzo Orlando Caum

  • Support Staff

October 8, 2014 at 11:18 am

Could you try this out:

function mycustom_filter_gettext( $translated, $original, $domain ) {

    $strings = array(
        'In order to process your registration, we ask you to provide the following information.%1$sPlease note that all fields marked with an asterisk (%2$s) are required.' => 'My new messaging',
    );
 
    if ( isset( $strings[$original] ) ) {
        $translations = get_translations_for_domain( $domain );
        $translated = $translations->translate( $strings[$original] );
    }
 
    return $translated;
}
 
add_filter( 'gettext', 'mycustom_filter_gettext', 10, 3 );


Lorenzo

Viewing 3 reply threads

The support post ‘Untranslatable Items?’ 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