Struct MoFile

Struct representing .mo file.

struct MoFile ;

Default constructed object returns untranslated messages.

Constructors

NameDescription
this Read from file.
this Constructor from data. Data must be immutable and live as long as translated messages are used, because it's used to return strings.

Methods

NameDescription
gettext Get translated message.
header .mo file header that includes some info like creation date, language and translator's name.
ngettext Get translated message considering plural forms.