faqts : Computers : Programming : Languages : PHP : Common Problems : Internationalization

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

3 of 5 people (60%) answered Yes
Recently 2 of 4 people (50%) answered Yes

Entry

What is the format (programming grammar) of .mo files and how do I create it?

Jul 9th, 2001 07:00
Ivan L., Guest,


gettext is a GNU Package: the gettext library comes with a set of 
utilities to (among others) : 
- extract those string you want translated from your code (xgettext), 
- possibly merge the resulting file with already existing .po 
translation files (msgmerge), 
- and "compile" your translation files into a .mo file (msgformat).
See http://www.gnu.org/manual/gettext/index.html for a complete 
description.
The .mo format is described in 
http://www.gnu.org/manual/gettext/html_node/gettext_34.html