summaryrefslogtreecommitdiff
path: root/gettext-tools/man/msgfmt.1.html
blob: 1ef3670260ef1ea46c98f0685afce1e16d4c0400 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
<!-- Creator     : groff version 1.22.3 -->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="generator" content="groff -Thtml, see www.gnu.org">
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<meta name="Content-Style" content="text/css">
<style type="text/css">
       p       { margin-top: 0; margin-bottom: 0; vertical-align: top }
       pre     { margin-top: 0; margin-bottom: 0; vertical-align: top }
       table   { margin-top: 0; margin-bottom: 0; vertical-align: top }
       h1      { text-align: center }
</style>
<title>MSGFMT</title>

</head>
<body>

<h1 align="center">MSGFMT</h1>

<a href="#NAME">NAME</a><br>
<a href="#SYNOPSIS">SYNOPSIS</a><br>
<a href="#DESCRIPTION">DESCRIPTION</a><br>
<a href="#AUTHOR">AUTHOR</a><br>
<a href="#REPORTING BUGS">REPORTING BUGS</a><br>
<a href="#COPYRIGHT">COPYRIGHT</a><br>
<a href="#SEE ALSO">SEE ALSO</a><br>

<hr>


<h2>NAME
<a name="NAME"></a>
</h2>


<p style="margin-left:11%; margin-top: 1em">msgfmt &minus;
compile message catalog to binary format</p>

<h2>SYNOPSIS
<a name="SYNOPSIS"></a>
</h2>


<p style="margin-left:11%; margin-top: 1em"><b>msgfmt</b>
[<i>OPTION</i>] <i>filename.po</i> ...</p>

<h2>DESCRIPTION
<a name="DESCRIPTION"></a>
</h2>


<p style="margin-left:11%; margin-top: 1em">Generate binary
message catalog from textual translation description.</p>

<p style="margin-left:11%; margin-top: 1em">Mandatory
arguments to long options are mandatory for short options
too. Similarly for optional arguments.</p>

<p style="margin-left:11%; margin-top: 1em"><b>Input file
location:</b> <br>
filename.po ...</p>

<p style="margin-left:22%;">input files</p>

<p style="margin-left:11%;"><b>&minus;D</b>,
<b>&minus;&minus;directory</b>=<i>DIRECTORY</i></p>

<p style="margin-left:22%;">add DIRECTORY to list for input
files search</p>

<p style="margin-left:11%; margin-top: 1em">If input file
is -, standard input is read.</p>

<p style="margin-left:11%; margin-top: 1em"><b>Operation
mode: <br>
&minus;j</b>, <b>&minus;&minus;java</b></p>

<p style="margin-left:22%;">Java mode: generate a Java
ResourceBundle class</p>

<p style="margin-left:11%;"><b>&minus;&minus;java2</b></p>

<p style="margin-left:22%;">like <b>&minus;&minus;java</b>,
and assume Java2 (JDK 1.2 or higher)</p>


<p style="margin-left:11%;"><b>&minus;&minus;csharp</b></p>

<p style="margin-left:22%;">C# mode: generate a .NET .dll
file</p>


<p style="margin-left:11%;"><b>&minus;&minus;csharp&minus;resources</b></p>

<p style="margin-left:22%;">C# resources mode: generate a
.NET .resources file</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="7%">


<p><b>&minus;&minus;tcl</b></p></td>
<td width="4%"></td>
<td width="63%">


<p>Tcl mode: generate a tcl/msgcat .msg file</p></td>
<td width="15%">
</td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="7%">


<p><b>&minus;&minus;qt</b></p></td>
<td width="4%"></td>
<td width="63%">


<p>Qt mode: generate a Qt .qm file</p></td>
<td width="15%">
</td></tr>
</table>


<p style="margin-left:11%;"><b>&minus;&minus;desktop</b></p>

<p style="margin-left:22%;">Desktop Entry mode: generate a
.desktop file</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="7%">


<p><b>&minus;&minus;xml</b></p></td>
<td width="4%"></td>
<td width="41%">


<p>XML mode: generate XML file</p></td>
<td width="37%">
</td></tr>
</table>

<p style="margin-left:11%; margin-top: 1em"><b>Output file
location: <br>
&minus;o</b>,
<b>&minus;&minus;output&minus;file</b>=<i>FILE</i></p>

<p style="margin-left:22%;">write output to specified
file</p>


<p style="margin-left:11%;"><b>&minus;&minus;strict</b></p>

<p style="margin-left:22%;">enable strict Uniforum mode</p>

<p style="margin-left:11%; margin-top: 1em">If output file
is -, output is written to standard output.</p>

<p style="margin-left:11%; margin-top: 1em"><b>Output file
location in Java mode: <br>
&minus;r</b>,
<b>&minus;&minus;resource</b>=<i>RESOURCE</i></p>

<p style="margin-left:22%;">resource name</p>

