2 * Copyright 2012, Haiku, Inc.
3 * Distributed under the terms of the MIT License.
5 #ifndef _TOOLS_COLLECTING_CATALOG_H_
6 #define _TOOLS_COLLECTING_CATALOG_H_
9 // Translation macros used when executing collectcatkeys
11 #define B_TRANSLATE(string) \
12 B_CATKEY((string), B_TRANSLATION_CONTEXT)
14 #undef B_TRANSLATE_CONTEXT
15 #define B_TRANSLATE_CONTEXT(string, context) \
16 B_CATKEY((string), (context))
18 #undef B_TRANSLATE_COMMENT
19 #define B_TRANSLATE_COMMENT(string, comment) \
20 B_CATKEY((string), B_TRANSLATION_CONTEXT, (comment))
22 #undef B_TRANSLATE_ALL
23 #define B_TRANSLATE_ALL(string, context, comment) \
24 B_CATKEY((string), (context), (comment))
27 #define B_TRANSLATE_ID(id) \
30 #undef B_TRANSLATE_SYSTEM_NAME
31 #define B_TRANSLATE_SYSTEM_NAME(string) \
32 B_CATKEY((string), B_TRANSLATION_SYSTEM_NAME_CONTEXT)
34 #undef B_TRANSLATE_MARK
35 #define B_TRANSLATE_MARK(string) \
36 B_CATKEY((string), B_TRANSLATION_CONTEXT)
38 #undef B_TRANSLATE_MARK_CONTEXT
39 #define B_TRANSLATE_MARK_CONTEXT(string, context) \
40 B_CATKEY((string), (context))
42 #undef B_TRANSLATE_MARK_COMMENT
43 #define B_TRANSLATE_MARK_COMMENT(string, comment) \
44 B_CATKEY((string), B_TRANSLATION_CONTEXT, (comment))
46 #undef B_TRANSLATE_MARK_ALL
47 #define B_TRANSLATE_MARK_ALL(string, context, comment) \
48 B_CATKEY((string), (context), (comment))
50 #undef B_TRANSLATE_MARK_ID
51 #define B_TRANSLATE_MARK_ID(id) \
54 #undef B_TRANSLATE_MARK_SYSTEM_NAME
55 #define B_TRANSLATE_MARK_SYSTEM_NAME(string) \
56 B_CATKEY((string), B_TRANSLATION_SYSTEM_NAME_CONTEXT, "")
58 #undef B_TRANSLATE_MARK_VOID
59 #define B_TRANSLATE_MARK_VOID(string) \
60 B_CATKEY((string), B_TRANSLATION_CONTEXT)
62 #undef B_TRANSLATE_MARK_CONTEXT_VOID
63 #define B_TRANSLATE_MARK_CONTEXT_VOID(string, context) \
64 B_CATKEY((string), (context))
66 #undef B_TRANSLATE_MARK_COMMENT_VOID
67 #define B_TRANSLATE_MARK_COMMENT_VOID(string, comment) \
68 B_CATKEY((string), B_TRANSLATION_CONTEXT, (comment))
70 #undef B_TRANSLATE_MARK_ALL_VOID
71 #define B_TRANSLATE_MARK_ALL_VOID(string, context, comment) \
72 B_CATKEY((string), (context), (comment))
74 #undef B_TRANSLATE_MARK_ID_VOID
75 #define B_TRANSLATE_MARK_ID_VOID(id) \
78 #undef B_TRANSLATE_MARK_SYSTEM_NAME_VOID
79 #define B_TRANSLATE_MARK_SYSTEM_NAME_VOID(string) \
80 B_CATKEY((string), B_TRANSLATION_SYSTEM_NAME_CONTEXT, "")
82 #undef B_TRANSLATE_NOCOLLECT
83 #define B_TRANSLATE_NOCOLLECT(string)
85 #undef B_TRANSLATE_NOCOLLECT_COMMENT
86 #define B_TRANSLATE_NOCOLLECT_COMMENT(string, comment)
88 #undef B_TRANSLATE_NOCOLLECT_ALL
89 #define B_TRANSLATE_NOCOLLECT_ALL(string, context, comment)
91 #undef B_TRANSLATE_NOCOLLECT_ID
92 #define B_TRANSLATE_NOCOLLECT_ID(id)
94 #undef B_TRANSLATE_NOCOLLECT_SYSTEM_NAME
95 #define B_TRANSLATE_NOCOLLECT_SYSTEM_NAME(string)
98 #endif /* _COLLECTING_CATALOG_H_ */