A long list of ISO codes here on Wikipedia.
You'll be asked to give your catalog (PO file) a name, since we'll use it for a specific language, use the two letters ISO Code of that language, for example "ar" for Arabic or "fr" for French (without the quotes). Click the "New item" button, a field will be created, type in "_e" (without the quotes), press Enter then click again on "New item" & type "_" (2 underscores without the quotes). Go to the third tab named Keywords, there you tell POEdit about the two GetText functions "_e" & "_".
To get the path, use Windows Explorer, browse till you enter your theme's folder then copy the path from the Address Bar, the path may look a bit like this:Ĭ:\Documents and Settings\Something\Desktop\theme-directoryĬlick the "New item" button (graphic icon of a little square & star), a field will be created, paste in your path & hit Enter. The second tab Paths is to give POEdit the path of your theme's directory (on your hard drive), bad thing is that you can't just click on browse & find the directory of your theme. The first one ( Project info) is for general information, enter utf-8 for "Source code charset" & you may want to give your project a name (theme's name maybe). Now let's start making the PO file, go on File > New Catalog. mo file on save" is checked, check it if not. Launch POEdit & before anything else make sure it will automatically save a MO file every time we make or modify & save a PO file: Go to File > Preferences., in the Preferences box choose the Editor tab, under Behavior see if "Automatically compile. In this guide we will create the MO file in one go with the PO file for a specific language: If you add a translation to the PO file, you can setup POEdit to create a MO (Machine Object) file, which is the machine-readable file (the one we need to upload to the server with the theme). We will use POEdit to create a PO (Portable Object) file which will contain all the translatable words & phrases and optionally their translation for a specific language.
Now that you made your theme translatable, let's do the necessary to translate it.įor that you will have to use a translation software, in this guide we'll use POEdit, so go ahead and download then install it.