da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin/***********************************************************************
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin* This software is part of the ast package *
34f9b3eef6fdadbda0a846aa4d68691ac40eace5Roland Mainz* Copyright (c) 2000-2009 AT&T Intellectual Property *
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin* and is licensed under the *
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin* Common Public License, Version 1.0 *
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin* by AT&T Intellectual Property *
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin* A copy of the License is available at *
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin* (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) *
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin* Information and Software Systems Research *
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin* AT&T Research *
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin* Florham Park NJ *
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin* Glenn Fowler <gsf@research.att.com> *
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin***********************************************************************/
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * Glenn Fowler
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * AT&T Research
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin"[-?\n@(#)$Id: msgget (AT&T Research) 2001-04-21 $\n]"
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin"[+NAME?msgget - get a message from a message catalog]"
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin"[+DESCRIPTION?\bmsgget\b gets the message corresponding to the parameters."
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin" If \alocale\a is \b-\b then the current locale is used. \acommand\a"
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin" may be specified for command specific messages. \acatalog\a specifies"
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin" the message catalog name. [\aset\a.]]\anumber\a identifies the message"
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin" by message \anumber\a and an optional message \aset\a; if specified as"
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin" \b-\b then the message set and number are determined by looking up"
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin" \atext\a in the corresponding \bC\b locale message catalog.]"
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin"\nlocale [command:]catalog [set.]number [ text ]\n"
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin"[+SEE ALSO?\biconv\b(1), \bmsgcc\b(1), \bmsggen\b(1)]"
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin register char* s;
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin if (error_info.errors || !(loc = *argv++) || !(cmd = *argv++) || !(s = *argv++))
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin else if (*argv)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin if (!mcfind(path, loc, cmd, LC_MESSAGES, 0) && (!cat || !mcfind(path, loc, cat, LC_MESSAGES, 0)))
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin error(ERROR_SYSTEM|3, "%s: cannot read message catalog", path);