diff options
author | PikalaxALT <PikalaxALT@users.noreply.github.com> | 2019-10-02 12:01:45 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-02 12:01:45 -0400 |
commit | 27070e42f31acc805d7444e840aadbdaa83be6ee (patch) | |
tree | aed3fe304abc22c33c6e4c3e1ca1f233f8b37afc /include/global.h | |
parent | 1bd678656c735bbeb603ccb80367c7a85f820f61 (diff) | |
parent | 99e6a6639efa5d2113fe2787e5be4f0d98f0bf78 (diff) |
Merge pull request #757 from easyaspi314/debug-english
English Debug menu translations!
Diffstat (limited to 'include/global.h')
-rw-r--r-- | include/global.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/global.h b/include/global.h index 7fd7e902a..ba9e20813 100644 --- a/include/global.h +++ b/include/global.h @@ -19,6 +19,20 @@ #define INCBIN_S32 INCBIN #endif +// For debug menu translations. +// DTR("こんにちは", "Hello") will expand to "Hello" with DEBUG_TRANSLATE, +// or "こんにちは" if not. +// The KANA macro will wrap Japanese text with encoding markers to +// prevent mojibake while they are being translated. + +#if DEBUG_TRANSLATE +#define DTR(japanese, english) _(english) +#define KANA(txt) _("{JPN}" txt "{ENG}") +#else +#define DTR(japanese, english) _(japanese) +#define KANA(txt) _(txt) +#endif + // Prevent cross-jump optimization. #define BLOCK_CROSS_JUMP asm(""); |