]>
git.ipfire.org Git - thirdparty/cups.git/blob - cups/i18n.h
2 * "$Id: i18n.h 4903 2006-01-10 20:02:46Z mike $"
4 * (Private) localization support for the Common UNIX Printing System (CUPS).
6 * Copyright 1997-2006 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 * 44141 Airport View Drive, Suite 204
18 * Hollywood, Maryland 20636 USA
20 * Voice: (301) 373-9600
21 * EMail: cups-info@cups.org
22 * WWW: http://www.cups.org
24 * This file is subject to the Apple OS-Developed Software exception.
28 # define _CUPS_I18N_H_
31 * Include necessary headers...
34 # include "language.h"
38 # endif /* __cplusplus */
42 * Macro for localized text...
52 typedef struct _cups_message_s
/**** Message catalog entry ****/
54 char *id
, /* Original string */
55 *str
; /* Localized string */
63 /**** New in CUPS 1.1.20 ****/
64 extern void _cupsRestoreLocale(int category
, char *oldlocale
);
65 extern char *_cupsSaveLocale(int category
, const char *locale
);
67 /**** New in CUPS 1.2 ****/
68 extern const char *_cupsEncodingName(cups_encoding_t encoding
);
69 extern int _cupsLangPrintf(FILE *fp
, cups_lang_t
*lang
,
70 const char *message
, ...)
72 __attribute__ ((__format__ (__printf__
, 3, 4)))
73 # endif /* __GNUC__ */
75 extern int _cupsLangPuts(FILE *fp
, cups_lang_t
*lang
,
77 extern const char *_cupsLangString(cups_lang_t
*lang
, const char *message
);
78 extern void _cupsMessageFree(cups_array_t
*a
);
79 extern cups_array_t
*_cupsMessageLoad(const char *filename
);
80 extern const char *_cupsMessageLookup(cups_array_t
*a
, const char *m
);
84 # endif /* __cplusplus */
86 #endif /* !_CUPS_I18N_H_ */
89 * End of "$Id: i18n.h 4903 2006-01-10 20:02:46Z mike $".