module GettextPO

The main entrypoints to parse PO files are GettextPO::File.new and GettextPO::File.read.

Error handling

There are two kinds of errors in this gem. The first is for exception handlings of libgettextpo. The second is regular error raising from this gem.

Some functions takes exception error handling paramters like xerror and xerror2. These parameters expect Proc object which takes several parameters. See also the description of GettextPO::File.read method. The severity parameter among these parameters is either SEVERITY_WARNING, SEVERITY_ERROR, or SEVERITY_FATAL_ERROR.

This gem normally raises GettextPO::Error object, except for the standard ones, StopIteration for example.