Background of the issue:
I am trying to translate the shortcode id of Fluent Forms shortcode in WPML. I use Divi Theme Builder and have registered the shortcode in WPML settings as follows: fluentformid. I also tried it without type="post_ids". I created a new site with simple modules and another test site without Divi Builder, but the shortcode is still not showing in the advanced translation editor.
Symptoms:
The Fluent Forms shortcode is not showing in the advanced translation editor despite attempts to register it in WPML settings.
Questions:
Why is the Fluent Forms shortcode not appearing in the advanced translation editor?
Is there an alternative method to translate the shortcode id in WPML?
By default, the translation editor don't display any numeric values. Since you need to translate the ID, you'll need to define a constant in the functions.php file of the theme to enable the numeric values appear in the translation editor. Please check the link below for more details.
Once the constant is saved:
1. Make a small change to the page in the WordPress Editor.
2. Proceed to update the translation.
3. When you are in the translation editor, enter the attribute value added to the shortcode in the search box.
4. The attribute value should appear in the results for translation.
You can also translate a shortcode is using String Translation. Navigate to "WPML > String Translation" and search for the entire shortcode. If it appears in the results, click the "+" icon below the language flag to begin the translation. In the translation field, add the shortcode and adjust the attribute values as needed.
I hope the information above helps. Feel free to let me know if you need further assistance or clarification regarding any particular steps. I'll be happy to help.
Oh, what happend? your system changed my first message... Okey, then once again:
Step by step what I've done:
1. Registered the shortcode within the settings of wpml:
...
<shortcode>
<tag>fluentform</tag>
<attributes>
<attribute>id</attribute>
</attributes>
</shortcode>
</shortcodes>
...
2. added code in functions.php:
add_filter( 'wpml_tm_job_field_is_translatable', '__return_true' );
3. Tried to find the shortcode [fluentform id="7"] in the string translation but cannot find it. --> this would also be a good solution for me to translate it there.
Tried at different pages / made little changes. But still the same problem. I can not see the fluentform id's in the advanced editor.
Hii There!
I hope you're doing well. Sorry for the delay in responding due to the well.
Please review the XML code below to register the Fluent Form shortcode for translation. Confirm that it has been correctly added under Custom XML Configuration in WPML > Settings.
If the constant is also added properly, at the time of retranslating the page or post containing the shortcode, the attribute value — specifically, the ID—should appear in the translation editor. Please remember to "Search" for the ID in the editor to locate it for translation.