Skip to main content

WPML

WPML

Before checking these step please make sure you make product and inventory post type translatable from WPML multilingual content setup window

WPML1.png WPML2.png WPML3.png WPML4.png WPML5.png WPML6.png WPML7.png

To translate an existing product do the following steps

  • Open the product and duplicate it for all languages.

WPML8.png

  • Go to duplicate product first and them make it independent translation by clicking independent translation button.

WPML9.png

  • From here configure your rental attributes such as price , dates, and others options.

WPML10.png

  • Click update button twice to delete all previously created inventories and adjust with new inventory child posts.

  • Done for this language.

  • If you have more than one language then repeat 1, 2, 3, 4, 5 for all languages.

  • Now return to the original product and click update button

  • All Done

How to translate Admin text?

WPML allows you to translate contents of the Customizer or different theme options as like sliders, footer, and widgets.

Finding the theme options and making them translatable

To make the theme options translatable go to the WPML -> String Translation page and click the Translate texts in admin screens option

TranslateAdmin.png

On this page, you have to find the right option. Usually, theme options are listed somewhere below theme_mods_{theme_name}.

The following image shows an example, where we looked for the WP Real Estate Pro theme’s options and found them under WP Pro Real Estate 6_options.

TranslateRealEstate.png

Theme options are presented in a tree view and inside, we found the sliders stored under the name ct_flex_slider. We checked all slide titles to make them translatable.

TranslateRealEstate2.png


Translating the theme options

Now that the theme options are marked as translatable, they appear on the WPML->String Translation page. You translate them just like any other strings.

TranslateRealEstate3.png

The following image shows our slides on the front-end after we translated all the slide title strings.

WPMLTranslate1.png


Other types of theme options

Besides slides, you can use this approach for translating any other theme options.

For example, custom Widgets are usually found under options named similar to widget_{widget_name}.


Translating your theme options directly on the theme options panel

You may face situations where you need to assign a different value for your theme options directly from the options panel. This is possible with WPML API since 3.9.3 version, however, it requires adding some code and using the wpml_multilingual_options function.