1 /* $XConsortium: PdmMsgs.c /main/3 1996/08/12 18:42:25 cde-hp $ */
6 * (c) Copyright 1996 Digital Equipment Corporation.
7 * (c) Copyright 1996 Hewlett-Packard Company.
8 * (c) Copyright 1996 International Business Machines Corp.
9 * (c) Copyright 1996 Sun Microsystems, Inc.
10 * (c) Copyright 1996 Novell, Inc.
11 * (c) Copyright 1996 FUJITSU LIMITED.
12 * (c) Copyright 1996 Hitachi.
19 #if !defined(NL_CAT_LOCALE)
20 #define NL_CAT_LOCALE 0
23 #define DTPDM_CAT_NAME "dtpdm"
28 * ------------------------------------------------------------------------
29 * Default message values
31 const char DtPdmMsg_0001[] = "Locale unsupported by X";
32 const char DtPdmMsg_0002[] = "Auto-select";
33 const char DtPdmMsg_0003[] = "Default";
34 const char DtPdmMsg_0004[] = "Syntax error parsing medium-source-sizes";
35 const char DtPdmMsg_0005[] = "Syntax error parsing input-trays-medium";
36 const char DtPdmMsg_0006[] = "Syntax error parsing document format";
42 * ------------------------------------------------------------------------
43 * Name: DtPdmGetMessage
47 * int set - The message catalog set number.
49 * int n - The message number.
51 * char *s - The default message if the message is not
52 * retrieved from a message catalog.
54 * Returns: the string for set 'set' and number 'n'.
66 static nl_catd nlmsg_fd;
68 if(set == -1 || n == -1)
74 nlmsg_fd = catopen(DTPDM_CAT_NAME, NL_CAT_LOCALE);
76 msg=catgets(nlmsg_fd,set,n,s);