Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
You are using the WP Booking System plugin with the Enfold theme and need to make the shortcode translatable in different languages, but the content field for the shortcode isn't visible for translation.
Solution:
To make your shortcodes translatable, you need to add an XML configuration. You can find detailed guidance on how to set up language configuration files at https://wpml.org/documentation/support/language-configuration-files/. Here is an example of how you should configure your XML:

<wpml-config><br />  <shortcodes><br />    <shortcode><br />      <tag>wpbs</tag><br />      <attributes><br />        <attribute>id</attribute><br />        <attribute>language</attribute><br />      </attributes><br />    </shortcode><br />  </shortcodes><br /></wpml-config>

After adding this configuration, edit the content in your default language so the shortcode attributes appear in the WPML Translation Editor for translation.

Please note that this solution might be outdated or not applicable to your specific case. If this solution does not resolve your issue, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need assistance, please open a new support ticket at WPML support forum.

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.

This topic contains 1 reply, has 0 voices.

Last updated by Marcel 1 week, 6 days ago.

Assisted by: Marcel.

Author Posts
March 23, 2025 at 7:10 pm #16849180

gerbenD-6

Background of the issue:
I am using the WP Booking System plugin together with the Enfold theme. WP Booking System does not support WPML, but it allows me to create the booking form in 3 languages. I need to insert a slightly different shortcode in the editor (lang=en, lang=de etc.) per language.

Symptoms:
I don't see the content field where my shortcode is entered for translation.

Questions:
How can I make the content field where my shortcode is entered translatable?

March 24, 2025 at 8:23 am #16850111

Marcel
Supporter

Languages: English (English ) German (Deutsch )

Timezone: Europe/Madrid (GMT+02:00)

Hi,

To make shortcodes translatable in our editor, you need to add an XML configuration as outlined here:
https://wpml.org/documentation/support/language-configuration-files/

For example:

<wpml-config>
  <shortcodes>
    <shortcode>
      <tag>wpbs</tag>
      <attributes>
        <attribute>id</attribute>
        <attribute>language</attribute>
      </attributes>
    </shortcode>
  </shortcodes>
</wpml-config>

After that, edit the content in your default language so the shortcode attributes appear in the WPML Translation Editor for translation.

Best Regards,
Marcel