Skip to content

Update PO files using PoEdit

Kenneth Gulbrandsøy edited this page Aug 3, 2014 · 2 revisions

Follow this guide when you need to update PO-file with recent additions or changes to localized strings.

Note

In PoEdit, a PO-file is called a catalog.

###Prerequisites

Ensure that you have PHP, php gettext extension and PoEdit installed on you machine.

###Open PoEdit

The first time it opens, you are asked for you full name and email address. This is automatically inserted into every PO-file you make.

Open the Catalog Manager

  • File -> Catalog Manager

If you haven't created a PoEdit project yet, [you should do so now](Create PoEdit projects).

Open the PO-file you want to update

  • Double click on the PO-file in the Catalog Manager, or choose File -> Open

Analyse source code in all source paths

  • Goto Catalog -> Update from Sources

This will populate the list of localized strings. You will get an error if the base path or any of the paths to folders on the the base path is wrong.

###Translate all text into given language

The editor sorts all strings not translated yet in the top of the list.

###Save changes

  • File -> Save

This will save all changes to the PO-file and generate the binary MO-file in same location as the PO-file.

Important

The gettext layer is not able to read the translations before the MO-file is generated.