WPML allows you to easily create a PO file for any plugin or theme on your site.
PO file contains a list of all texts in a plugin or a theme. Translators then use CAT (Computer-assisted Translation) software or an online service to translate the texts in PO files.
Before you start, make sure you have WPML core and WPML String Translation plugins installed on your site.
Generating a PO file for a plugin
Use the following steps to generate a .po file for a plugin:
- Go to WPML → Theme and plugins localization.
- Select the plugin you want.
- At the bottom of the page click Scan selected plugins for strings.
- When scanning is done close the pop-up dialog and click the create PO file button next to that plugin.
- Save the .po file.
Generating a PO file for a theme
Use the following steps to generate a .po or .pot file for a theme:
- Go to WPML → Theme and plugins localization.
- Select the theme you want.
- At the bottom of the page, click Scan selected themes for strings.
- When scanning is done close the pop-up dialog.
- Go to WPML → String translation.
- In the Export strings into .po/.pot file section select the text domain of that theme. You can also select whether you want to include the translations.
- Click the Submit button.