]>
git.ipfire.org Git - thirdparty/cups.git/blob - cups/language-private.h
a597cd3f0a42560ab41a418db5b841be0d3debc3
2 * Private localization support for CUPS.
4 * Copyright 2007-2010 by Apple Inc.
5 * Copyright 1997-2006 by Easy Software Products.
7 * These coded instructions, statements, and computer programs are the
8 * property of Apple Inc. and are protected by Federal copyright
9 * law. Distribution and use rights are outlined in the file "LICENSE.txt"
10 * which should have been included with this file. If this file is
11 * file is missing or damaged, see the license at "http://www.cups.org/".
13 * This file is subject to the Apple OS-Developed Software exception.
16 #ifndef _CUPS_LANGUAGE_PRIVATE_H_
17 # define _CUPS_LANGUAGE_PRIVATE_H_
20 * Include necessary headers...
24 # include <cups/transcode.h>
28 # endif /* __cplusplus */
32 * Macro for localized text...
42 typedef struct _cups_message_s
/**** Message catalog entry ****/
44 char *id
, /* Original string */
45 *str
; /* Localized string */
54 extern const char *_cupsAppleLanguage(const char *locale
, char *language
,
56 # endif /* __APPLE__ */
57 extern void _cupsCharmapFlush(void);
58 extern const char *_cupsEncodingName(cups_encoding_t encoding
);
59 extern void _cupsLangPrintError(const char *prefix
,
61 extern int _cupsLangPrintFilter(FILE *fp
, const char *prefix
,
62 const char *message
, ...)
63 __attribute__ ((__format__ (__printf__
, 3, 4)));
64 extern int _cupsLangPrintf(FILE *fp
, const char *message
, ...)
65 __attribute__ ((__format__ (__printf__
, 2, 3)));
66 extern int _cupsLangPuts(FILE *fp
, const char *message
);
67 extern const char *_cupsLangString(cups_lang_t
*lang
,
69 extern void _cupsMessageFree(cups_array_t
*a
);
70 extern cups_array_t
*_cupsMessageLoad(const char *filename
, int unquote
);
71 extern const char *_cupsMessageLookup(cups_array_t
*a
, const char *m
);
72 extern cups_array_t
*_cupsMessageNew(void *context
);
73 extern void _cupsSetLocale(char *argv
[]);
78 # endif /* __cplusplus */
80 #endif /* !_CUPS_LANGUAGE_PRIVATE_H_ */