How to translate a theme/plugin with Poedit (when you don't need multi-lingual)

To translate strings for any theme/plugin using Poedit, follow these universal steps:

  1. Download and install Poedit from the Poedit website.
  2. Connect to your website using FTP and navigate to the theme's/plugins folder, typically found at wp-content > themes > your-theme-name > languages or wp-content > plugins > your-plugin-name > languages.
  3. Look for the .pot file, which is the template for all translations.
  4. Copy this .pot file and rename it to match your language and country code, for example, theme-name-lang_COUNTRY.pot (e.g., for Romanian, it would be theme-name-ro_RO.pot) or plugin-name-lang_COUNTRY.pot (e.g., for Romanian, it would be plugin-name-ro_RO.pot).
  5. Download the renamed .pot file to your computer.
  6. Open the .pot file with Poedit, translate the necessary strings, and save your changes. Saving will also create automatically two files:  .mo and .po . Make sure they have the same name as the pot file.
  7. Upload both the .po and .mo files back to the languages folder of your theme/plugin on your server.

These steps can be applied to any WordPress theme/plugin to facilitate easy and efficient string translation.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us