summaryrefslogtreecommitdiff
path: root/src/debug/nakamura_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/nakamura_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/nakamura_debug_menu.c')
-rw-r--r--src/debug/nakamura_debug_menu.c39
1 files changed, 20 insertions, 19 deletions
diff --git a/src/debug/nakamura_debug_menu.c b/src/debug/nakamura_debug_menu.c
index e6af3c58d..32ac57dc2 100644
--- a/src/debug/nakamura_debug_menu.c
+++ b/src/debug/nakamura_debug_menu.c
@@ -50,7 +50,7 @@ static bool8 SetPokeblock(void);
static const u8 Str_843E36C[] = _("Berries");
static const u8 Str_843E374[] = _("Goods");
static const u8 Str_843E37A[] = _("{PKMN} list");
-static const u8 Str_843E382[] = _("トラップ");
+static const u8 Str_843E382[] = DTR("トラップ", "Trap");
static const u8 Str_843E387[] = _("Move your base");
static const u8 Str_843E396[] = _("Moving {PKMN}");
static const u8 Str_843E3A0[] = _("Fishing points");
@@ -874,10 +874,11 @@ static struct {
EWRAM_DATA u8 sNakaGenderTest_CursorPosition = 0;
static const u8 _843E5D1[] = {0x0F, 0x16, 0x19};
-static const u8 Str_843E5D4[] = _(
- "Aボタン {ESCAPE}\p"
- "  Bボタン ー\n"
- "START けってい");
+static const u8 Str_843E5D4[] = DTR(
+ "Aボタン {TALL_PLUS}  Bボタン ー\n"
+ "START けってい",
+ "A BUTTON {TALL_PLUS} B BUTTON {JPN}ー{ENG}\n"
+ "START CHOOSE");
void NakaGenderTest(void)
{
@@ -1916,14 +1917,14 @@ static bool8 SetPokeblock(void)
EWRAM_DATA u8 sEVTest_CursorPosition = 0;
-static const u8 Str_843E5F2[] = _("HP どりょくち");
-static const u8 Str_843E5FB[] = _("こうげき どりょくち");
-static const u8 Str_843E606[] = _("ぼうぎょ どりょくち");
-static const u8 Str_843E611[] = _("すばやさ どりょくち");
-static const u8 Str_843E61C[] = _("とくこう どりょくち");
-static const u8 Str_843E627[] = _("とくぼう どりょくち");
-static const u8 Str_843E632[] = _("なつきど");
-static const u8 Str_843E637[] = _("どりょくち ごうけい");
+static const u8 Str_843E5F2[] = DTR("HP どりょくち", "HP EVs");
+static const u8 Str_843E5FB[] = DTR("こうげき どりょくち", "ATK EVs");
+static const u8 Str_843E606[] = DTR("ぼうぎょ どりょくち", "DEF EVs");
+static const u8 Str_843E611[] = DTR("すばやさ どりょくち", "SPE EVs");
+static const u8 Str_843E61C[] = DTR("とくこう どりょくち", "SPA EVs");
+static const u8 Str_843E627[] = DTR("とくぼう どりょくち", "SPD EVs");
+static const u8 Str_843E632[] = DTR("なつきど", "FRIENDSHIP");
+static const u8 Str_843E637[] = DTR("どりょくち ごうけい", "EV TOTAL");
static void EVTest_Init(void)
{
@@ -2071,13 +2072,13 @@ EWRAM_DATA u16 sRngRight = 0;
EWRAM_DATA u16 sNumSamples = 0;
EWRAM_DATA u16 sRngMax = 0;
-static const u8 Str_843E642[] = _("ここから");
-static const u8 Str_843E647[] = _("ここまで");
-static const u8 Str_843E64C[] = _("かいすう");
-static const u8 Str_843E651[] = _("けっか");
-static const u8 Str_843E655[] = _("かい");
+static const u8 Str_843E642[] = DTR("ここから", "FROM");
+static const u8 Str_843E647[] = DTR("ここまで", "TO");
+static const u8 Str_843E64C[] = DTR("かいすう", "TIMES");
+static const u8 Str_843E651[] = DTR("けっか", "RESULT");
+static const u8 Str_843E655[] = DTR("かい", "×");
static const u8 Str_843E658[] = _("0");
-static const u8 Str_843E65A[] = _("はんい");
+static const u8 Str_843E65A[] = DTR("はんい", "RANGE");
static u16 EVTest_GetDiscreteUniformRandomSamples(void)
{