From b685a652d386d1c27a52e31008f0e1da6e73aaad Mon Sep 17 00:00:00 2001
From: Bruno Haible
-
-
+
The 8 Producing Binary MO Files
+8 Producing Binary MO Files
-8.1 Invoking the
+msgfmt
Program8.1 Invoking the
msgfmt
Program
msgfmt [option] filename.po ...
msgfmt
programs generates a binary message catalog from a textual
translation description.
8.1.1 Input file location
+8.1.1 Input file location
@@ -42,8 +42,8 @@ translation description.
ResourceBundle
class.
--check-format
, --check-header
,
--check-domain
.
printf
-like function and so msgfmt
might rep
errors where there are none.
To solve this problem the programmer can dictate the decision to the
-xgettext
program (see section 3.4 Special Comments preceding Keywords). The translator should not
+xgettext
program (see section 3.5 Special Comments preceding Keywords). The translator should not
consider removing the flag from the #, line. This "fix" would be
reversed again as soon as msgmerge
is called the next time.
--output-file
option
@@ -235,18 +235,18 @@ option
msgunfmt
Programmsgunfmt
Programmsgunfmt [option] [file]...
-
+
The msgunfmt
program converts a binary message catalog to a
Uniforum style .po file.
ResourceBundle
class.
CLASSPATH
-8.2.4 Input file location in Tcl mode
+8.2.4 Input file location in Tcl mode
@@ -426,14 +426,14 @@ separated with an underscore. The class is located using the CLASSPATH
- `--locale=locale´
-
-
-
+
+
Specify the locale name, either a language specification of the form ll
or a combined language and country specification of the form ll_CC.
- `-d directory´
-
-
+
Specify the base directory of `.msg´ message catalogs.
@@ -445,7 +445,7 @@ located in the specified directory.
-8.2.5 Output file location
+8.2.5 Output file location
@@ -453,8 +453,8 @@ located in the specified directory.
-
- `--output-file=file´
-
-
-
+
+
Write output to specified file.
@@ -466,26 +466,26 @@ or if it is `-´.
-8.2.6 Output details
+8.2.6 Output details
- `--force-po´
-
-
+
Always write an output file even if it contains no message.
- `-i´
-
- `--indent´
-
-
-
+
+
Write the .po file using indented style.
- `--strict´
-
-
+
Write out a strict Uniforum conforming PO file. Note that this
Uniforum format should be avoided because it doesn't support the
GNU extensions.
@@ -494,19 +494,26 @@ GNU extensions.
-
- `--width=number´
-
-
-
+
+
Set the output page width. Long strings in the output files will be
split across multiple lines in order to ensure that each line's width
(= number of screen columns) is less or equal to the given number.
+
- `--no-wrap´
+
-
+
+Do not break long message lines. Message lines whose width exceeds the
+output page width will not be split into several lines. Only file reference
+lines which are wider than the output page width will be split.
+
- `-s´
-
- `--sort-output´
-
-
-
-
+
+
+
Generate sorted output. Note that using this option makes it much harder
for the translator to understand each message's context.
@@ -514,7 +521,7 @@ for the translator to understand each message's context.
-
8.2.7 Informative output
+8.2.7 Informative output
@@ -522,34 +529,34 @@ for the translator to understand each message's context.
-
- `--help´
-
-
-
+
+
Display this help and exit.
- `-V´
-
- `--version´
-
-
-
+
+
Output version information and exit.
- `-v´
-
- `--verbose´
-
-
-
+
+
Increase verbosity level.
-8.3 The Format of GNU MO Files
+8.3 The Format of GNU MO Files
@@ -558,7 +565,7 @@ which appears below.
-
+
The first two words serve the identification of the file. The magic
number will always signal GNU MO files. The number is stored in the
byte order of the generating machine, so the magic number really is
@@ -606,7 +613,7 @@ translated tables, making the system information very easy to find.
-
+
The size S of the hash table can be zero. In this case, the
hash table itself is not contained in the MO file. Some people might
prefer this because a precomputed hashing table takes disk space, and
@@ -627,7 +634,7 @@ machines, a correct alignment will speed things up.
-
+
Plural forms are stored by letting the plural of the original string
follow the singular of the original string, separated through a
NUL byte. The length which appears in the string descriptor
--
cgit v1.1