How do I create a mo file from a PO file?

How do I create a mo file from a PO file?

  1. Extract the files.
  2. Rename the desired version file (e.g. “51.po”) to “messages.po”
  3. Launch PoEdit.
  4. Open the “messages.po” file with PoEdit.
  5. Save the file in PoEdit (PoEdit now compiles the .mo file)

How do you translate in Poedit?

Open Poedit and select Create new translation:

  1. A new window will pop up, select WordPress theme you want to translate.
  2. Next, from a dropdown menu select a language you want to translate your theme to:
  3. You are ready to translate your theme now.
  4. In the Translation section enter a desired translation of the source string:

How does Poedit translate a wordpress.mo file?

While a PO file is easy for humans to read, MO files are compiled and are easy for computers to read. WordPress gets translations from .MO files. The .MO file is automatically created by Poedit whenever you save a PO file. All you can do with these files is to upload or re-upload them whenever you create or update a .PO file. 2.

How to translate a WordPress theme ( or plugin )?

1. Open Poedit and select File > New Catalog from POT / PO file. 2. Select the .POT file or the .PO file from the theme or plugin you wish to translate which (you can find the files in the wp-content/themes/your-theme/language/ folder). 3. A box will pop up asking for language of the translation.

How to create a PO file in WordPress?

1. Load a text domain for the theme. 2. Find the messages that need to be translated and process them with the appropriate WordPress function. 3. Create language files. 3.1 The POT file contains a list of all translatable messages in our theme. 3.2 The .po file is created when we translate a POT file to a particular locale.

How to localize a WordPress theme to another language?

Here are the steps to translate/localize a .po or .pot file into another language Download a gettext file editor like PoEdit and install it. Open the English .po file that came with your WordPress theme or plugin with poedit. Now go through and translate all the text one line at a time in the bottom box.