<p style="margin-left:11%;"><b>&minus;l</b>,
<b>&minus;&minus;locale</b>=<i>LOCALE</i></p>

<p style="margin-left:22%;">locale name, either language or
language_COUNTRY</p>


<p style="margin-left:11%;"><b>&minus;&minus;source</b></p>

<p style="margin-left:22%;">produce a .java file, instead
of a .class file</p>

<p style="margin-left:11%;"><b>&minus;d</b> DIRECTORY</p>

<p style="margin-left:22%;">base directory of classes
directory hierarchy</p>

<p style="margin-left:11%; margin-top: 1em">The class name
is determined by appending the locale name to the resource
name, separated with an underscore. The <b>&minus;d</b>
option is mandatory. The class is written under the
specified directory.</p>

<p style="margin-left:11%; margin-top: 1em"><b>Output file
location in C# mode: <br>
&minus;r</b>,
<b>&minus;&minus;resource</b>=<i>RESOURCE</i></p>

<p style="margin-left:22%;">resource name</p>

<p style="margin-left:11%;"><b>&minus;l</b>,
<b>&minus;&minus;locale</b>=<i>LOCALE</i></p>

<p style="margin-left:22%;">locale name, either language or
language_COUNTRY</p>

<p style="margin-left:11%;"><b>&minus;d</b> DIRECTORY</p>

<p style="margin-left:22%;">base directory for locale
dependent .dll files</p>

<p style="margin-left:11%; margin-top: 1em">The
<b>&minus;l</b> and <b>&minus;d</b> options are mandatory.
The .dll file is written in a subdirectory of the specified
directory whose name depends on the locale.</p>

<p style="margin-left:11%; margin-top: 1em"><b>Output file
location in Tcl mode: <br>
&minus;l</b>, <b>&minus;&minus;locale</b>=<i>LOCALE</i></p>

<p style="margin-left:22%;">locale name, either language or
language_COUNTRY</p>

<p style="margin-left:11%;"><b>&minus;d</b> DIRECTORY</p>

<p style="margin-left:22%;">base directory of .msg message
catalogs</p>

<p style="margin-left:11%; margin-top: 1em">The
<b>&minus;l</b> and <b>&minus;d</b> options are mandatory.
The .msg file is written in the specified directory.</p>

<p style="margin-left:11%; margin-top: 1em"><b>Desktop
Entry mode options: <br>
&minus;l</b>, <b>&minus;&minus;locale</b>=<i>LOCALE</i></p>

<p style="margin-left:22%;">locale name, either language or
language_COUNTRY</p>

<p style="margin-left:11%;"><b>&minus;o</b>,
<b>&minus;&minus;output&minus;file</b>=<i>FILE</i></p>

<p style="margin-left:22%;">write output to specified
file</p>


<p style="margin-left:11%;"><b>&minus;&minus;template</b>=<i>TEMPLATE</i></p>

<p style="margin-left:22%;">a .desktop file used as a
template</p>

<p style="margin-left:11%;"><b>&minus;d</b> DIRECTORY</p>

<p style="margin-left:22%;">base directory of .po files</p>

<p style="margin-left:11%;"><b>&minus;kWORD</b>,
<b>&minus;&minus;keyword</b>=<i>WORD</i></p>

<p style="margin-left:22%;">look for WORD as an additional
keyword</p>

<p style="margin-left:11%;"><b>&minus;k</b>,
<b>&minus;&minus;keyword</b></p>

<p style="margin-left:22%;">do not to use default
keywords</p>

<p style="margin-left:11%; margin-top: 1em">The
<b>&minus;l</b>, <b>&minus;o</b>, and
<b>&minus;&minus;template</b> options are mandatory. If
<b>&minus;D</b> is specified, input files are read from the
directory instead of the command line arguments.</p>

<p style="margin-left:11%; margin-top: 1em"><b>XML mode
options: <br>
&minus;l</b>, <b>&minus;&minus;locale</b>=<i>LOCALE</i></p>

<p style="margin-left:22%;">locale name, either language or
language_COUNTRY</p>

<p style="margin-left:11%;"><b>&minus;L</b>,
<b>&minus;&minus;language</b>=<i>NAME</i></p>

<p style="margin-left:22%;">recognise the specified XML
language</p>

<p style="margin-left:11%;"><b>&minus;o</b>,
<b>&minus;&minus;output&minus;file</b>=<i>FILE</i></p>

<p style="margin-left:22%;">write output to specified
file</p>


<p style="margin-left:11%;"><b>&minus;&minus;template</b>=<i>TEMPLATE</i></p>

<p style="margin-left:22%;">an XML file used as a
template</p>

<p style="margin-left:11%;"><b>&minus;d</b> DIRECTORY</p>

<p style="margin-left:22%;">base directory of .po files</p>

