Easy Accordion Pro

  1. Home
  2. Docs
  3. Easy Accordion Pro
  4. FAQs
  5. How do I Translate with WPML Plugin?

How do I Translate with WPML Plugin?

As an accordion’s output comes from a shortcode and the shortcode get executed in the frontend, WPML can’t translate the content of an accordion.

However, there is an easy away to translate your accordion. To do so, please follow the below instruction.

Instructions:

STEP 1: MAKAING AN ACCORDION SHORTCODE TRANSLATABLE

  • The WPML Multilingual CMS plugin should be installed and activated.
  • Click on WPML→ Translation Options’
  • Tick the All Accordions (sp_easy_accordion) item to make accordion shortcode translatable.
  • Click on Save button to save changes.

  • If the WPML Translation Management plugin is installed, the option will be found through Translation Management → Multilingual Content Setup → Scrolling down.

  • Now, there appears a Plus icon. By clicking the icon, the shortcode can be translated with a new shortcode in different language.

STEP 2: CREATING A TRANSLATED SHORCODE INTO OTHER LANGUAGE

  • Click on All Accordions menu.
  • Click on the + sign of that shortcode under the other language column.
  • A new shortcode page will be opened as usual.
  • Add title, content, styles as usual.
  • Click on Publish button.

STEP 3: PLACING THE NEW SHORTCODE IN POST OR PAGE EDITOR OR WIDGET

  • Click on All Accordions menu.
  • Then, click on other language tab from the top. In our case, Japanese.
  • There will be the translated shortcode.
  • Copy the shortcode.
  • Go to your translated post/page where the main shortcode is pasted.
  • Replace the shortcode with the translated shortcode.

Conclusion: If the all the steps are followed correctly, the shortcodes should run properly. Thus, users can see translated shortcode in different language with WPML plugin by clicking the language switch.