summaryrefslogtreecommitdiff
path: root/usr/src/man/man1/xgettext.1
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/man/man1/xgettext.1')
-rw-r--r--usr/src/man/man1/xgettext.130
1 files changed, 4 insertions, 26 deletions
diff --git a/usr/src/man/man1/xgettext.1 b/usr/src/man/man1/xgettext.1
index 6109d081e6..c1286f01b5 100644
--- a/usr/src/man/man1/xgettext.1
+++ b/usr/src/man/man1/xgettext.1
@@ -3,14 +3,14 @@
.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
-.TH xgettext 1 "23 Mar 1999" "SunOS 5.11" "User Commands"
+.TH XGETTEXT 1 "Mar 23, 1999"
.SH NAME
xgettext \- extract gettext call strings from C programs
.SH SYNOPSIS
.LP
.nf
-\fBxgettext\fR [\fB-ns\fR] [\fB-a\fR [\fB-x\fR \fIexclude-file\fR]] [\fB-c\fR \fIcomment-tag\fR]
- [\fB-d\fR \fIdefault-domain\fR] [\fB-j\fR] [\fB-m\fR \fIprefix\fR] [\fB-M\fR \fIsuffix\fR]
+\fBxgettext\fR [\fB-ns\fR] [\fB-a\fR [\fB-x\fR \fIexclude-file\fR]] [\fB-c\fR \fIcomment-tag\fR]
+ [\fB-d\fR \fIdefault-domain\fR] [\fB-j\fR] [\fB-m\fR \fIprefix\fR] [\fB-M\fR \fIsuffix\fR]
[\fB-p\fR \fIpathname\fR] \fB-|\fR \fIfilename\fR...
.fi
@@ -56,19 +56,17 @@ option is used.
The following options are supported:
.sp
.ne 2
-.mk
.na
\fB\fB-n\fR\fR
.ad
.RS 21n
-.rt
Add comment lines to the output file indicating file name and line number in
the source file where each extracted string is encountered. These lines appear
before each \fImsgid\fR in the following format:
.sp
.in +2
.nf
-# # File: \fIfilename\fR, line: \fIline-number\fR
+# # File: \fIfilename\fR, line: \fIline-number\fR
.fi
.in -2
.sp
@@ -77,36 +75,30 @@ before each \fImsgid\fR in the following format:
.sp
.ne 2
-.mk
.na
\fB\fB-s\fR\fR
.ad
.RS 21n
-.rt
Generate output sorted by \fImsgid\fRs with all duplicate \fImsgid\fRs
removed.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB-a\fR\fR
.ad
.RS 21n
-.rt
Extract all strings, not just those found in \fBgettext\fR(3C), and
\fBdgettext()\fR () calls. Only one \fB\&.po\fR file is created.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB-c\fR \fIcomment-tag\fR\fR
.ad
.RS 21n
-.rt
The comment block beginning with \fIcomment-tag\fR as the first token of the
comment block is added to the output \fB\&.po\fR file as \fI#\fR delimited
comments. For multiple domains, \fBxgettext\fR directs comments and messages to
@@ -115,24 +107,20 @@ the prevailing text domain.
.sp
.ne 2
-.mk
.na
\fB\fB-d\fR \fIdefault-domain\fR\fR
.ad
.RS 21n
-.rt
Rename default output file from \fBmessages.po\fR to \fIdefault-domain\fR
\fB\&.po\fR.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB-j\fR\fR
.ad
.RS 21n
-.rt
Join messages with existing message files. If a \fB\&.po\fR file does not
exist, it is created. If a \fB\&.po\fR file does exist, new messages are
appended. Any duplicate \fBmsgid\fRs are commented out in the resulting
@@ -142,12 +130,10 @@ ignored. Results not guaranteed if the existing message file has been edited.
.sp
.ne 2
-.mk
.na
\fB\fB-m\fR \fIprefix\fR\fR
.ad
.RS 21n
-.rt
Fill in the \fImsgstr\fR with \fIprefix\fR. This is useful for debugging
purposes. To make \fImsgstr\fR identical to \fImsgid\fR, use an empty string
(\fB""\fR) for \fIprefix\fR.
@@ -155,36 +141,30 @@ purposes. To make \fImsgstr\fR identical to \fImsgid\fR, use an empty string
.sp
.ne 2
-.mk
.na
\fB\fB-M\fR \fIsuffix\fR\fR
.ad
.RS 21n
-.rt
Fill in the \fImsgstr\fR with \fIsuffix\fR. This is useful for debugging
purposes.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB-p\fR \fIpathname\fR\fR
.ad
.RS 21n
-.rt
Specify the directory where the output files will be placed. This option
overrides the current working directory.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB-x\fR \fIexclude-file\fR\fR
.ad
.RS 21n
-.rt
Specify a \fB\&.po\fR file that contains a list of \fImsgid\fRs that are not
to be extracted from the input files. The format of \fIexclude-file\fR is
identical to the \fB\&.po\fR file. However, only the \fImsgid\fR directive line
@@ -194,12 +174,10 @@ in \fIexclude-file\fR is used. All other lines are simply ignored. The
.sp
.ne 2
-.mk
.na
\fB\fB-h\fR\fR
.ad
.RS 21n
-.rt
Print a help message on the standard output.
.RE