1. Home
  2. Advanced
  3. Translating WP Simple Pay

Translating WP Simple Pay

When you switch to your language in WordPress, WP Simple Pay will only be translated if the appropriate files exist and are fairly current.

If translations to your language appear to be non-existent or outdated, please consider contributing translations for your language for WP Simple Pay. It’s fairly straightforward, does not require development skills, and will benefit all other users of WP Simple Pay that need this language. Here’s how we recommend creating a translation:

  1. Download and install Poedit.
  2. In Poedit, click Create New Translation and navigate to WP Simple Pay’s languages folder. Open the simple-pay.pot file within Poedit.
  3. Choose the language of the translation from the dropdown.
  4. Click on each string of text and enter your new translation within the translation box.
  5. Go to File → Save As to save your translations in a .po file. Label the file with your country code included. For example, the French translation files are called simple-pay-fr_FR.mo and simple-pay-fr_FR.po.
  6. When you are finished translating, go to File → Compile to MO… to generate the .mo file.
  7. Place or save these 2 files in the WP Simple Pay languages folder. Please consider sending them to us by opening a support ticket so we can include them in a future plugin update.
  8. Make sure your language has been selected in WordPress to enjoy your new translation!

You can also set Poedit to always compile a .mo file when saving changes by going to File → Preferences and on the General tab check the Automatically compile MO file when saving option.

Updated on January 13, 2020

Was this article helpful?

Related Articles