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
|
.TH INTLTOOL-UPDATE 8 "2003-08-02" "intltool"
.SH NAME
intltool-update \- updates PO template file and merge translations with it
.SH SYNOPSIS
.BI intltool-update " [option]..."
.br
.BI intltool-update " LANGCODE"
.SH DESCRIPTION
.B intltool-update
generates new po file templates from source code, and merges existing
translations with these new po templates.
.PP
You must change working directory to the subdirectory containing translations
(usually "\fIpo/\fR") before running \fBintltool-update\fR.
.SH OPTIONS
When executing
.B intltool-update
, only one mode of operation is allowed each time.
.\" -------------------------------------------------------
.SS "Mode of operation"
.\" -------------------------------------------------------
.IP "\fB\-p\fR" 4
.PD 0
.IP "\fB\-\-pot\fR" 4
.PD
Generate po template (.pot) only.
.IP "\fB\-s\fR" 4
.PD 0
.IP "\fB\-\-headers\fR" 4
.PD
Executes \fBintltool-extract\fR(8) to extract strings inside XML/INI
style files listed in \fBPOTFILES.in\fR, and writes the extracted
strings into header files, so that the strings can be recognised
by \fBxgettext\fR(1).
.IP "\fB\-m\fR" 4
.PD 0
.IP "\fB\-\-maintain\fR" 4
.PD
Search for left out files, which should have been listed in
.B POTFILES.in
or
.BR POTFILES.skip "."
A list of all these files are written into another file called
"\fBmissing\fR".
.IP "\fB\-r\fR" 4
.PD 0
.IP "\fB\-\-report\fR" 4
.PD
Display a status report for all translations in the software.
.IP "\fB\-d \fILANGCODE\fR" 4
.PD 0
.IP "\fB\-\-dist \fILANGCODE \fR" 4
.PD
Merge
.BR LANGCODE .po
with existing PO template.
.\" -------------------------------------------------------
.SS "Other options"
.\" -------------------------------------------------------
.
.IP "\fB\-g \fINAME\fR" 4
.PD 0
.IP "\fB\-\-gettext-package\fR=\fINAME\fR" 4
.PD
Manually specify PO template file name, instead of determining the
name automatically from source. Useful with
.BR \-p / \-\-pot
option. This option has an additional effect: the name of current working
directory is no more limited to "po" or "po-*".
.IP "\fB\-o \fIFILENAME\fR" 4
.PD 0
.IP "\fB\-\-output-file\fR=\fIFILENAME\fR" 4
.PD
Manually specify output \fIFILENAME\fR after merging old translation with
PO template. Useful either with
.BR \-d / \-\-dist
option or without any option.
.IP "\fB\-x\fR" 4
.PD 0
.IP "\fB\-\-verbose\fR" 4
.PD
Display lots of feedback.
.IP "\fB\-\-version\fR" 4
Show version information.
.IP "\fB\-\-help\fR" 4
Show usage and basic help information.
.SH EXAMPLES
Creates a new PO template from source code, and name it foo.pot:
.PP
.RS 2
.nf
.ft CW
.ne 1
intltool-update \-\-pot \-\-gettext\-package=foo
.ft R
.fi
.RE
.PP
Updates translation file xy.po using existing po template called
"bar.pot", and writes output into "xy1.po":
.PP
.RS 2
.nf
.ft CW
.ne 1
intltool-update --dist --gettext-package=bar --output-file=xy1.po xy
.ft R
.fi
.RE
.PP
Creates new PO template and updates translation file xy.po
(xy.po is overwritten with new content):
.PP
.RS 2
.nf
.ft CW
.ne 1
intltool-update xy
.ft R
.fi
(same as \fBintltool-update --pot && intltool-update --dist xy\fR)
.RE
.SH FILES
.IP "\fBpo/POTFILES.in\fR"
Contains list of source files which contain translatable strings,
one file per line.
.IP "\fBpo/POTFILES.skip\fR"
.PD 0
.IP "\fBpo/POTFILES.ignore\fR (obsolete)"
.PD
Contains list of source files which should be ignored when searching
for translatable strings.
.SH REPORTING BUGS
Report bugs to http://bugs.launchpad.net/intltool
.SH AUTHOR
Darin Adler <darin@bentspoon.com>
.br
Kenneth Christiansen <kenneth@gnu.org>
.br
Maciej Stachowiak <mjs@eazel.com>
.SH SEE ALSO
.BR intltoolize (8),
.BR intltool-prepare (8),
.BR intltool-extract (8),
.BR intltool-merge (8),
.BR xgettext (1)
|