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_COMMENT 39 #define B_TRANSLATE_MARK_COMMENT(string, comment) \ 40 B_CATKEY((string), B_TRANSLATION_CONTEXT, (comment)) 41 42 #undef B_TRANSLATE_MARK_ALL 43 #define B_TRANSLATE_MARK_ALL(string, context, comment) \ 44 B_CATKEY((string), (context), (comment)) 45 46 #undef B_TRANSLATE_MARK_ID 47 #define B_TRANSLATE_MARK_ID(id) \ 48 B_CATKEY((id)) 49 50 #undef B_TRANSLATE_MARK_SYSTEM_NAME 51 #define B_TRANSLATE_MARK_SYSTEM_NAME(string) \ 52 B_CATKEY((string), B_TRANSLATION_SYSTEM_NAME_CONTEXT, "") 53 54 #undef B_TRANSLATE_MARK_VOID 55 #define B_TRANSLATE_MARK_VOID(string) \ 56 B_CATKEY((string), B_TRANSLATION_CONTEXT) 57 58 #undef B_TRANSLATE_MARK_COMMENT_VOID 59 #define B_TRANSLATE_MARK_COMMENT_VOID(string, comment) \ 60 B_CATKEY((string), B_TRANSLATION_CONTEXT, (comment)) 61 62 #undef B_TRANSLATE_MARK_ALL_VOID 63 #define B_TRANSLATE_MARK_ALL_VOID(string, context, comment) \ 64 B_CATKEY((string), (context), (comment)) 65 66 #undef B_TRANSLATE_MARK_ID_VOID 67 #define B_TRANSLATE_MARK_ID_VOID(id) \ 68 B_CATKEY((id)) 69 70 #undef B_TRANSLATE_MARK_SYSTEM_NAME_VOID 71 #define B_TRANSLATE_MARK_SYSTEM_NAME_VOID(string) \ 72 B_CATKEY((string), B_TRANSLATION_SYSTEM_NAME_CONTEXT, "") 73 74 #undef B_TRANSLATE_NOCOLLECT 75 #define B_TRANSLATE_NOCOLLECT(string) 76 77 #undef B_TRANSLATE_NOCOLLECT_COMMENT 78 #define B_TRANSLATE_NOCOLLECT_COMMENT(string, comment) 79 80 #undef B_TRANSLATE_NOCOLLECT_ALL 81 #define B_TRANSLATE_NOCOLLECT_ALL(string, context, comment) 82 83 #undef B_TRANSLATE_NOCOLLECT_ID 84 #define B_TRANSLATE_NOCOLLECT_ID(id) 85 86 #undef B_TRANSLATE_NOCOLLECT_SYSTEM_NAME 87 #define B_TRANSLATE_NOCOLLECT_SYSTEM_NAME(string) 88 89 90 #endif /* _COLLECTING_CATALOG_H_ */ 91