Module DescriptionThe 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 WordsImportgmo-read ( c-addr u msc -- 0 | ior ) Read the mo-file c-addr u and store the contents in the message catalog msc
Examplesinclude 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 by ofcfrth-0.10.0
|