Changeset 92533 in vbox
- Timestamp:
- Nov 21, 2021 2:18:55 PM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 148408
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.h
r92372 r92533 51 51 //////////////////////////////////////////////////////////////////////////////// 52 52 53 /** 54 * This defines a a_CtxName::tr function that gives the translator context as 55 * well as providing a shorter way to call VirtualBoxTranslator::translate. 56 */ 53 57 #ifdef VBOX_WITH_VBOXMANAGE_NLS 54 # define DECLARE_TRANSLATION_CONTEXT( ctx) \55 struct ctx\56 { \57 static const char *tr(const char *pszSource, const char *pszComment = NULL, const size_t aNum = ~(size_t)0) \58 # define DECLARE_TRANSLATION_CONTEXT(a_CtxName) \ 59 struct a_CtxName \ 60 { \ 61 static const char *tr(const char *pszSource, const char *pszComment = NULL, const size_t uNum = ~(size_t)0) \ 58 62 { \ 59 return VirtualBoxTranslator::translate(NULL, # ctx, pszSource, pszComment, aNum); \63 return VirtualBoxTranslator::translate(NULL, #a_CtxName, pszSource, pszComment, uNum); \ 60 64 } \ 61 65 } 62 66 #else 63 # define DECLARE_TRANSLATION_CONTEXT( ctx) \64 struct ctx\65 { \66 static const char *tr(const char *pszSource, const char *pszComment = NULL, const size_t aNum = ~(size_t)0) \67 # define DECLARE_TRANSLATION_CONTEXT(a_CtxName) \ 68 struct a_CtxName \ 69 { \ 70 static const char *tr(const char *pszSource, const char *pszComment = NULL, const size_t uNum = ~(size_t)0) \ 67 71 { \ 68 NOREF(pszComment); \ 69 NOREF(aNum); \ 72 RT_NOREF(pszComment, uNum); \ 70 73 return pszSource; \ 71 74 } \
Note:
See TracChangeset
for help on using the changeset viewer.