2 @cindex @code{msguniq} program, usage
4 msguniq [@var{option}] [@var{inputfile}]
7 @cindex unify duplicate translations
8 @cindex duplicate removal
9 The @code{msguniq} program unifies duplicate translations in a translation
10 catalog. It finds duplicate translations of the same message ID. Such
11 duplicates are invalid input for other programs like @code{msgfmt},
12 @code{msgmerge} or @code{msgcat}. By default, duplicates are merged
13 together. When using the @samp{--repeated} option, only duplicates are
14 output, and all other messages are discarded. Comments and extracted
15 comments will be cumulated, except that if @samp{--use-first} is
16 specified, they will be taken from the first translation. File positions
17 will be cumulated. When using the @samp{--unique} option, duplicates are
20 @subsection Input file location
26 @item -D @var{directory}
27 @itemx --directory=@var{directory}
28 @opindex -D@r{, @code{msguniq} option}
29 @opindex --directory@r{, @code{msguniq} option}
30 Add @var{directory} to the list of directories. Source files are
31 searched relative to this list of directories. The resulting @file{.po}
32 file will be written relative to the current directory, though.
36 If no @var{inputfile} is given or if it is @samp{-}, standard input is read.
38 @subsection Output file location
42 @itemx --output-file=@var{file}
43 @opindex -o@r{, @code{msguniq} option}
44 @opindex --output-file@r{, @code{msguniq} option}
45 Write output to specified file.
49 The results are written to standard output if no output file is specified
52 @subsection Message selection
57 @opindex -d@r{, @code{msguniq} option}
58 @opindex --repeated@r{, @code{msguniq} option}
59 Print only duplicates.
63 @opindex -u@r{, @code{msguniq} option}
64 @opindex --unique@r{, @code{msguniq} option}
65 Print only unique messages, discard duplicates.
69 @subsection Input file syntax
73 @itemx --properties-input
74 @opindex -P@r{, @code{msguniq} option}
75 @opindex --properties-input@r{, @code{msguniq} option}
76 Assume the input file is a Java ResourceBundle in Java @code{.properties}
77 syntax, not in PO file syntax.
79 @item --stringtable-input
80 @opindex --stringtable-input@r{, @code{msguniq} option}
81 Assume the input file is a NeXTstep/GNUstep localized resource file in
82 @code{.strings} syntax, not in PO file syntax.
86 @subsection Output details
88 @c --no-escape and --escape omitted on purpose. They are not useful.
92 @itemx --to-code=@var{name}
93 @opindex -t@r{, @code{msguniq} option}
94 @opindex --to-code@r{, @code{msguniq} option}
95 Specify encoding for output.
98 @opindex --use-first@r{, @code{msguniq} option}
99 Use first available translation for each message. Don't merge several
100 translations into one.
103 @itemx --color=@var{when}
104 @opindex --color@r{, @code{msguniq} option}
105 Specify whether or when to use colors and other text attributes.
106 See @ref{The --color option} for details.
108 @item --style=@var{style_file}
109 @opindex --style@r{, @code{msguniq} option}
110 Specify the CSS style rule file to use for @code{--color}.
111 See @ref{The --style option} for details.
114 @opindex --force-po@r{, @code{msguniq} option}
115 Always write an output file even if it contains no message.
119 @opindex -i@r{, @code{msguniq} option}
120 @opindex --indent@r{, @code{msguniq} option}
121 Write the .po file using indented style.
124 @opindex --no-location@r{, @code{msguniq} option}
125 Do not write @samp{#: @var{filename}:@var{line}} lines.
128 @itemx --add-location=@var{type}
129 @opindex -n@r{, @code{msguniq} option}
130 @opindex --add-location@r{, @code{msguniq} option}
131 Generate @samp{#: @var{filename}:@var{line}} lines (default).
133 The optional @var{type} can be either @samp{full}, @samp{file}, or
134 @samp{never}. If it is not given or @samp{full}, it generates the
135 lines with both file name and line number. If it is @samp{file}, the
136 line number part is omitted. If it is @samp{never}, it completely
137 suppresses the lines (same as @code{--no-location}).
140 @opindex --strict@r{, @code{msguniq} option}
141 Write out a strict Uniforum conforming PO file. Note that this
142 Uniforum format should be avoided because it doesn't support the
146 @itemx --properties-output
147 @opindex -p@r{, @code{msguniq} option}
148 @opindex --properties-output@r{, @code{msguniq} option}
149 Write out a Java ResourceBundle in Java @code{.properties} syntax. Note
150 that this file format doesn't support plural forms and silently drops
153 @item --stringtable-output
154 @opindex --stringtable-output@r{, @code{msguniq} option}
155 Write out a NeXTstep/GNUstep localized resource file in @code{.strings} syntax.
156 Note that this file format doesn't support plural forms.
158 @item -w @var{number}
159 @itemx --width=@var{number}
160 @opindex -w@r{, @code{msguniq} option}
161 @opindex --width@r{, @code{msguniq} option}
162 Set the output page width. Long strings in the output files will be
163 split across multiple lines in order to ensure that each line's width
164 (= number of screen columns) is less or equal to the given @var{number}.
167 @opindex --no-wrap@r{, @code{msguniq} option}
168 Do not break long message lines. Message lines whose width exceeds the
169 output page width will not be split into several lines. Only file reference
170 lines which are wider than the output page width will be split.
174 @opindex -s@r{, @code{msguniq} option}
175 @opindex --sort-output@r{, @code{msguniq} option}
176 Generate sorted output. Note that using this option makes it much harder
177 for the translator to understand each message's context.
180 @itemx --sort-by-file
181 @opindex -F@r{, @code{msguniq} option}
182 @opindex --sort-by-file@r{, @code{msguniq} option}
183 Sort output by file location.
187 @subsection Informative output
192 @opindex -h@r{, @code{msguniq} option}
193 @opindex --help@r{, @code{msguniq} option}
194 Display this help and exit.
198 @opindex -V@r{, @code{msguniq} option}
199 @opindex --version@r{, @code{msguniq} option}
200 Output version information and exit.