2 * "$Id: language-private.h 9382 2010-11-20 01:03:46Z mike $"
4 * Private localization support for CUPS.
6 * Copyright 2007-2010 by Apple Inc.
7 * Copyright 1997-2006 by Easy Software Products.
9 * These coded instructions, statements, and computer programs are the
10 * property of Apple Inc. and are protected by Federal copyright
11 * law. Distribution and use rights are outlined in the file "LICENSE.txt"
12 * which should have been included with this file. If this file is
13 * file is missing or damaged, see the license at "http://www.cups.org/".
15 * This file is subject to the Apple OS-Developed Software exception.
18 #ifndef _CUPS_LANGUAGE_PRIVATE_H_
19 # define _CUPS_LANGUAGE_PRIVATE_H_
22 * Include necessary headers...
26 # include <cups/transcode.h>
30 # endif /* __cplusplus */
34 * Macro for localized text...
44 typedef struct _cups_message_s /**** Message catalog entry ****/
46 char *id, /* Original string */
47 *str; /* Localized string */
56 extern const char *_cupsAppleLanguage(const char *locale, char *language,
58 # endif /* __APPLE__ */
59 extern void _cupsCharmapFlush(void);
60 extern const char *_cupsEncodingName(cups_encoding_t encoding);
61 extern void _cupsLangPrintError(const char *prefix,
63 extern int _cupsLangPrintFilter(FILE *fp, const char *prefix,
64 const char *message, ...)
66 __attribute__ ((__format__ (__printf__, 3, 4)))
67 # endif /* __GNUC__ */
69 extern int _cupsLangPrintf(FILE *fp, const char *message, ...)
71 __attribute__ ((__format__ (__printf__, 2, 3)))
72 # endif /* __GNUC__ */
74 extern int _cupsLangPuts(FILE *fp, const char *message);
75 extern const char *_cupsLangString(cups_lang_t *lang,
77 extern void _cupsMessageFree(cups_array_t *a);
78 extern cups_array_t *_cupsMessageLoad(const char *filename, int unquote);
79 extern const char *_cupsMessageLookup(cups_array_t *a, const char *m);
80 extern void _cupsSetLocale(char *argv[]);
85 # endif /* __cplusplus */
87 #endif /* !_CUPS_LANGUAGE_PRIVATE_H_ */
90 * End of "$Id: language-private.h 9382 2010-11-20 01:03:46Z mike $".