2 .\" Copyright (c) 2000-2007 AT&T Knowledge Ventures
3 .\" To view license terms, see http://www.opensource.org/licenses/cpl1.0.txt
4 .\" Portions Copyright (c) 2007, Sun Microsystems, Inc.
5 .TH MSGGET 1 "Oct 9, 2007"
7 msgget \- get a message from a message catalog
11 \fBmsgget\fR \fIlocale\fR [\fIcommand\fR\fB:\fR]\fIcatalog\fR [\fIset\fR.]\fInumber\fR [\fItext\fR]
17 \fBmsgget\fR gets the message corresponding to the parameters. See
22 The following operands are supported:
29 Specifies the message catalog name.
38 Specifies command-specific message.
47 Specifies the locale. If \fIlocale\fR is \fB-\fR then the current locale is
54 \fB\fB[\fR\fIset\fR\fB].\fR\fInumber\fR\fR
57 Identifies the message by message number and an optional message set. If
58 specified as \fB-\fR , the message set and number are determined by looking up
59 text in the corresponding C locale message catalog.
68 Specifies the text of the message to be output upon error.
78 Successful completion.
92 \fBExample 1 \fRGetting a Message in the Current Locale
95 The following example gets \fBmsg 1\fR in the current locale from message
101 example% msgget - hello 1
110 Glenn Fowler, \fBgsf@research.att.com\fR
114 See \fBattributes\fR(5) for descriptions of the following attributes:
122 ATTRIBUTE TYPE ATTRIBUTE VALUE
124 Interface Stability Volatile
130 \fBiconv\fR(1), \fBmsgcc\fR(1), \fBmsggen\fR(1), \fBattributes\fR(5)