Translation Using Poedit
- Download and install Poedit if you haven’t done so already.
- Open
wp-content/themes/babysitter2/languages/babysitter.pot
with Poedit and translate all string in your language. - Go to File → Save as… to save your translations in a .po file. If you do not know how to name it, take a look at this page: http://codex.wordpress.org/WordPress_in_Your_Language.
- Go to File → Compile to .mo and save your .mo file next to the .po file in
/wp-content/themes/babysitter/languages/
- Or you can set your Poedit to always compile a .mo file when saving changes by clicking File → Preferences and on the Editortab check the Automatically compile .mo file on save box.
Updating translation
After updates, you can update your .po file by opening it and then going to Catalog > Update from POT file. Choose the file and it will be updated accordingly.
Keeping Translation Files Upgrade Safe
You can put your .po/.mo files in the WP_LANG directory which will keep them safe from updates. This is usually the wp-content/languages/
directory.
So for example, you need put your .po/.mo files in wp-content/languages/themes/babysitter-LOCALE.mo
, replacing LOCALE with your language code.