Import and Export strings translations

Strings translations Import and Export module is integrated by default in Polylang Pro. The goal of this module is to export all your Strings Translations in a format (the PO format) that allows you to translate them (from the default language of your site, to a language you select). And finally to import these translated strings.

Export Strings Translations

So first, go in Languages > Strings translations.

There is a metabox at the bottom of the page that allows you to export your strings translations :

Strings translations export

You can choose the language(s) in which you want to translate the strings. You will then have a translation file for each selected target language.

You can filter the strings translations to export only one group, or all of them (they are grouped by core feature, plugin, or widget). By default the filter is on “Export all groups”.

Finally, click on “Download” to download your export file.

So you get a ZIP file that contains one translation file for each previously selected target language.

Now that you have your translation file(s), you can proceed to their translation through a professional translator, or use tools that allow you to translate this file format as Poedit.

Note: If you don’t want to do a translation, but only want to import your strings on another site, read Export strings translations from one site to another.

Import Strings Translations

Go in Languages > Strings translations.

There is a metabox at the bottom of the page that allows you to import your strings translations :

Strings translations import

Choose the file you want to import (it has to be a PO file like the exported format).

Click on “Upload” to launch the import process.

After hitting the “Upload” button, a success message is displayed and you obtain your strings translated as shown below.

Import action success

Note: You can only translate one language at a time, because we have one translation file per target language, and we only import one file at a time.

Exporting your strings translations from one site to another

When you export your strings translations, a “Site-Reference” attribute is created in the translation file, as shown here :

PO file with site reference

If you want to import this file on another site than the one from which it has been exported, you will have to change the value of “Site-Reference”.

So you have to replace the current URL by the one you want to import your strings translations on.