<p style="margin-left:11%; margin-top: 1em">The
<b>&minus;l</b>, <b>&minus;o</b>, and
<b>&minus;&minus;template</b> options are mandatory. If
<b>&minus;D</b> is specified, input files are read from the
directory instead of the command line arguments.</p>

<p style="margin-left:11%; margin-top: 1em"><b>Input file
syntax: <br>
&minus;P</b>,
<b>&minus;&minus;properties&minus;input</b></p>

<p style="margin-left:22%;">input files are in Java
.properties syntax</p>


<p style="margin-left:11%;"><b>&minus;&minus;stringtable&minus;input</b></p>

<p style="margin-left:22%;">input files are in
NeXTstep/GNUstep .strings syntax</p>

<p style="margin-left:11%; margin-top: 1em"><b>Input file
interpretation: <br>
&minus;c</b>, <b>&minus;&minus;check</b></p>

<p style="margin-left:22%;">perform all the checks implied
by <b>&minus;&minus;check&minus;format</b>,
<b>&minus;&minus;check&minus;header</b>,
<b>&minus;&minus;check&minus;domain</b></p>


<p style="margin-left:11%;"><b>&minus;&minus;check&minus;format</b></p>

<p style="margin-left:22%;">check language dependent format
strings</p>


<p style="margin-left:11%;"><b>&minus;&minus;check&minus;header</b></p>

<p style="margin-left:22%;">verify presence and contents of
the header entry</p>


<p style="margin-left:11%;"><b>&minus;&minus;check&minus;domain</b></p>

<p style="margin-left:22%;">check for conflicts between
domain directives and the
<b>&minus;&minus;output&minus;file</b> option</p>

<p style="margin-left:11%;"><b>&minus;C</b>,
<b>&minus;&minus;check&minus;compatibility</b></p>

<p style="margin-left:22%;">check that GNU msgfmt behaves
like X/Open msgfmt</p>


<p style="margin-left:11%;"><b>&minus;&minus;check&minus;accelerators</b>[=<i>CHAR</i>]</p>

<p style="margin-left:22%;">check presence of keyboard
accelerators for menu items</p>

<p style="margin-left:11%;"><b>&minus;f</b>,
<b>&minus;&minus;use&minus;fuzzy</b></p>

<p style="margin-left:22%;">use fuzzy entries in output</p>

<p style="margin-left:11%; margin-top: 1em"><b>Output
details: <br>
&minus;a</b>,
<b>&minus;&minus;alignment</b>=<i>NUMBER</i></p>

<p style="margin-left:22%;">align strings to NUMBER bytes
(default: 1)</p>


<p style="margin-left:11%;"><b>&minus;&minus;endianness</b>=<i>BYTEORDER</i></p>

<p style="margin-left:22%;">write out 32-bit numbers in the
given byte order (big or little, default depends on
platform)</p>


<p style="margin-left:11%;"><b>&minus;&minus;no&minus;hash</b></p>

<p style="margin-left:22%;">binary file will not include
the hash table</p>

<p style="margin-left:11%; margin-top: 1em"><b>Informative
output: <br>
&minus;h</b>, <b>&minus;&minus;help</b></p>

<p style="margin-left:22%;">display this help and exit</p>

<p style="margin-left:11%;"><b>&minus;V</b>,
<b>&minus;&minus;version</b></p>

<p style="margin-left:22%;">output version information and
exit</p>


<p style="margin-left:11%;"><b>&minus;&minus;statistics</b></p>

<p style="margin-left:22%;">print statistics about
translations</p>

<p style="margin-left:11%;"><b>&minus;v</b>,
<b>&minus;&minus;verbose</b></p>

<p style="margin-left:22%;">increase verbosity level</p>

<h2>AUTHOR
<a name="AUTHOR"></a>
</h2>


<p style="margin-left:11%; margin-top: 1em">Written by
Ulrich Drepper.</p>

<h2>REPORTING BUGS
<a name="REPORTING BUGS"></a>
</h2>


<p style="margin-left:11%; margin-top: 1em">Report bugs to
&lt;bug-gnu-gettext@gnu.org&gt;.</p>

<h2>COPYRIGHT
<a name="COPYRIGHT"></a>
</h2>


<p style="margin-left:11%; margin-top: 1em">Copyright
&copy; 1995-1998, 2000-2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
&lt;http://gnu.org/licenses/gpl.html&gt; <br>
This is free software: you are free to change and
redistribute it. There is NO WARRANTY, to the extent
permitted by law.</p>

<h2>SEE ALSO
<a name="SEE ALSO"></a>
</h2>


<p style="margin-left:11%; margin-top: 1em">The full
documentation for <b>msgfmt</b> is maintained as a Texinfo
manual. If the <b>info</b> and <b>msgfmt</b> programs are
properly installed at your site, the command</p>

<p style="margin-left:22%; margin-top: 1em"><b>info
msgfmt</b></p>

<p style="margin-left:11%; margin-top: 1em">should give you
access to the complete manual.</p>
<hr>
</body>
</html>