Skip Navigation

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

Problem:

How to translate the content of a theme or plugin that I custom-coded.

Solution:

- Make sure your theme or plugin uses the gettext calls for the strings:

https://wpml.org/documentation/support/translating-the-theme-you-created/

- Scan the theme or plugin:

https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#scanning-the-theme-and-plugins

- Then, you go to WordPress Dashboard > WPML > String Translation

- Select the Text Domain that you created for the theme at the top filter to show only the theme-related entries.

Se- lect all the strings from there.

- At the bottom of the page you will have the option to send the selected text for translation.

- After that, you can go to WPML > Translations and take that set of strings for translation and you will be redirected to the Advanced Translation Editor and there at the top you can click the Translation Automatically button to finish the translation.

Relevant Documentation:

https://wpml.org/documentation/getting-started-guide/string-translation/#translating-strings

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 2 replies, has 2 voices.

Last updated by chongweiC 1 year, 9 months ago.

Assisted by: Christopher Amirian.

Author Posts
May 13, 2023 at 5:08 am #13639649

chongweiC

Hi,

I check the document at https://wpml.org/documentation/support/translating-the-theme-you-created/ on how to translate plugin. However, after the PO file is generated, how to auto-translate the plugin with your auto-translation system? The document does not mention that.

May 15, 2023 at 7:29 am #13645025

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

To do that you first need to scan the theme in question:

https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#scanning-the-theme-and-plugins

Then, you go to WordPress Dashboard > WPML > String Translation

Select the Text Domain that you created for the theme at the top filter to show only the theme related entries.

Select all the strings from there.

At the bottom of the page you will have an option to send the selected text for translation.

After that, you can go to WPML > Translations and take that set of strings for translation and you will be redirected to the Advanced Translation Editor and there at the top you can click the Translation Automatically button to finish the translation.

https://wpml.org/documentation/getting-started-guide/string-translation/#translating-strings

Thanks.