Skip to content Skip to sidebar

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

Problem:
The client has custom shortcodes created through a custom plugin on their WordPress website, which outputs multiple small texts on a page. They are seeking the best method to translate these shortcodes or the plugin.
Solution:
We recommend two approaches:
1. Deactivate the WPML translation editor and use the WordPress editor to translate your page. For more details, visit Using Different Translation Editors for Different Pages.
2. Register your custom shortcode for translation in WPML. This will allow the texts specified in your shortcodes to be added to WPML's translation editor. For instructions on how to do this, please see Translate Custom Shortcodes with WPML.

If this solution does not apply to your case, or if it seems outdated, 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. Should you need further assistance, please do not hesitate to 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 2 voices.

Last updated by Andrey 1 year, 2 months ago.

Assisted by: Andrey.

Author Posts
May 10, 2024 at 11:31 am #15614354

severL

Hi,

I have certain pages on my wordpress website where the whole page is made by my custom shortcodes which I have created through my custom coded plugin.

For example in a shortcode I output like 50 different small texts to the html on a page.

What would be the best way for me to translate my shortcode or plugin?

Sorry for asking it, but the documentation has been a little confusing.

Thank you in advance!

May 10, 2024 at 12:32 pm #15614661

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

There are two ways to handle this. The simplest way is to deactivate the WPML translation editor and translate your page using the WordPress editor. Here are the details: https://wpml.org/documentation/translating-your-contents/using-different-translation-editors-for-different-pages/

Alternatively, you can register your custom shortcode for translation. This will add the text you specify to the WPML's translation editor. Here's how to do it: https://wpml.org/documentation/support/language-configuration-files/translate-custom-shortcodes-with-wpml/

I hope this information helps.