2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these librararies and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
23 /* $XConsortium: PdmMsgs.c /main/3 1996/08/12 18:42:25 cde-hp $ */
28 * (c) Copyright 1996 Digital Equipment Corporation.
29 * (c) Copyright 1996 Hewlett-Packard Company.
30 * (c) Copyright 1996 International Business Machines Corp.
31 * (c) Copyright 1996 Sun Microsystems, Inc.
32 * (c) Copyright 1996 Novell, Inc.
33 * (c) Copyright 1996 FUJITSU LIMITED.
34 * (c) Copyright 1996 Hitachi.
41 #if !defined(NL_CAT_LOCALE)
42 #define NL_CAT_LOCALE 0
45 #define DTPDM_CAT_NAME "dtpdm"
50 * ------------------------------------------------------------------------
51 * Default message values
53 const char DtPdmMsg_0001[] = "Locale unsupported by X";
54 const char DtPdmMsg_0002[] = "Auto-select";
55 const char DtPdmMsg_0003[] = "Default";
56 const char DtPdmMsg_0004[] = "Syntax error parsing medium-source-sizes";
57 const char DtPdmMsg_0005[] = "Syntax error parsing input-trays-medium";
58 const char DtPdmMsg_0006[] = "Syntax error parsing document format";
64 * ------------------------------------------------------------------------
65 * Name: DtPdmGetMessage
69 * int set - The message catalog set number.
71 * int n - The message number.
73 * char *s - The default message if the message is not
74 * retrieved from a message catalog.
76 * Returns: the string for set 'set' and number 'n'.
88 static nl_catd nlmsg_fd;
90 if(set == -1 || n == -1)
96 nlmsg_fd = catopen(DTPDM_CAT_NAME, NL_CAT_LOCALE);
98 msg=catgets(nlmsg_fd,set,n,s);
101 #endif /* I18N_MSG */