Added translation string to "gateways.php"

WordPress Event Management, Calendars & Registration Forums Report A Bug Added translation string to "gateways.php"

This topic contains 1 reply, has 2 voices, and was last updated by  Stephen Harris 8 years, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #22892

    Hi,

    I’ve come across the situation to translate the headers of the gateway-names in the single event view.

    Therefore I added the missing translation-string to the “/event-organiser-pro/includes/gateways.php”:

    Line 56 changed to:

    'paypal'  => __( 'PayPal', 'eventorganiserp' ), 
    

    If you could please add that too for the next “event-organiser-pro”-update. This would be great. 🙂

    Thx & Greetz,

    Hannes

    Johannes Heimhilcher
    #22911

    Hi Johannes,

    PayPal is a name, so I’m not sure why you would want translated. If you just want to change the label you can do the following:

    add_filter( 'eventorganiser_gateways', function( $gateways ) {
        $gateways['paypal'] = 'My PayPal label';
        return $gateways;
    } );
    
    Stephen Harris
Viewing 2 posts - 1 through 2 (of 2 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.