1MSGFILTER(1) User Commands MSGFILTER(1)
2
3
4
6 msgfilter - edit translations of message catalog
7
9 msgfilter [OPTION] FILTER [FILTER-OPTION]
10
12 Applies a filter to all translations of a translation catalog.
13
14 Mandatory arguments to long options are mandatory for short options
15 too.
16
17 Input file location:
18 -i, --input=INPUTFILE
19 input PO file
20
21 -D, --directory=DIRECTORY
22 add DIRECTORY to list for input files search
23
24 If no input file is given or if it is -, standard input is read.
25
26 Output file location:
27 -o, --output-file=FILE
28 write output to specified file
29
30 The results are written to standard output if no output file is speci‐
31 fied or if it is -.
32
33 The FILTER can be any program that reads a translation from standard
34 input and writes a modified translation to standard output.
35
36 Filter input and output:
37 --newline
38 add a newline at the end of input and remove a newline from the
39 end of output
40
41 Useful FILTER-OPTIONs when the FILTER is 'sed':
42 -e, --expression=SCRIPT
43 add SCRIPT to the commands to be executed
44
45 -f, --file=SCRIPTFILE
46 add the contents of SCRIPTFILE to the commands to be executed
47
48 -n, --quiet, --silent
49 suppress automatic printing of pattern space
50
51 Input file syntax:
52 -P, --properties-input
53 input file is in Java .properties syntax
54
55 --stringtable-input
56 input file is in NeXTstep/GNUstep .strings syntax
57
58 Output details:
59 --color
60 use colors and other text attributes always
61
62 --color=WHEN
63 use colors and other text attributes if WHEN. WHEN may be
64 'always', 'never', 'auto', or 'html'.
65
66 --style=STYLEFILE
67 specify CSS style rule file for --color
68
69 --no-escape
70 do not use C escapes in output (default)
71
72 -E, --escape
73 use C escapes in output, no extended chars
74
75 --force-po
76 write PO file even if empty
77
78 --indent
79 indented output style
80
81 --keep-header
82 keep header entry unmodified, don't filter it
83
84 --no-location
85 suppress '#: filename:line' lines
86
87 -n, --add-location
88 preserve '#: filename:line' lines (default)
89
90 --strict
91 strict Uniforum output style
92
93 -p, --properties-output
94 write out a Java .properties file
95
96 --stringtable-output
97 write out a NeXTstep/GNUstep .strings file
98
99 -w, --width=NUMBER
100 set output page width
101
102 --no-wrap
103 do not break long message lines, longer than the output page
104 width, into several lines
105
106 -s, --sort-output
107 generate sorted output
108
109 -F, --sort-by-file
110 sort output by file location
111
112 Informative output:
113 -h, --help
114 display this help and exit
115
116 -V, --version
117 output version information and exit
118
120 Written by Bruno Haible.
121
123 Report bugs in the bug tracker at <https://savan‐
124 nah.gnu.org/projects/gettext> or by email to <bug-gettext@gnu.org>.
125
127 Copyright © 2001-2020 Free Software Foundation, Inc. License GPLv3+:
128 GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
129 This is free software: you are free to change and redistribute it.
130 There is NO WARRANTY, to the extent permitted by law.
131
133 The full documentation for msgfilter is maintained as a Texinfo manual.
134 If the info and msgfilter programs are properly installed at your site,
135 the command
136
137 info msgfilter
138
139 should give you access to the complete manual.
140
141
142
143GNU gettext-tools 0.20.2 April 2020 MSGFILTER(1)