WordPress plugin translations are created using the POEdit utility. MapPress translation files are stored in the languages
directory of the plugin.
Creating a New Translation
- Download the latest POEdit
- Run POEdit and open the master file
mappress.pot
ormappress.po
from thelanguages
directory of the MapPress plugin - Use the menu
File->Save as
to save it as a .po file (a translation). The file name must include an extension for your language. For example, ‘mappress-es_ES.po’ is for Spanish. A list of valid language extensions is here. - Translate the strings.
- When you’re done use menu ‘file->save’ to save the file again. POEdit should create a .MO file (a compiled translation) with the same base name as your .PO file.
- Send me both the .PO and .MO files, and I’ll include them with all future versions of MapPress!
Updating an Existing Translation
MapPress texts change frequently so you may find there is an existing .PO file for your language but the translation isn’t up to date. If that happens:
- Run POEdit and open the .po file. For example, for Spanish open
mappress-es_ES.po
- Use the menu
Catalog->Update from POT file.
Select the filemappress.pot
ormappress.po
- Update any missing strings.
- Correct any fuzzy strings (they appear in a different color at the top of the file). For each one, click on menu
Edit->Translation is Fuzzy
to remove the fuzzy indicator. You can also hit ALT-U. - Save your .PO file. POEdit should re-generate the corresponding .MO file.
- Send me both the .PO and .MO files, and I’ll include them with all future versions of MapPress!