/*
- * "$Id: language.h,v 1.26 2002/03/25 17:51:18 mike Exp $"
+ * "$Id: language.h,v 1.33 2004/06/29 03:44:52 mike Exp $"
*
* Multi-language support for the Common UNIX Printing System (CUPS).
*
- * Copyright 1997-2002 by Easy Software Products.
+ * Copyright 1997-2004 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
* Attn: CUPS Licensing Information
* Easy Software Products
* 44141 Airport View Drive, Suite 204
- * Hollywood, Maryland 20636-3111 USA
+ * Hollywood, Maryland 20636-3142 USA
*
- * Voice: (301) 373-9603
+ * Voice: (301) 373-9600
* EMail: cups-info@cups.org
* WWW: http://www.cups.org
*
CUPS_MSG_FILENAME,
CUPS_MSG_PRINT,
CUPS_MSG_OPTIONS_INSTALLED,
+ CUPS_MSG_AUTO,
CUPS_MSG_HTTP_BASE = 200,
CUPS_MSG_HTTP_END = 505,
CUPS_MSG_MAX
typedef enum /**** Language Encodings ****/
{
+ CUPS_AUTO_ENCODING = -1,
CUPS_US_ASCII,
CUPS_ISO8859_1,
CUPS_ISO8859_2,
* Prototypes...
*/
-# if defined(WIN32) || defined(__EMX__) || defined(__APPLE__)
-# define cupsLangDefault() cupsLangGet(setlocale(LC_ALL, ""))
-# else
-# define cupsLangDefault() cupsLangGet(setlocale(LC_MESSAGES, ""))
-# endif /* WIN32 || __EMX__ || __APPLE__ */
-
+# define cupsLangDefault() cupsLangGet(NULL)
extern char *cupsLangEncoding(cups_lang_t *lang);
extern void cupsLangFlush(void);
extern void cupsLangFree(cups_lang_t *lang);
extern cups_lang_t *cupsLangGet(const char *language);
# define cupsLangString(lang,msg) (lang)->messages[(msg)]
+/**** New in CUPS 1.1.20 ****/
+extern void _cupsRestoreLocale(int category, char *oldlocale);
+extern char *_cupsSaveLocale(int category, const char *locale);
+
# ifdef __cplusplus
}
# endif /* __cplusplus */
#endif /* !_CUPS_LANGUAGE_H_ */
/*
- * End of "$Id: language.h,v 1.26 2002/03/25 17:51:18 mike Exp $".
+ * End of "$Id: language.h,v 1.33 2004/06/29 03:44:52 mike Exp $".
*/