1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.24.
2 .TH XGETTEXT "1" "January 2014" "GNU gettext-tools 0.18.3" GNU
4 xgettext \- extract gettext strings from source
7 [\fIOPTION\fR] [\fIINPUTFILE\fR]...
9 .\" Add any additional description here
11 Extract translatable strings from given input files.
13 Mandatory arguments to long options are mandatory for short options too.
14 Similarly for optional arguments.
15 .SS "Input file location:"
20 \fB\-f\fR, \fB\-\-files\-from\fR=\fIFILE\fR
21 get list of input files from FILE
23 \fB\-D\fR, \fB\-\-directory\fR=\fIDIRECTORY\fR
24 add DIRECTORY to list for input files search
26 If input file is -, standard input is read.
27 .SS "Output file location:"
29 \fB\-d\fR, \fB\-\-default\-domain\fR=\fINAME\fR
30 use NAME.po for output (instead of messages.po)
32 \fB\-o\fR, \fB\-\-output\fR=\fIFILE\fR
33 write output to specified file
35 \fB\-p\fR, \fB\-\-output\-dir\fR=\fIDIR\fR
36 output files will be placed in directory DIR
38 If output file is -, output is written to standard output.
39 .SS "Choice of input file language:"
41 \fB\-L\fR, \fB\-\-language\fR=\fINAME\fR
42 recognise the specified language
43 (C, C++, ObjectiveC, PO, Shell, Python, Lisp,
44 EmacsLisp, librep, Scheme, Smalltalk, Java,
45 JavaProperties, C#, awk, YCP, Tcl, Perl, PHP,
46 GCC-source, NXStringTable, RST, Glade, Lua,
49 \fB\-C\fR, \fB\-\-c\fR++
50 shorthand for \fB\-\-language\fR=\fIC\fR++
52 By default the language is guessed depending on the input file name extension.
53 .SS "Input file interpretation:"
55 \fB\-\-from\-code\fR=\fINAME\fR
56 encoding of input files
57 (except for Python, Tcl, Glade)
59 By default the input files are assumed to be in ASCII.
62 \fB\-j\fR, \fB\-\-join\-existing\fR
63 join messages with existing file
65 \fB\-x\fR, \fB\-\-exclude\-file\fR=\fIFILE\fR.po
66 entries from FILE.po are not extracted
68 \fB\-cTAG\fR, \fB\-\-add\-comments\fR=\fITAG\fR
69 place comment blocks starting with TAG and
70 preceding keyword lines in output file
72 \fB\-c\fR, \fB\-\-add\-comments\fR
73 place all comment blocks preceding keyword lines
75 .SS "Language specific options:"
77 \fB\-a\fR, \fB\-\-extract\-all\fR
79 (only languages C, C++, ObjectiveC, Shell,
80 Python, Lisp, EmacsLisp, librep, Scheme, Java,
81 C#, awk, Tcl, Perl, PHP, GCC-source, Glade,
82 Lua, JavaScript, Vala)
84 \fB\-kWORD\fR, \fB\-\-keyword\fR=\fIWORD\fR
85 look for WORD as an additional keyword
87 \fB\-k\fR, \fB\-\-keyword\fR
88 do not to use default keywords
89 (only languages C, C++, ObjectiveC, Shell,
90 Python, Lisp, EmacsLisp, librep, Scheme, Java,
91 C#, awk, Tcl, Perl, PHP, GCC-source, Glade,
92 Lua, JavaScript, Vala)
94 \fB\-\-flag\fR=\fIWORD\fR:ARG:FLAG
95 additional flag for strings inside the argument
96 number ARG of keyword WORD
98 (only languages C, C++, ObjectiveC, Shell,
99 Python, Lisp, EmacsLisp, librep, Scheme, Java,
100 C#, awk, YCP, Tcl, Perl, PHP, GCC-source,
101 Lua, JavaScript, Vala)
103 \fB\-T\fR, \fB\-\-trigraphs\fR
104 understand ANSI C trigraphs for input
105 (only languages C, C++, ObjectiveC)
108 recognize Qt format strings
112 recognize KDE 4 format strings
116 recognize Boost format strings
120 more detailed formatstring recognition result
121 .SS "Output details:"
124 use colors and other text attributes always
126 \fB\-\-color\fR=\fIWHEN\fR
127 use colors and other text attributes if WHEN.
128 WHEN may be 'always', 'never', 'auto', or 'html'.
130 \fB\-\-style\fR=\fISTYLEFILE\fR
131 specify CSS style rule file for \fB\-\-color\fR
133 \fB\-e\fR, \fB\-\-no\-escape\fR
134 do not use C escapes in output (default)
136 \fB\-E\fR, \fB\-\-escape\fR
137 use C escapes in output, no extended chars
140 write PO file even if empty
142 \fB\-i\fR, \fB\-\-indent\fR
143 write the .po file using indented style
145 \fB\-\-no\-location\fR
146 do not write '#: filename:line' lines
148 \fB\-n\fR, \fB\-\-add\-location\fR
149 generate '#: filename:line' lines (default)
152 write out strict Uniforum conforming .po file
154 \fB\-\-properties\-output\fR
155 write out a Java .properties file
157 \fB\-\-stringtable\-output\fR
158 write out a NeXTstep/GNUstep .strings file
160 \fB\-w\fR, \fB\-\-width\fR=\fINUMBER\fR
161 set output page width
164 do not break long message lines, longer than
165 the output page width, into several lines
167 \fB\-s\fR, \fB\-\-sort\-output\fR
168 generate sorted output
170 \fB\-F\fR, \fB\-\-sort\-by\-file\fR
171 sort output by file location
173 \fB\-\-omit\-header\fR
174 don't write header with 'msgid ""' entry
176 \fB\-\-copyright\-holder\fR=\fISTRING\fR
177 set copyright holder in output
179 \fB\-\-foreign\-user\fR
180 omit FSF copyright in output for foreign user
182 \fB\-\-package\-name\fR=\fIPACKAGE\fR
183 set package name in output
185 \fB\-\-package\-version\fR=\fIVERSION\fR
186 set package version in output
188 \fB\-\-msgid\-bugs\-address\fR=\fIEMAIL\fR@ADDRESS
189 set report address for msgid bugs
191 \fB\-m[STRING]\fR, \fB\-\-msgstr\-prefix\fR[=\fISTRING\fR]
192 use STRING or "" as prefix for msgstr
195 \fB\-M[STRING]\fR, \fB\-\-msgstr\-suffix\fR[=\fISTRING\fR]
196 use STRING or "" as suffix for msgstr
198 .SS "Informative output:"
200 \fB\-h\fR, \fB\-\-help\fR
201 display this help and exit
203 \fB\-V\fR, \fB\-\-version\fR
204 output version information and exit
206 Written by Ulrich Drepper.
208 Report bugs to <bug-gnu-gettext@gnu.org>.
210 Copyright \(co 1995-1998, 2000-2013 Free Software Foundation, Inc.
211 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
213 This is free software: you are free to change and redistribute it.
214 There is NO WARRANTY, to the extent permitted by law.
216 The full documentation for
218 is maintained as a Texinfo manual. If the
222 programs are properly installed at your site, the command
226 should give you access to the complete manual.