[Resolved] Gravity Forms Slider Range - postfix not in string translation
This thread is resolved. Here is a description of the problem and solution.
Problem:
I translated a gravity form that uses range sliders created with the Gravity Forms Range Slider Add-On. The prefix and postfix descriptions of the range slider can't be translated.
Solution:
You can make the prefix and postfix strings available for translation with the following steps:
1. Add the following code to the functions.php file:
2. Make a minor change to the original form and save it.
3. Send the form to translation and translate it, the strings should be available in the translation editor now.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
Tell us what you are trying to do?
>On the homepage of cleanjack.be is a gravity form using range sliders.
>I translated the form, but there is no string for the postfix description of the range sliders
Is there any documentation that you are following?
> I follower the standard protocol for Gravity Form translations and also generated strings for all GF plugins
Is there a similar example that we can see?
> Seems like none of the postfix field is not picked up
- Go to WPML String Translation
- Scroll down to the "Auto register strings for translation" section and enable that option
- Visit the page where the string is added on the front end
- Go back to String translation and disable the auto register option
- Search again for the string and translate it
This could be a compatibility issue with the Gravity Forms Range Slider addon.
I have created this clean sandbox setup on our servers here: hidden link (one-click login)
I would need you to please set up WPML + the WPML add-ons as you have them on your site (they are already installed) and also install Gravity Forms + Gravity Forms Range Slider addon and try to recreate the issue.
Please don't migrate your site to the sandbox or install anything else like plugins that are not necessary, on a clean sandbox we try to use just the WPML plugins and the plugin/theme that's part of the issue.
If the issue is going to take place on this clean setup on our servers too, then I can check this with our compatibility department.
Please let me know how that goes and what you can find.
Thanks!
I installed gravity forms elementor and elementor ad ons.
Next I create a test page and test form.
Next step would be to install WPML for Gravity Forms and WPML String Translations, but I got an error on those during the WPML setup.
I did the following steps to replicate the issue:
- translated the sliders page
- translated the gravity form
All fields show, except for the post-fix field: 'Postfix English'. The field also does not show as string.
Next I scanned the slider plugin for strings, the field does not show as string.
Next I auto register strings for translation and go to the slider page and change language, the field still does not show.
2. Do a small modification on the original form and save it
3. Send the form to translation and translate it, the fields should be available now.
This works on the sandbox as you can see here: hidden link
Please note that the "Gravity Forms Range Slider Add-On" plugin is not listed on the WPML compatibility list for the plugins - https://wpml.org/plugin/.
Kindly contact the plugin authors and share the issue with them. We also suggest asking them to join our Go Global program, so they can collaborate with our compatibility team to make the plugin compatible with WPML.