Skip Navigation

[Resolved] Translate the redirect message after CRED submission

This thread is resolved. Here is a description of the problem and solution.

Problem:
Translate the redirect message after CRED submission

Solution:
you can translate the text using the gettex standard WordPress function.

You can find the proposed solution, in this case with the following reply:
https://toolset.com/forums/topic/translate-the-redirect-message-after-cred-submission/#post-1220203

Relevant Documentation:
http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext

This support ticket is created 5 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by kelvinL-2 5 years, 11 months ago.

Assisted by: Minesh.

Author
Posts
#1219982
Screenshot 2019-03-24 at 3.21.12 PM.png

Dear Sir/Madam,

I have a CRED form and redirect to specific page after submission, I don't have the WMPL installed, how can I change the redirect message "Please Wait. You are being redirected..."?

Best regards,

Kelvin.

#1220203

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - as you are not using WPML plugin, you need to translate the text using the gettex standard WordPress function.

add_filter( 'gettext', 'func_translate_redirection_msg', 20, 3 );
 function func_translate_redirection_msg( $translated_text, $text, $domain ) {
    if($text == 'Please Wait. You are being redirected...' && $domain = 'wp-cred'){
        $translated_text = "<strong>Your message here.</strong>";
    }
    return $translated_text;
}

More info:
http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext

#1220630

My issue is resolved now. Thank you!