2 * "$Id: language.h,v 1.4 1999/04/19 21:13:26 mike Exp $"
4 * Multi-language support for the Common UNIX Printing System (CUPS).
6 * Copyright 1997-1999 by Easy Software Products.
8 * These coded instructions, statements, and computer programs are the
9 * property of Easy Software Products and are protected by Federal
10 * copyright law. Distribution and use rights are outlined in the file
11 * "LICENSE.txt" which should have been included with this file. If this
12 * file is missing or damaged please contact Easy Software Products
15 * Attn: CUPS Licensing Information
16 * Easy Software Products
17 * 44145 Airport View Drive, Suite 204
18 * Hollywood, Maryland 20636-3111 USA
20 * Voice: (301) 373-9603
21 * EMail: cups-info@cups.org
22 * WWW: http://www.cups.org
26 * Include necessary headers...
36 typedef enum /**** Message Indices ****/
51 CUPS_MSG_USER_DEFINED
,
60 CUPS_MSG_ALL_RIGHTS_RESERVED
,
68 CUPS_MSG_PRINT_BANNER_PAGE
,
69 CUPS_MSG_VERBOSE_LOGGING
,
72 CUPS_MSG_ENTIRE_DOCUMENT
,
74 CUPS_MSG_REVERSE_ORDER
,
79 CUPS_MSG_IMAGE_SCALING
,
80 CUPS_MSG_USE_NATURAL_IMAGE_SIZE
,
81 CUPS_MSG_ZOOM_BY_PERCENT
,
83 CUPS_MSG_MIRROR_IMAGE
,
84 CUPS_MSG_ROTATE_IMAGE
,
86 CUPS_MSG_COLOR_SATURATION
,
88 CUPS_MSG_NUMBER_OF_COLUMNS
,
93 CUPS_MSG_DEFAULT_PEN_WIDTH
,
94 CUPS_MSG_GAMMA_CORRECTION
,
96 CUPS_MSG_COLOR_PROFILE
,
98 CUPS_MSG_DELETE_PRINTER
,
99 CUPS_MSG_MODIFY_PRINTER
,
100 CUPS_MSG_PRINTER_URI
,
101 CUPS_MSG_PRINTER_NAME
,
102 CUPS_MSG_PRINTER_LOCATION
,
103 CUPS_MSG_PRINTER_INFO
,
104 CUPS_MSG_PRINTER_MAKE_AND_MODEL
,
106 CUPS_MSG_FORMATTING_PAGE
,
107 CUPS_MSG_PRINTING_PAGE
,
108 CUPS_MSG_INITIALIZING_PRINTER
,
109 CUPS_MSG_PRINTER_STATE
,
110 CUPS_MSG_ACCEPTING_JOBS
,
111 CUPS_MSG_NOT_ACCEPTING_JOBS
,
118 CUPS_MSG_FAST_COPIES
,
119 CUPS_MSG_COLLATED_COPIES
,
131 CUPS_MSG_HTTP_BASE
= 200,
132 CUPS_MSG_HTTP_END
= 505,
136 typedef enum /**** Language Encodings ****/
152 typedef struct cups_lang_str
/**** Language Cache Structure ****/
154 struct cups_lang_str
*next
; /* Next language in cache */
155 int used
; /* Number of times this entry has been used. */
156 cups_encoding_t encoding
; /* Text encoding */
157 char language
[16]; /* Language/locale name */
158 unsigned char *messages
[CUPS_MSG_MAX
];
167 #define cupsLangDefault() cupsLangGet(setlocale(LC_ALL, 0))
168 extern char *cupsLangEncoding(cups_lang_t
*lang
);
169 extern void cupsLangFlush(void);
170 extern void cupsLangFree(cups_lang_t
*lang
);
171 extern cups_lang_t
*cupsLangGet(char *language
);
172 #define cupsLangString(lang,msg) (lang)->messages[(msg)]
175 * End of "$Id: language.h,v 1.4 1999/04/19 21:13:26 mike Exp $".