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 "9 Oct 2007" "SunOS 5.11" "User Commands"
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 \fBOPERANDS\fR.
21 The following operands are supported:
30 Specifies the message catalog name.
41 Specifies command-specific message.
52 Specifies the locale. If \fIlocale\fR is \fB-\fR then the current locale is used.
59 \fB\fB[\fR\fIset\fR\fB].\fR\fInumber\fR\fR
63 Identifies the message by message number and an optional message set. If specified as \fB-\fR , the message set and number are determined by looking up text in the corresponding C locale message catalog.
74 Specifies the text of the message to be output upon error.
86 Successful completion.
102 \fBExample 1 \fRGetting a Message in the Current Locale
105 The following example gets \fBmsg 1\fR in the current locale from message catalog \fBhello\fR:
110 example% msgget - hello 1
119 Glenn Fowler, \fBgsf@research.att.com\fR
123 See \fBattributes\fR(5) for descriptions of the following attributes:
132 ATTRIBUTE TYPE
\aATTRIBUTE VALUE
134 Availability
\adeveloper/astdev
136 Interface Stability
\aVolatile
142 \fBiconv\fR(1), \fBmsgcc\fR(1), \fBmsggen\fR(1), \fBattributes\fR(5)