NAME

msgfmt - compile message catalog to binary format

SYNOPSIS

msgfmt [_O_P_T_I_O_N] _f_i_l_e_n_a_m_e_._p_o ...

DESCRIPTION

Generate binary message catalog from textual translation description.

Mandatory arguments to long options are mandatory for short options too. Similarly for optional arguments.

Input file location:

filename.po ...
input files
--DD, ----ddiirreeccttoorryy=_D_I_R_E_C_T_O_R_Y
add DIRECTORY to list for input files search

If input file is -, standard input is read.

Operation mode:

--jj, ----jjaavvaa
Java mode: generate a Java ResourceBundle class
----jjaavvaa22
like ----jjaavvaa, and assume Java2 (JDK 1.2 or higher)
----ccsshhaarrpp
C# mode: generate a .NET .dll file
----ccsshhaarrpp--rreessoouurrcceess
C# resources mode: generate a .NET .resources file
----ttccll
Tcl mode: generate a tcl/msgcat .msg file
----qqtt
Qt mode: generate a Qt .qm file

Output file location:

--oo, ----oouuttppuutt--ffiillee=_F_I_L_E
write output to specified file
----ssttrriicctt
enable strict Uniforum mode

If output file is -, output is written to standard output.

Output file location in Java mode:

--rr, ----rreessoouurrccee=_R_E_S_O_U_R_C_E
resource name
--ll, ----llooccaallee=_L_O_C_A_L_E
locale name, either language or language_COUNTRY
--dd DIRECTORY
base directory of classes directory hierarchy

The class name is determined by appending the locale name to the resource name, separated with an underscore. The --dd option is mandatory. The class is written under the specified directory.

Output file location in C# mode:

--rr, ----rreessoouurrccee=_R_E_S_O_U_R_C_E
resource name
--ll, ----llooccaallee=_L_O_C_A_L_E
locale name, either language or language_COUNTRY
--dd DIRECTORY
base directory for locale dependent .dll files

The --ll and --dd options are mandatory. The .dll file is written in a subdirectory of the specified directory whose name depends on the locale.

Output file location in Tcl mode:

--ll, ----llooccaallee=_L_O_C_A_L_E
locale name, either language or language_COUNTRY
--dd DIRECTORY
base directory of .msg message catalogs

The --ll and --dd options are mandatory. The .msg file is written in the specified directory.

Input file syntax:

--PP, ----pprrooppeerrttiieess--iinnppuutt
input files are in Java .properties syntax
----ssttrriinnggttaabbllee--iinnppuutt
input files are in NeXTstep/GNUstep .strings syntax

Input file interpretation:

--cc, ----cchheecckk
perform all the checks implied by ----cchheecckk--ffoorrmmaatt, ----cchheecckk--hheeaaddeerr, ----cchheecckk--ddoommaaiinn
----cchheecckk--ffoorrmmaatt
check language dependent format strings
----cchheecckk--hheeaaddeerr
verify presence and contents of the header entry
----cchheecckk--ddoommaaiinn
check for conflicts between domain directives and the ----oouuttppuutt--ffiillee option
--CC, ----cchheecckk--ccoommppaattiibbiilliittyy
check that GNU msgfmt behaves like X/Open msgfmt
----cchheecckk--aacccceelleerraattoorrss[=_C_H_A_R]
check presence of keyboard accelerators for menu items
--ff, ----uussee--ffuuzzzzyy
use fuzzy entries in output

Output details:

--aa, ----aalliiggnnmmeenntt=_N_U_M_B_E_R
align strings to NUMBER bytes (default: 1)
----nnoo--hhaasshh
binary file will not include the hash table

Informative output:

--hh, ----hheellpp
display this help and exit
--VV, ----vveerrssiioonn
output version information and exit
----ssttaattiissttiiccss
print statistics about translations
--vv, ----vveerrbboossee
increase verbosity level

AUTHOR

Written by Ulrich Drepper.

REPORTING BUGS

Report bugs to . Copyright © 1995-1998, 2000-2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

SEE ALSO

The full documentation for msgfmt is maintained as a Texinfo manual. If the info and msgfmt programs are properly installed at your site, the command
info msgfmt

should give you access to the complete manual.