Skip to content

Create PoEdit projects

Kenneth Gulbrandsøy edited this page Aug 3, 2014 · 1 revision

PoEdit has the notion of projects. Each project is a collection of PO-files, which in PoEdit is called a catalog. This guide describes how to create well-formed locally defined PoEdit projects.

###Prerequisites

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

###Best practice

The default language in RescueMe is en_US, which is "hardcoded" into the source code. PoEdit uses the raw localized strings in English as text identifiers in translations from the default language to any other language. Every translation is located in the src/locale/<language>/LC_MESSAGES folder, which the gettext layer is reading when it localizes strings into current locale. You could therefore create a PoEdit project for every language in RescueMe, which makes it much easier to maintain over time.

###Open Catalog Manager

Each project is listed in the Catalog Manager, which you access by

  • File -> Catalog Manager.

###Create a new project

  • Enter a recognizable name, for example RescueMe - nb_NO
  • Enter a path to all PO-files for given language

If the path is correct, any existing PO-files on the project path should now be listed in the Catalog Manager. Each file is shown with some statistics like number of strings and translations.