]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | /* |
757d2cad | 2 | * "$Id: i18n.h 5238 2006-03-07 04:41:42Z mike $" |
ef416fc2 | 3 | * |
4 | * (Private) localization support for the Common UNIX Printing System (CUPS). | |
5 | * | |
6 | * Copyright 1997-2006 by Easy Software Products. | |
7 | * | |
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 | |
13 | * at: | |
14 | * | |
15 | * Attn: CUPS Licensing Information | |
16 | * Easy Software Products | |
17 | * 44141 Airport View Drive, Suite 204 | |
18 | * Hollywood, Maryland 20636 USA | |
19 | * | |
20 | * Voice: (301) 373-9600 | |
21 | * EMail: cups-info@cups.org | |
22 | * WWW: http://www.cups.org | |
23 | * | |
24 | * This file is subject to the Apple OS-Developed Software exception. | |
25 | */ | |
26 | ||
27 | #ifndef _CUPS_I18N_H_ | |
28 | # define _CUPS_I18N_H_ | |
29 | ||
30 | /* | |
31 | * Include necessary headers... | |
32 | */ | |
33 | ||
34 | # include "language.h" | |
35 | ||
36 | # ifdef __cplusplus | |
37 | extern "C" { | |
38 | # endif /* __cplusplus */ | |
39 | ||
40 | ||
41 | /* | |
42 | * Macro for localized text... | |
43 | */ | |
44 | ||
45 | # define _(x) x | |
46 | ||
47 | ||
48 | /* | |
49 | * Types... | |
50 | */ | |
51 | ||
52 | typedef struct _cups_message_s /**** Message catalog entry ****/ | |
53 | { | |
54 | char *id, /* Original string */ | |
55 | *str; /* Localized string */ | |
56 | } _cups_message_t; | |
57 | ||
58 | ||
59 | /* | |
60 | * Prototypes... | |
61 | */ | |
62 | ||
ef416fc2 | 63 | /**** New in CUPS 1.2 ****/ |
64 | extern const char *_cupsEncodingName(cups_encoding_t encoding); | |
fa73b229 | 65 | extern int _cupsLangPrintf(FILE *fp, const char *message, ...) |
ef416fc2 | 66 | # ifdef __GNUC__ |
fa73b229 | 67 | __attribute__ ((__format__ (__printf__, 2, 3))) |
ef416fc2 | 68 | # endif /* __GNUC__ */ |
69 | ; | |
fa73b229 | 70 | extern int _cupsLangPuts(FILE *fp, const char *message); |
ef416fc2 | 71 | extern const char *_cupsLangString(cups_lang_t *lang, const char *message); |
72 | extern void _cupsMessageFree(cups_array_t *a); | |
73 | extern cups_array_t *_cupsMessageLoad(const char *filename); | |
74 | extern const char *_cupsMessageLookup(cups_array_t *a, const char *m); | |
75 | ||
76 | # ifdef __cplusplus | |
77 | } | |
78 | # endif /* __cplusplus */ | |
79 | ||
80 | #endif /* !_CUPS_I18N_H_ */ | |
81 | ||
82 | /* | |
757d2cad | 83 | * End of "$Id: i18n.h 5238 2006-03-07 04:41:42Z mike $". |
ef416fc2 | 84 | */ |