Home › Toolset Professional Support › [Resolved] Translate the redirect message after CRED submission
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 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)
Tagged: Content-submission forms, Toolset Forms
Related documentation:
This topic contains 2 replies, has 2 voices.
Last updated by kelvinL-2 5 years, 11 months ago.
Assisted by: Minesh.
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
My issue is resolved now. Thank you!