Aleš Sýkora / November 28, 2023 / 0 comments

Translate Step status in multistep Fluent Form

Post summary: If you need to translate the “Step 1 of xx” in fluent forms, you can use this filter to do that. Just put it in your code snippets plugin (for example Advanced scripts) and change the ‘Step’ and ‘of’ to needed words. If you use titles for step names, use this code instead:

If you need to translate the “Step 1 of xx” in fluent forms, you can use this filter to do that. Just put it in your code snippets plugin (for example Advanced scripts) and change the ‘Step’ and ‘of’ to needed words.

Translate Fluent Form in Advanced Scripts
add_filter('fluentform_step_string', function($text){
    $text = __('Step %activeStep% of %totalStep%', 'fluentform');
    return $text;
});

If you use titles for step names, use this code instead:

add_filter('fluentform_step_string', function($text){
    $text = __('Step %activeStep% of %totalStep% - %stepTitle%', 'fluentform');
    return $text;
});
Translated Fluent Forms step in multistep form

Fuel my passion for writing with a beer🍺

Your support not only makes me drunk but also greatly motivates me to continue creating content that helps. Cheers to more discoveries and shared success. 🍻

0 comments

Share Your Thoughts