From e870889ad0ee398f57a99466ee5c5f79d636d767 Mon Sep 17 00:00:00 2001
From: Owen <owenca@users.noreply.github.com>
Date: Sat, 5 Aug 2017 02:59:22 +0000
Subject: [PATCH] Add B_TRANSLATE_MARK_CONTEXT to Catalog.h and
tools/CollectingCatalog.h
Fixes #13656
---
headers/os/locale/Catalog.h | 6 ++++++
headers/os/locale/tools/CollectingCatalog.h | 8 ++++++++
2 files changed, 14 insertions(+)
diff --git a/headers/os/locale/Catalog.h b/headers/os/locale/Catalog.h
index 2d0664f..910d05a 100644
a
|
b
|
private:
|
151 | 151 | #undef B_TRANSLATE_MARK |
152 | 152 | #define B_TRANSLATE_MARK(string) (string) |
153 | 153 | |
| 154 | #undef B_TRANSLATE_MARK_CONTEXT |
| 155 | #define B_TRANSLATE_MARK_CONTEXT(string, context) (string) |
| 156 | |
154 | 157 | #undef B_TRANSLATE_MARK_COMMENT |
155 | 158 | #define B_TRANSLATE_MARK_COMMENT(string, comment) (string) |
156 | 159 | |
… |
… |
private:
|
167 | 170 | #undef B_TRANSLATE_MARK_VOID |
168 | 171 | #define B_TRANSLATE_MARK_VOID(string) |
169 | 172 | |
| 173 | #undef B_TRANSLATE_MARK_CONTEXT_VOID |
| 174 | #define B_TRANSLATE_MARK_CONTEXT_VOID(string, context) |
| 175 | |
170 | 176 | #undef B_TRANSLATE_MARK_COMMENT_VOID |
171 | 177 | #define B_TRANSLATE_MARK_COMMENT_VOID(string, comment) |
172 | 178 | |
diff --git a/headers/os/locale/tools/CollectingCatalog.h b/headers/os/locale/tools/CollectingCatalog.h
index 49e32bc..84482b2 100644
a
|
b
|
|
35 | 35 | #define B_TRANSLATE_MARK(string) \ |
36 | 36 | B_CATKEY((string), B_TRANSLATION_CONTEXT) |
37 | 37 | |
| 38 | #undef B_TRANSLATE_MARK_CONTEXT |
| 39 | #define B_TRANSLATE_MARK_CONTEXT(string, context) \ |
| 40 | B_CATKEY((string), (context)) |
| 41 | |
38 | 42 | #undef B_TRANSLATE_MARK_COMMENT |
39 | 43 | #define B_TRANSLATE_MARK_COMMENT(string, comment) \ |
40 | 44 | B_CATKEY((string), B_TRANSLATION_CONTEXT, (comment)) |
… |
… |
|
55 | 59 | #define B_TRANSLATE_MARK_VOID(string) \ |
56 | 60 | B_CATKEY((string), B_TRANSLATION_CONTEXT) |
57 | 61 | |
| 62 | #undef B_TRANSLATE_MARK_CONTEXT_VOID |
| 63 | #define B_TRANSLATE_MARK_CONTEXT_VOID(string, context) \ |
| 64 | B_CATKEY((string), (context)) |
| 65 | |
58 | 66 | #undef B_TRANSLATE_MARK_COMMENT_VOID |
59 | 67 | #define B_TRANSLATE_MARK_COMMENT_VOID(string, comment) \ |
60 | 68 | B_CATKEY((string), B_TRANSLATION_CONTEXT, (comment)) |