Support

Home Forums Event Espresso Premium Unable to Translate Price Modifiers

Unable to Translate Price Modifiers

Posted: November 2, 2016 at 5:24 am


ardiaful

November 2, 2016 at 5:24 am

When adding a new Ticket, I’m unable to translate Price modifiers options: percent discount, dollar discount, percent surcharge, dollar surchage. I’ve translated them in the .po file, with no effect. Having added this in my custom plugin does not work either:

‘Percent Discount’ => ‘Descuento Porcentual’,


Tony

  • Support Staff

November 2, 2016 at 7:22 am

Hi there,

When you activate EE it generates the price modifiers and saves them to the database, the translations within the MO file will only be used during that activation.

If you did not have those strings translated previously then EE will use the english version, but you can change them within the admin.

Go to Event Espresso -> Pricing -> Price Types

You will find a list of of price types that you can edit – http://take.ms/kwdvP

You can translate the names there.


ardiaful

November 2, 2016 at 8:23 am

Thanks.

COuld please help with removing Pricing menu, I’ve added this to my function.php with no effect

/** Remove Pricing menu **/

function remove_menus() {
        
    remove_menu_page('pricing'); // Remove the Pricing menu
}
add_action( 'admin_menu', 'remove_menus' );
  • This reply was modified 7 years, 5 months ago by  Tony. Reason: Code formatting


ardiaful

November 2, 2016 at 8:30 am

Got the solution here:

add_action( 'admin_menu', 'nstrm_remove_admin_submenus', 999 );
function nstrm_remove_admin_submenus() {
	remove_submenu_page( 'espresso_events', 'pricing' );
}
  • This reply was modified 7 years, 5 months ago by  Tony. Reason: Code formatting


Tony

  • Support Staff

November 2, 2016 at 9:53 am

Great, I’m glad you found a solution 🙂

If you have any further questions, please let us know.

The support post ‘Unable to Translate Price Modifiers’ 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