View Categories

Translate PublishPress Plugins With Poedit

We recommend Poedit as an easy way to translate PublishPress plugins. Here's how the translation process works:


Get started with Poedit #

Poedit translation editor
  • Run the installation script for Poedit on your desktop. Click “Create New Translation”.
Poedit installation

Open a PublishPress plugin #

Poedit translation files
Poedit language files
  • We are going to use the existing .po files as the starting point for our work, so elect one of the existing .po files from the /languages/ folder.
  • Use the “Language for your translation” dropdown to choose your language:
Poedit in Spanish
  • You will see a list of all the English translations. On the right-hand side there's a blank space waiting for your translation:
Poedit files
  • At the bottom of the screen, you can enter your translation text into the “Translation” field:
  • PoEdit is a particularly useful tool because it will automatically give you translation suggestions:
  • When you're finished, click “Save” in Poedit:
  • Poedit will export both a .po and an .mo file for you.

Upload the language files #

  • Place these in the /wp-content/languages/your-plugin-name/ folder. Create this folder if it doesn't exist.
  • For the files, use the naming structure you can see below. You can find a list of locale identifiers here. Here are some examples for Italian, Spanish and French.
    • publishpress-it_IT.po
    • publishpress-es_ES.po
    • publishpress-fr_FR.po
  • If your site is running your language (in this case, Spanish), the PublishPress plugin will automatically detect your new files and use your language.