Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 -
- 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 -

Supporter timezone: Asia/Dhaka (GMT+06:00)

This topic contains 3 replies, has 2 voices.

Last updated by Prosenjit Barman 1 year, 4 months ago.

Assisted by: Prosenjit Barman.

Author Posts
November 7, 2024 at 6:58 pm #16379678

sebastianB-92

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?

November 8, 2024 at 6:41 am #16380657

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thanks for contacting WPML Support.

I understand what you're looking for. To ensure that the attribute value appears correctly in the translation editor, please make sure that the shortcode is registered for translation correctly by following this guide: https://wpml.org/documentation/support/language-configuration-files/translate-custom-shortcodes-with-wpml/#making-shortcodes-translatable

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.

- https://wpml.org/documentation/support/language-configuration-files/translate-custom-shortcodes-with-wpml/#making-id-attributes-translatable

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.

Best regards,
Prosenjit

November 8, 2024 at 10:15 am #16381508

sebastianB-92

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.

November 11, 2024 at 3:38 am #16386464

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

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.

<wpml-config>
  <shortcodes>
    <shortcode>
      <tag>fluentform</tag>
      <attributes>
        <attribute>ID</attribute>
      </attributes>
    </shortcode>
  </shortcodes>
</wpml-config>

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.

Once you've completed the page translation, the shortcode should also appear in String Translation. If you don’t see it, try making a small edit to the default page and save the changes. Then, scan the Fluent Form plugin by following this: https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#scan-the-theme-or-plugin.

Once the scan is completed, search for the shortcode in String translation and check if it showing there for translation.

Please try and let me know the update. I'll be happy to help if you need further assistance in this matter.

Best regards,
Prosenjit

The topic ‘[Closed] Divi Theme Builder + Fluent Forms Shortcode not showing in Advanced editor’ is closed to new replies.