xref: /haiku/headers/os/locale/tools/CollectingCatalog.h (revision 9642f7705b27e5c270c15fa526d14e1848c2c27d)
1 /*
2  * Copyright 2012, Haiku, Inc.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef _TOOLS_COLLECTING_CATALOG_H_
6 #define _TOOLS_COLLECTING_CATALOG_H_
7 
8 
9 // Translation macros used when executing collectcatkeys
10 #undef B_TRANSLATE
11 #define B_TRANSLATE(string) \
12 	B_CATKEY((string), B_TRANSLATION_CONTEXT)
13 
14 #undef B_TRANSLATE_CONTEXT
15 #define B_TRANSLATE_CONTEXT(string, context) \
16 	B_CATKEY((string), (context))
17 
18 #undef B_TRANSLATE_COMMENT
19 #define B_TRANSLATE_COMMENT(string, comment) \
20 	B_CATKEY((string), B_TRANSLATION_CONTEXT, (comment))
21 
22 #undef B_TRANSLATE_ALL
23 #define B_TRANSLATE_ALL(string, context, comment) \
24 	B_CATKEY((string), (context), (comment))
25 
26 #undef B_TRANSLATE_ID
27 #define B_TRANSLATE_ID(id) \
28 	B_CATKEY((id))
29 
30 #undef B_TRANSLATE_SYSTEM_NAME
31 #define B_TRANSLATE_SYSTEM_NAME(string) \
32 	B_CATKEY((string), B_TRANSLATION_SYSTEM_NAME_CONTEXT)
33 
34 #undef B_TRANSLATE_MARK
35 #define B_TRANSLATE_MARK(string) \
36 	B_CATKEY((string), B_TRANSLATION_CONTEXT)
37 
38 #undef B_TRANSLATE_MARK_CONTEXT
39 #define B_TRANSLATE_MARK_CONTEXT(string, context) \
40 	B_CATKEY((string), (context))
41 
42 #undef B_TRANSLATE_MARK_COMMENT
43 #define B_TRANSLATE_MARK_COMMENT(string, comment) \
44 	B_CATKEY((string), B_TRANSLATION_CONTEXT, (comment))
45 
46 #undef B_TRANSLATE_MARK_ALL
47 #define B_TRANSLATE_MARK_ALL(string, context, comment) \
48 	B_CATKEY((string), (context), (comment))
49 
50 #undef B_TRANSLATE_MARK_ID
51 #define B_TRANSLATE_MARK_ID(id) \
52 	B_CATKEY((id))
53 
54 #undef B_TRANSLATE_MARK_SYSTEM_NAME
55 #define B_TRANSLATE_MARK_SYSTEM_NAME(string) \
56 	B_CATKEY((string), B_TRANSLATION_SYSTEM_NAME_CONTEXT, "")
57 
58 #undef B_TRANSLATE_MARK_VOID
59 #define B_TRANSLATE_MARK_VOID(string) \
60 	B_CATKEY((string), B_TRANSLATION_CONTEXT)
61 
62 #undef B_TRANSLATE_MARK_CONTEXT_VOID
63 #define B_TRANSLATE_MARK_CONTEXT_VOID(string, context) \
64 	B_CATKEY((string), (context))
65 
66 #undef B_TRANSLATE_MARK_COMMENT_VOID
67 #define B_TRANSLATE_MARK_COMMENT_VOID(string, comment) \
68 	B_CATKEY((string), B_TRANSLATION_CONTEXT, (comment))
69 
70 #undef B_TRANSLATE_MARK_ALL_VOID
71 #define B_TRANSLATE_MARK_ALL_VOID(string, context, comment) \
72 	B_CATKEY((string), (context), (comment))
73 
74 #undef B_TRANSLATE_MARK_ID_VOID
75 #define B_TRANSLATE_MARK_ID_VOID(id) \
76 	B_CATKEY((id))
77 
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, "")
81 
82 #undef B_TRANSLATE_NOCOLLECT
83 #define B_TRANSLATE_NOCOLLECT(string)
84 
85 #undef B_TRANSLATE_NOCOLLECT_COMMENT
86 #define B_TRANSLATE_NOCOLLECT_COMMENT(string, comment)
87 
88 #undef B_TRANSLATE_NOCOLLECT_ALL
89 #define B_TRANSLATE_NOCOLLECT_ALL(string, context, comment)
90 
91 #undef B_TRANSLATE_NOCOLLECT_ID
92 #define B_TRANSLATE_NOCOLLECT_ID(id)
93 
94 #undef B_TRANSLATE_NOCOLLECT_SYSTEM_NAME
95 #define B_TRANSLATE_NOCOLLECT_SYSTEM_NAME(string)
96 
97 
98 #endif /* _COLLECTING_CATALOG_H_ */
99