Modern event calendar Download invoice

Where did the translation of the Download Invoice item be setup?
The item display after the checkout page.
can you help me?

Hello @Brasco,

Thanks for asking. :slight_smile:

I suggest you to please take a look at our translation guide:


ok grazie
Se io volessi semplicemente cambiare le parole Dowload invoice, dove devo andare?


Hey Lorenzo,

Please try adding this code to your functions.php to change Download Invoice only.

add_filter( 'gettext', 'change_mec_text', 20, 3 );

function change_mec_text( $translated_text, $text, $domain ) {

    switch ( $translated_text ) {

        case 'Download Invoice' :

            $translated_text = __( 'Translated Text', 'mec' );

    return $translated_text;

Change Translated Text to your own words. I have not tested the code so if it does not work, you need to translate the MEC plugin. Here’s a plugin translation guide. The text domain of MEC is mec.

If you can’t get the translation to work, you will need to hire a developer to do the translation for you as this is outside the scope of our support.


Thank’s the code work.

You’re more than welcome, glad we could help.


This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.