1 <!-- Creator : groff version 1.18.1 -->
4 <meta name="generator" content="groff -Thtml, see www.gnu.org">
5 <meta name="Content-Style" content="text/css">
10 <h1 align=center>MSGFMT</h1>
11 <a href="#NAME">NAME</a><br>
12 <a href="#SYNOPSIS">SYNOPSIS</a><br>
13 <a href="#DESCRIPTION">DESCRIPTION</a><br>
14 <a href="#AUTHOR">AUTHOR</a><br>
15 <a href="#REPORTING BUGS">REPORTING BUGS</a><br>
16 <a href="#COPYRIGHT">COPYRIGHT</a><br>
17 <a href="#SEE ALSO">SEE ALSO</a><br>
23 <table width="100%" border=0 rules="none" frame="void"
24 cols="2" cellspacing="0" cellpadding="0">
25 <tr valign="top" align="left">
28 <p>msgfmt − compile message catalog to binary
32 <a name="SYNOPSIS"></a>
35 <table width="100%" border=0 rules="none" frame="void"
36 cols="2" cellspacing="0" cellpadding="0">
37 <tr valign="top" align="left">
40 <p><b>msgfmt</b> [<i>OPTION</i>] <i>filename.po</i> ...</p>
43 <a name="DESCRIPTION"></a>
46 <table width="100%" border=0 rules="none" frame="void"
47 cols="2" cellspacing="0" cellpadding="0">
48 <tr valign="top" align="left">
51 <p>Generate binary message catalog from textual translation
54 <p>Mandatory arguments to long options are mandatory for
55 short options too. Similarly for optional arguments.</p>
59 <table width="100%" border=0 rules="none" frame="void"
60 cols="2" cellspacing="0" cellpadding="0">
61 <tr valign="top" align="left">
64 <p><b>Input file location:</b></p></td>
67 <table width="100%" border=0 rules="none" frame="void"
68 cols="2" cellspacing="0" cellpadding="0">
69 <tr valign="top" align="left">
72 <p>filename.po ...</p></td>
75 <table width="100%" border=0 rules="none" frame="void"
76 cols="2" cellspacing="0" cellpadding="0">
77 <tr valign="top" align="left">
84 <table width="100%" border=0 rules="none" frame="void"
85 cols="2" cellspacing="0" cellpadding="0">
86 <tr valign="top" align="left">
90 <b>−−directory</b>=<i>DIRECTORY</i></p></td>
93 <table width="100%" border=0 rules="none" frame="void"
94 cols="2" cellspacing="0" cellpadding="0">
95 <tr valign="top" align="left">
98 <p>add DIRECTORY to list for input files search</p>
102 <table width="100%" border=0 rules="none" frame="void"
103 cols="2" cellspacing="0" cellpadding="0">
104 <tr valign="top" align="left">
105 <td width="10%"></td>
107 <p>If input file is -, standard input is read.</p>
111 <table width="100%" border=0 rules="none" frame="void"
112 cols="2" cellspacing="0" cellpadding="0">
113 <tr valign="top" align="left">
116 <p><b>Operation mode:</b></p></td>
119 <table width="100%" border=0 rules="none" frame="void"
120 cols="2" cellspacing="0" cellpadding="0">
121 <tr valign="top" align="left">
122 <td width="10%"></td>
124 <p><b>−j</b>, <b>−−java</b></p></td>
127 <table width="100%" border=0 rules="none" frame="void"
128 cols="2" cellspacing="0" cellpadding="0">
129 <tr valign="top" align="left">
130 <td width="21%"></td>
132 <p>Java mode: generate a Java ResourceBundle class</p>
136 <table width="100%" border=0 rules="none" frame="void"
137 cols="2" cellspacing="0" cellpadding="0">
138 <tr valign="top" align="left">
139 <td width="10%"></td>
141 <p><b>−−java2</b></p></td>
144 <table width="100%" border=0 rules="none" frame="void"
145 cols="2" cellspacing="0" cellpadding="0">
146 <tr valign="top" align="left">
147 <td width="21%"></td>
149 <p>like <b>−−java</b>, and assume Java2 (JDK 1.2
154 <table width="100%" border=0 rules="none" frame="void"
155 cols="2" cellspacing="0" cellpadding="0">
156 <tr valign="top" align="left">
157 <td width="10%"></td>
159 <p><b>−−csharp</b></p></td>
162 <table width="100%" border=0 rules="none" frame="void"
163 cols="2" cellspacing="0" cellpadding="0">
164 <tr valign="top" align="left">
165 <td width="21%"></td>
167 <p>C# mode: generate a .NET .dll file</p>
171 <table width="100%" border=0 rules="none" frame="void"
172 cols="2" cellspacing="0" cellpadding="0">
173 <tr valign="top" align="left">
174 <td width="10%"></td>
176 <p><b>−−csharp−resources</b></p></td>
179 <table width="100%" border=0 rules="none" frame="void"
180 cols="2" cellspacing="0" cellpadding="0">
181 <tr valign="top" align="left">
182 <td width="21%"></td>
184 <p>C# resources mode: generate a .NET .resources file</p>
188 <table width="100%" border=0 rules="none" frame="void"
189 cols="5" cellspacing="0" cellpadding="0">
190 <tr valign="top" align="left">
191 <td width="11%"></td>
194 <p><b>−−tcl</b></p>
196 <td width="11%"></td>
199 <p>Tcl mode: generate a tcl/msgcat .msg file</p>
203 <tr valign="top" align="left">
204 <td width="11%"></td>
207 <p><b>−−qt</b></p>
209 <td width="11%"></td>
212 <p>Qt mode: generate a Qt .qm file</p>
218 <table width="100%" border=0 rules="none" frame="void"
219 cols="2" cellspacing="0" cellpadding="0">
220 <tr valign="top" align="left">
223 <p><b>Output file location:</b></p></td>
226 <table width="100%" border=0 rules="none" frame="void"
227 cols="2" cellspacing="0" cellpadding="0">
228 <tr valign="top" align="left">
229 <td width="10%"></td>
232 <b>−−output−file</b>=<i>FILE</i></p></td>
235 <table width="100%" border=0 rules="none" frame="void"
236 cols="2" cellspacing="0" cellpadding="0">
237 <tr valign="top" align="left">
238 <td width="21%"></td>
240 <p>write output to specified file</p>
244 <table width="100%" border=0 rules="none" frame="void"
245 cols="2" cellspacing="0" cellpadding="0">
246 <tr valign="top" align="left">
247 <td width="10%"></td>
249 <p><b>−−strict</b></p></td>
252 <table width="100%" border=0 rules="none" frame="void"
253 cols="2" cellspacing="0" cellpadding="0">
254 <tr valign="top" align="left">
255 <td width="21%"></td>
257 <p>enable strict Uniforum mode</p>
261 <table width="100%" border=0 rules="none" frame="void"
262 cols="2" cellspacing="0" cellpadding="0">
263 <tr valign="top" align="left">
264 <td width="10%"></td>
266 <p>If output file is -, output is written to standard
271 <table width="100%" border=0 rules="none" frame="void"
272 cols="2" cellspacing="0" cellpadding="0">
273 <tr valign="top" align="left">
276 <p><b>Output file location in Java mode:</b></p></td>
279 <table width="100%" border=0 rules="none" frame="void"
280 cols="2" cellspacing="0" cellpadding="0">
281 <tr valign="top" align="left">
282 <td width="10%"></td>
285 <b>−−resource</b>=<i>RESOURCE</i></p></td>
288 <table width="100%" border=0 rules="none" frame="void"
289 cols="2" cellspacing="0" cellpadding="0">
290 <tr valign="top" align="left">
291 <td width="21%"></td>
297 <table width="100%" border=0 rules="none" frame="void"
298 cols="2" cellspacing="0" cellpadding="0">
299 <tr valign="top" align="left">
300 <td width="10%"></td>
303 <b>−−locale</b>=<i>LOCALE</i></p></td>
306 <table width="100%" border=0 rules="none" frame="void"
307 cols="2" cellspacing="0" cellpadding="0">
308 <tr valign="top" align="left">
309 <td width="21%"></td>
311 <p>locale name, either language or language_COUNTRY</p>
315 <table width="100%" border=0 rules="none" frame="void"
316 cols="2" cellspacing="0" cellpadding="0">
317 <tr valign="top" align="left">
318 <td width="10%"></td>
320 <p><b>−d</b> DIRECTORY</p></td>
323 <table width="100%" border=0 rules="none" frame="void"
324 cols="2" cellspacing="0" cellpadding="0">
325 <tr valign="top" align="left">
326 <td width="21%"></td>
328 <p>base directory of classes directory hierarchy</p>
332 <table width="100%" border=0 rules="none" frame="void"
333 cols="2" cellspacing="0" cellpadding="0">
334 <tr valign="top" align="left">
335 <td width="10%"></td>
337 <p>The class name is determined by appending the locale name
338 to the resource name, separated with an underscore. The
339 <b>−d</b> option is mandatory. The class is written
340 under the specified directory.</p>
344 <table width="100%" border=0 rules="none" frame="void"
345 cols="2" cellspacing="0" cellpadding="0">
346 <tr valign="top" align="left">
349 <p><b>Output file location in C# mode:</b></p></td>
352 <table width="100%" border=0 rules="none" frame="void"
353 cols="2" cellspacing="0" cellpadding="0">
354 <tr valign="top" align="left">
355 <td width="10%"></td>
358 <b>−−resource</b>=<i>RESOURCE</i></p></td>
361 <table width="100%" border=0 rules="none" frame="void"
362 cols="2" cellspacing="0" cellpadding="0">
363 <tr valign="top" align="left">
364 <td width="21%"></td>
370 <table width="100%" border=0 rules="none" frame="void"
371 cols="2" cellspacing="0" cellpadding="0">
372 <tr valign="top" align="left">
373 <td width="10%"></td>
376 <b>−−locale</b>=<i>LOCALE</i></p></td>
379 <table width="100%" border=0 rules="none" frame="void"
380 cols="2" cellspacing="0" cellpadding="0">
381 <tr valign="top" align="left">
382 <td width="21%"></td>
384 <p>locale name, either language or language_COUNTRY</p>
388 <table width="100%" border=0 rules="none" frame="void"
389 cols="2" cellspacing="0" cellpadding="0">
390 <tr valign="top" align="left">
391 <td width="10%"></td>
393 <p><b>−d</b> DIRECTORY</p></td>
396 <table width="100%" border=0 rules="none" frame="void"
397 cols="2" cellspacing="0" cellpadding="0">
398 <tr valign="top" align="left">
399 <td width="21%"></td>
401 <p>base directory for locale dependent .dll files</p>
405 <table width="100%" border=0 rules="none" frame="void"
406 cols="2" cellspacing="0" cellpadding="0">
407 <tr valign="top" align="left">
408 <td width="10%"></td>
410 <p>The <b>−l</b> and <b>−d</b> options are
411 mandatory. The .dll file is written in a subdirectory of the
412 specified directory whose name depends on the locale.</p>
416 <table width="100%" border=0 rules="none" frame="void"
417 cols="2" cellspacing="0" cellpadding="0">
418 <tr valign="top" align="left">
421 <p><b>Output file location in Tcl mode:</b></p></td>
424 <table width="100%" border=0 rules="none" frame="void"
425 cols="2" cellspacing="0" cellpadding="0">
426 <tr valign="top" align="left">
427 <td width="10%"></td>
430 <b>−−locale</b>=<i>LOCALE</i></p></td>
433 <table width="100%" border=0 rules="none" frame="void"
434 cols="2" cellspacing="0" cellpadding="0">
435 <tr valign="top" align="left">
436 <td width="21%"></td>
438 <p>locale name, either language or language_COUNTRY</p>
442 <table width="100%" border=0 rules="none" frame="void"
443 cols="2" cellspacing="0" cellpadding="0">
444 <tr valign="top" align="left">
445 <td width="10%"></td>
447 <p><b>−d</b> DIRECTORY</p></td>
450 <table width="100%" border=0 rules="none" frame="void"
451 cols="2" cellspacing="0" cellpadding="0">
452 <tr valign="top" align="left">
453 <td width="21%"></td>
455 <p>base directory of .msg message catalogs</p>
459 <table width="100%" border=0 rules="none" frame="void"
460 cols="2" cellspacing="0" cellpadding="0">
461 <tr valign="top" align="left">
462 <td width="10%"></td>
464 <p>The <b>−l</b> and <b>−d</b> options are
465 mandatory. The .msg file is written in the specified
470 <table width="100%" border=0 rules="none" frame="void"
471 cols="2" cellspacing="0" cellpadding="0">
472 <tr valign="top" align="left">
475 <p><b>Input file syntax:</b></p></td>
478 <table width="100%" border=0 rules="none" frame="void"
479 cols="2" cellspacing="0" cellpadding="0">
480 <tr valign="top" align="left">
481 <td width="10%"></td>
484 <b>−−properties−input</b></p></td>
487 <table width="100%" border=0 rules="none" frame="void"
488 cols="2" cellspacing="0" cellpadding="0">
489 <tr valign="top" align="left">
490 <td width="21%"></td>
492 <p>input files are in Java .properties syntax</p>
496 <table width="100%" border=0 rules="none" frame="void"
497 cols="2" cellspacing="0" cellpadding="0">
498 <tr valign="top" align="left">
499 <td width="10%"></td>
501 <p><b>−−stringtable−input</b></p></td>
504 <table width="100%" border=0 rules="none" frame="void"
505 cols="2" cellspacing="0" cellpadding="0">
506 <tr valign="top" align="left">
507 <td width="21%"></td>
509 <p>input files are in NeXTstep/GNUstep .strings syntax</p>
513 <table width="100%" border=0 rules="none" frame="void"
514 cols="2" cellspacing="0" cellpadding="0">
515 <tr valign="top" align="left">
518 <p><b>Input file interpretation:</b></p></td>
521 <table width="100%" border=0 rules="none" frame="void"
522 cols="2" cellspacing="0" cellpadding="0">
523 <tr valign="top" align="left">
524 <td width="10%"></td>
526 <p><b>−c</b>, <b>−−check</b></p></td>
529 <table width="100%" border=0 rules="none" frame="void"
530 cols="2" cellspacing="0" cellpadding="0">
531 <tr valign="top" align="left">
532 <td width="21%"></td>
534 <p>perform all the checks implied by
535 <b>−−check−format</b>,
536 <b>−−check−header</b>,
537 <b>−−check−domain</b></p>
541 <table width="100%" border=0 rules="none" frame="void"
542 cols="2" cellspacing="0" cellpadding="0">
543 <tr valign="top" align="left">
544 <td width="10%"></td>
546 <p><b>−−check−format</b></p></td>
549 <table width="100%" border=0 rules="none" frame="void"
550 cols="2" cellspacing="0" cellpadding="0">
551 <tr valign="top" align="left">
552 <td width="21%"></td>
554 <p>check language dependent format strings</p>
558 <table width="100%" border=0 rules="none" frame="void"
559 cols="2" cellspacing="0" cellpadding="0">
560 <tr valign="top" align="left">
561 <td width="10%"></td>
563 <p><b>−−check−header</b></p></td>
566 <table width="100%" border=0 rules="none" frame="void"
567 cols="2" cellspacing="0" cellpadding="0">
568 <tr valign="top" align="left">
569 <td width="21%"></td>
571 <p>verify presence and contents of the header entry</p>
575 <table width="100%" border=0 rules="none" frame="void"
576 cols="2" cellspacing="0" cellpadding="0">
577 <tr valign="top" align="left">
578 <td width="10%"></td>
580 <p><b>−−check−domain</b></p></td>
583 <table width="100%" border=0 rules="none" frame="void"
584 cols="2" cellspacing="0" cellpadding="0">
585 <tr valign="top" align="left">
586 <td width="21%"></td>
588 <p>check for conflicts between domain directives and the
589 <b>−−output−file</b> option</p>
593 <table width="100%" border=0 rules="none" frame="void"
594 cols="2" cellspacing="0" cellpadding="0">
595 <tr valign="top" align="left">
596 <td width="10%"></td>
599 <b>−−check−compatibility</b></p></td>
602 <table width="100%" border=0 rules="none" frame="void"
603 cols="2" cellspacing="0" cellpadding="0">
604 <tr valign="top" align="left">
605 <td width="21%"></td>
607 <p>check that GNU msgfmt behaves like X/Open msgfmt</p>
611 <table width="100%" border=0 rules="none" frame="void"
612 cols="2" cellspacing="0" cellpadding="0">
613 <tr valign="top" align="left">
614 <td width="10%"></td>
617 <p><b>−−check−accelerators</b>[=<i>CHAR</i>]</p></td>
620 <table width="100%" border=0 rules="none" frame="void"
621 cols="2" cellspacing="0" cellpadding="0">
622 <tr valign="top" align="left">
623 <td width="21%"></td>
625 <p>check presence of keyboard accelerators for menu
630 <table width="100%" border=0 rules="none" frame="void"
631 cols="2" cellspacing="0" cellpadding="0">
632 <tr valign="top" align="left">
633 <td width="10%"></td>
636 <b>−−use−fuzzy</b></p></td>
639 <table width="100%" border=0 rules="none" frame="void"
640 cols="2" cellspacing="0" cellpadding="0">
641 <tr valign="top" align="left">
642 <td width="21%"></td>
644 <p>use fuzzy entries in output</p>
648 <table width="100%" border=0 rules="none" frame="void"
649 cols="2" cellspacing="0" cellpadding="0">
650 <tr valign="top" align="left">
653 <p><b>Output details:</b></p></td>
656 <table width="100%" border=0 rules="none" frame="void"
657 cols="2" cellspacing="0" cellpadding="0">
658 <tr valign="top" align="left">
659 <td width="10%"></td>
662 <b>−−alignment</b>=<i>NUMBER</i></p></td>
665 <table width="100%" border=0 rules="none" frame="void"
666 cols="2" cellspacing="0" cellpadding="0">
667 <tr valign="top" align="left">
668 <td width="21%"></td>
670 <p>align strings to NUMBER bytes (default: 1)</p>
674 <table width="100%" border=0 rules="none" frame="void"
675 cols="2" cellspacing="0" cellpadding="0">
676 <tr valign="top" align="left">
677 <td width="10%"></td>
679 <p><b>−−no−hash</b></p></td>
682 <table width="100%" border=0 rules="none" frame="void"
683 cols="2" cellspacing="0" cellpadding="0">
684 <tr valign="top" align="left">
685 <td width="21%"></td>
687 <p>binary file will not include the hash table</p>
691 <table width="100%" border=0 rules="none" frame="void"
692 cols="2" cellspacing="0" cellpadding="0">
693 <tr valign="top" align="left">
696 <p><b>Informative output:</b></p></td>
699 <table width="100%" border=0 rules="none" frame="void"
700 cols="2" cellspacing="0" cellpadding="0">
701 <tr valign="top" align="left">
702 <td width="10%"></td>
704 <p><b>−h</b>, <b>−−help</b></p></td>
707 <table width="100%" border=0 rules="none" frame="void"
708 cols="2" cellspacing="0" cellpadding="0">
709 <tr valign="top" align="left">
710 <td width="21%"></td>
712 <p>display this help and exit</p>
716 <table width="100%" border=0 rules="none" frame="void"
717 cols="2" cellspacing="0" cellpadding="0">
718 <tr valign="top" align="left">
719 <td width="10%"></td>
721 <p><b>−V</b>, <b>−−version</b></p></td>
724 <table width="100%" border=0 rules="none" frame="void"
725 cols="2" cellspacing="0" cellpadding="0">
726 <tr valign="top" align="left">
727 <td width="21%"></td>
729 <p>output version information and exit</p>
733 <table width="100%" border=0 rules="none" frame="void"
734 cols="2" cellspacing="0" cellpadding="0">
735 <tr valign="top" align="left">
736 <td width="10%"></td>
738 <p><b>−−statistics</b></p></td>
741 <table width="100%" border=0 rules="none" frame="void"
742 cols="2" cellspacing="0" cellpadding="0">
743 <tr valign="top" align="left">
744 <td width="21%"></td>
746 <p>print statistics about translations</p>
750 <table width="100%" border=0 rules="none" frame="void"
751 cols="2" cellspacing="0" cellpadding="0">
752 <tr valign="top" align="left">
753 <td width="10%"></td>
755 <p><b>−v</b>, <b>−−verbose</b></p></td>
758 <table width="100%" border=0 rules="none" frame="void"
759 cols="2" cellspacing="0" cellpadding="0">
760 <tr valign="top" align="left">
761 <td width="21%"></td>
763 <p>increase verbosity level</p>
766 <a name="AUTHOR"></a>
769 <table width="100%" border=0 rules="none" frame="void"
770 cols="2" cellspacing="0" cellpadding="0">
771 <tr valign="top" align="left">
772 <td width="10%"></td>
774 <p>Written by Ulrich Drepper.</p>
777 <a name="REPORTING BUGS"></a>
778 <h2>REPORTING BUGS</h2>
780 <table width="100%" border=0 rules="none" frame="void"
781 cols="2" cellspacing="0" cellpadding="0">
782 <tr valign="top" align="left">
783 <td width="10%"></td>
785 <p>Report bugs to <bug-gnu-gettext@gnu.org>.</p>
788 <a name="COPYRIGHT"></a>
791 <table width="100%" border=0 rules="none" frame="void"
792 cols="2" cellspacing="0" cellpadding="0">
793 <tr valign="top" align="left">
794 <td width="10%"></td>
796 <p>Copyright © 1995-1998, 2000-2010 Free Software
797 Foundation, Inc. License GPLv3+: GNU GPL version 3 or later
798 <http://gnu.org/licenses/gpl.html><br>
799 This is free software: you are free to change and
800 redistribute it. There is NO WARRANTY, to the extent
801 permitted by law.</p>
804 <a name="SEE ALSO"></a>
807 <table width="100%" border=0 rules="none" frame="void"
808 cols="2" cellspacing="0" cellpadding="0">
809 <tr valign="top" align="left">
810 <td width="10%"></td>
812 <p>The full documentation for <b>msgfmt</b> is maintained as
813 a Texinfo manual. If the <b>info</b> and <b>msgfmt</b>
814 programs are properly installed at your site, the
819 <table width="100%" border=0 rules="none" frame="void"
820 cols="2" cellspacing="0" cellpadding="0">
821 <tr valign="top" align="left">
822 <td width="20%"></td>
824 <p><b>info msgfmt</b></p>
828 <table width="100%" border=0 rules="none" frame="void"
829 cols="2" cellspacing="0" cellpadding="0">
830 <tr valign="top" align="left">
831 <td width="10%"></td>
833 <p>should give you access to the complete manual.</p>