## gmo - Gettexts mo-file import

### Module Description

The gmo module implements the import of the contents of a gettexts mo-file into a message catalog. The mo-file uses 4 byte pointers and 1 byte characters, so this module has an environmental dependency.

### Module Words

#### Import

gmo-read ( c-addr u msc -- 0 | ior )
  Read a mo-file named c-addr u and store the contents in the message catalog msc

### Examples

    include ffl/gmo.fs

    \ Example: import nl.mo file in a message catalog

    msc-new value en>nl                 \ Create a message catalog on the heap

    s" nl.mo" en>nl gmo-read throw      \ Import the nl.mo file in the catalog

    s" Sunday" en>nl msc-translate type cr  \ Use the catalog for the translations

    en>nl msc-free                      \ Free the message catalog from the heap

generated 03-Jun-2010 by ofcfrth-0.10.0