summaryrefslogtreecommitdiff
path: root/src/debug/ereader_debug_menu.c
diff options
context:
space:
mode:
authoreasyaspi314 (Devin) <easyaspi314@users.noreply.github.com>2019-08-23 20:44:01 -0400
committereasyaspi314 (Devin) <easyaspi314@users.noreply.github.com>2019-08-23 20:44:01 -0400
commita631973b73977f33ef98042abca9fca287792439 (patch)
tree5418525ee00fbfaa046adecfb3d328c4c00e02d7 /src/debug/ereader_debug_menu.c
parentbc159dbb03735db55e6a09bb7947dccc70d0532b (diff)
[WIP] English Debug menu translations! (Plus some build system fixes)
I'm back!            す Éß テ-ブ↑& ÒÛªù! (かなテーブルを捨てろよ!/Throw away the kana table!) When compiled in English with DEBUG, instead of óじばÌ (mojibake), you now get actual English translations! No more switching from the game, to the kana chart, and if you don't know Japanese, Google Translate, just to read one sentence. Additionally, the few unknown translations should use proper encoding or Romaji. I decided to use a nicer macro system: static const u8 sStrHello[] = DTR("こんにちは", "Hello"); This prevents ifdef HELL, as the mixed Japanese and English would be messy. Additionally, some special character issues were corrected. Things untranslated/bugs: - Tomomichi's dummy functions. Of course, they don't do much. - The title screen battle menu. This uses a Gen 2 style tile rendering and the way it is rendered is incredibly overcomplicated. - A few phrases which I couldn't get a clear translation for. I don't know much Japanese lol. - Song names. Just tedious with the limited buffer size. - A few layout issues. Some dimensions should be tweaked to avoid text box ovetflows. - Potential buffer overflows, which I want to try to avoid - (ASan for GBA? :morphon:) - While I use the DEBUG_TRANSLATE flag (automatic with ENGLISH && DEBUG) for C code, the asm data only checks for ENGLISH && DEBUG. Additionally, they are ugly. - Haven't tested all builds yet. - Some code formatting issues. I also made it so this will compile with the system preprocessor (including Clang), and my agbcc binutils (which will attempt to be selected automatically if you don't have DKP). Clang needs a few flags (it can't do asm enums with line numbers and it does trigraphs in standard mode), but it is no longer flipping out. I am going to restart my build system project. It was getting way off track, and ucpp was too difficult to maintain (one of the main reasons for the silence).
Diffstat (limited to 'src/debug/ereader_debug_menu.c')
-rw-r--r--src/debug/ereader_debug_menu.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/debug/ereader_debug_menu.c b/src/debug/ereader_debug_menu.c
index aaffca383..74a5ff10c 100644
--- a/src/debug/ereader_debug_menu.c
+++ b/src/debug/ereader_debug_menu.c
@@ -10,7 +10,11 @@
#include "berry.h"
#include "mail_data.h"
+#if DEBUG
+const u8 Str_842E238[] = DTR("タマゴ", "EGG");
+#else
const u8 Str_842E238[] = _("タマゴ");
+#endif
#if DEBUG
@@ -131,7 +135,7 @@ extern u8 gUnknown_Debug_845DDB2[];
extern u8 gUnknown_Debug_845DDB2End[];
extern u8 gUnknown_Debug_845DDD6[];
-const u8 Str_842E23C[] = _("ガイブ");
+const u8 Str_842E23C[] = DTR("ガイブ", "EXTERNAL");
size_t debug_sub_813C5B4(u8 * dest)
{
@@ -286,7 +290,7 @@ extern u8 gUnknown_Debug_845E4EF[];
extern u8 gUnknown_Debug_845E4EFEnd[];
extern u8 gUnknown_Debug_845E506[];
-const u8 Str_842E253[] = _(" そら  カードイー");
+const u8 Str_842E253[] = DTR(" そら  カードイー", "eCARD TRAINER");
size_t debug_sub_813C93C(u8 * dest)
{
@@ -305,22 +309,22 @@ size_t debug_sub_813C93C(u8 * dest)
return size;
}
-const u8 Str_842E25E[] = _("ポケコッコ");
+const u8 Str_842E25E[] = KANA("ポケコッコ"); // TRN: kokko?
const u8 Str_842E264[] = _("ticket");
const u8 Str_842E26B[] = _("{PKMN}");
-const u8 Str_842E26E[] = _("wrong {PKMN}");
+const u8 Str_842E26E[] = _("wrong {PKMN}");
const u8 Str_842E277[] = _("ribbon");
const u8 Str_842E27E[] = _("DEX");
const u8 Str_842E282[] = _("message");
const u8 Str_842E28A[] = _("egg");
-const u8 Str_842E28E[] = _("RAM seed");
+const u8 Str_842E28E[] = _("RAM seed");
const u8 Str_842E297[] = _("trainer");
const u8 Str_842E29F[] = _("clock");
const u8 Str_842E2A5[] = _("item");
const u8 Str_842E2AA[] = _("goods");
const u8 Str_842E2B0[] = _("potion");
const u8 Str_842E2B7[] = _("ball");
-const u8 Str_842E2BC[] = _("cheri berry");
+const u8 Str_842E2BC[] = _("cheri berry");
const u8 Str_842E2C8[] = _("TM01");
const struct UnkDebugMenu3Items gUnknown_Debug_842E2D0[] = {