diff options
author | easyaspi314 (Devin) <easyaspi314@users.noreply.github.com> | 2019-08-23 20:44:01 -0400 |
---|---|---|
committer | easyaspi314 (Devin) <easyaspi314@users.noreply.github.com> | 2019-08-23 20:44:01 -0400 |
commit | a631973b73977f33ef98042abca9fca287792439 (patch) | |
tree | 5418525ee00fbfaa046adecfb3d328c4c00e02d7 /src/debug/nohara_debug_menu.c | |
parent | bc159dbb03735db55e6a09bb7947dccc70d0532b (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/nohara_debug_menu.c')
-rw-r--r-- | src/debug/nohara_debug_menu.c | 86 |
1 files changed, 44 insertions, 42 deletions
diff --git a/src/debug/nohara_debug_menu.c b/src/debug/nohara_debug_menu.c index 349e5111f..4cb0f34ed 100644 --- a/src/debug/nohara_debug_menu.c +++ b/src/debug/nohara_debug_menu.c @@ -58,13 +58,13 @@ bool8 NoharaDebugMenu_AddNumWinningStreaks(void); const u8 gUnknown_Debug_083C48C4[] = _("TV"); const u8 gUnknown_Debug_083C48C7[] = _("Fan"); -const u8 gUnknown_Debug_083C48CB[] = _("Battle (vs Dad)"); -const u8 gUnknown_Debug_083C48DB[] = _("Dad after battle"); -const u8 gUnknown_Debug_083C48EC[] = _("SOOTOPOLIS CITY"); +const u8 gUnknown_Debug_083C48CB[] = _("Battle (vs Dad)"); +const u8 gUnknown_Debug_083C48DB[] = _("Dad after battle"); +const u8 gUnknown_Debug_083C48EC[] = _("SOOTOPOLIS CITY"); const u8 gUnknown_Debug_083C48FC[] = _("Embark"); -const u8 gUnknown_Debug_083C4903[] = _("Yes 9999"); -const u8 gUnknown_Debug_083C490C[] = _("Legends flag ON"); -const u8 gUnknown_Debug_083C491C[] = _("Add num of winning streaks"); +const u8 gUnknown_Debug_083C4903[] = _("Yes 9999"); +const u8 gUnknown_Debug_083C490C[] = _("Legends flag ON"); +const u8 gUnknown_Debug_083C491C[] = _("Add num of winning streaks"); const struct MenuAction gUnknown_Debug_083C4938[] = { {gUnknown_Debug_083C48C4, NoharaDebugMenu_TV}, @@ -104,28 +104,30 @@ bool8 debug_sub_808F414(void) } } -const u8 gUnknown_Debug_083C4980[] = _("Want to change data type{CLEAR_TO 143}Press Left\n" - "to see secret type now?{CLEAR_TO 143}to switch"); +const u8 gUnknown_Debug_083C4980[] = _("Want to change data type{CLEAR_TO 143}Press Left\n" + "to see secret type now?{CLEAR_TO 143}to switch"); -const u8 gUnknown_Debug_083C49CA[] = _("Choose the TV data you wish to\n" - "create to check a transmission。"); +const u8 gUnknown_Debug_083C49CA[] = _("Choose the TV data you wish to\n" + "create to check a transmission。"); -const u8 gUnknown_Debug_083C4A09[] = _("ほうそうの はっせいりつを セット\n" - "してください ?ぶんの1に なります"); +const u8 gUnknown_Debug_083C4A09[] = DTR("ほうそうの はっせいりつを セット\n" + "してください ?ぶんの1に なります", + "Please set the transmission frequency\n" + "Part 1"); const u8 gUnknown_Debug_083C4A2E[] = _("SURVEY"); -const u8 gUnknown_Debug_083C4A35[] = _("RECENT HAPPENINGS"); -const u8 gUnknown_Debug_083C4A47[] = _("POKひMON FAN CLUB"); -const u8 gUnknown_Debug_083C4A58[] = _("ジム"); +const u8 gUnknown_Debug_083C4A35[] = _("RECENT HAPPENINGS"); +const u8 gUnknown_Debug_083C4A47[] = _("POKéMON FAN CLUB"); +const u8 gUnknown_Debug_083C4A58[] = DTR("ジム", "GYM"); const u8 gUnknown_Debug_083C4A5B[] = _("OUTBREAKS"); -const u8 gUnknown_Debug_083C4A65[] = _("NAME RATER"); +const u8 gUnknown_Debug_083C4A65[] = _("NAME RATER"); const u8 gUnknown_Debug_083C4A70[] = _("CONTEST"); const u8 gUnknown_Debug_083C4A78[] = _("INTRODUCTION"); const u8 gUnknown_Debug_083C4A85[] = _("SHOPPING"); const u8 gUnknown_Debug_083C4A8E[] = _("MISFORTUNE"); const u8 gUnknown_Debug_083C4A99[] = _("FISHING"); -const u8 gUnknown_Debug_083C4AA1[] = _("MEMORABLE DAY"); -const u8 gUnknown_Debug_083C4AAF[] = _("BRAVO TRAINER"); +const u8 gUnknown_Debug_083C4AA1[] = _("MEMORABLE DAY"); +const u8 gUnknown_Debug_083C4AAF[] = _("BRAVO TRAINER"); const u8 gUnknown_Debug_083C4ABD[] = { TVSHOW_FAN_CLUB_LETTER, @@ -159,8 +161,8 @@ const u8 *const gUnknown_Debug_083C4ACC[] = { const u8 gDebugText_BigSale[] = _("BIG SALE"); -const u8 gUnknown_Debug_083C4B05[] = _("SERVICE DAY"); -const u8 gUnknown_Debug_083C4B11[] = _("CLEARーOUT SALE"); +const u8 gUnknown_Debug_083C4B05[] = _("SERVICE DAY"); +const u8 gUnknown_Debug_083C4B11[] = _("CLEAR-OUT SALE"); const u8 gUnknown_Debug_083C4B20[] = {1, 2, 3}; const u8 *const gUnknown_Debug_083C4B24[] = { @@ -169,15 +171,15 @@ const u8 *const gUnknown_Debug_083C4B24[] = { gUnknown_Debug_083C4B11 }; -const u8 gUnknown_Debug_083C4B30[] = _("Secret type"); +const u8 gUnknown_Debug_083C4B30[] = _("Secret type"); const u8 gUnknown_Debug_083C4B3C[] = _("Start"); -const u8 gUnknown_Debug_083C4B42[] = _("Create TV"); -const u8 gUnknown_Debug_083C4B4C[] = _("All clear"); -const u8 gUnknown_Debug_083C4B56[] = _("All seen"); -const u8 gUnknown_Debug_083C4B5F[] = _("Create CM"); -const u8 gUnknown_Debug_083C4B69[] = _("Not yet seen"); -const u8 gUnknown_Debug_083C4B76[] = _("Hit Table"); -const u8 gUnknown_Debug_083C4B80[] = _("Set full"); +const u8 gUnknown_Debug_083C4B42[] = _("Create TV"); +const u8 gUnknown_Debug_083C4B4C[] = _("All clear"); +const u8 gUnknown_Debug_083C4B56[] = _("All seen"); +const u8 gUnknown_Debug_083C4B5F[] = _("Create CM"); +const u8 gUnknown_Debug_083C4B69[] = _("Not yet seen"); +const u8 gUnknown_Debug_083C4B76[] = _("Hit Table"); +const u8 gUnknown_Debug_083C4B80[] = _("Set full"); // Normaly these would be struct MenuAction, but the prototype of // member .func is not consistent. @@ -754,15 +756,15 @@ bool8 debug_sub_80900AC(void) CloseMenu(); return TRUE; } - -const u8 gUnknown_Debug_083C4C77[] = _("1 スクル"); -const u8 gUnknown_Debug_083C4C7D[] = _("2 ミドル"); -const u8 gUnknown_Debug_083C4C83[] = _("3 オジヨ"); -const u8 gUnknown_Debug_083C4C89[] = _("4 ボーヤ"); -const u8 gUnknown_Debug_083C4C8F[] = _("5 ボーイ"); -const u8 gUnknown_Debug_083C4C95[] = _("6 ヤング"); -const u8 gUnknown_Debug_083C4C9B[] = _("7 ヲーカ"); -const u8 gUnknown_Debug_083C4CA1[] = _("8 オルド"); +// TRN: Figure out the meaning of these abbreviations +const u8 gUnknown_Debug_083C4C77[] = DTR("1 スクル", "1 SCHOOL"); +const u8 gUnknown_Debug_083C4C7D[] = DTR("2 ミドル", "2 MIDDLE"); +const u8 gUnknown_Debug_083C4C83[] = DTR("3 オジヨ", "3 UNCLE"); +const u8 gUnknown_Debug_083C4C89[] = DTR("4 ボーヤ", "4 BOY"); +const u8 gUnknown_Debug_083C4C8F[] = DTR("5 ボーイ", "5 BOY"); +const u8 gUnknown_Debug_083C4C95[] = DTR("6 ヤング", "6 YOUNG"); +const u8 gUnknown_Debug_083C4C9B[] = DTR("7 ヲーカ", "7 WOUKA"); +const u8 gUnknown_Debug_083C4CA1[] = DTR("8 オルド", "8 OLD"); const u8 *const gUnknown_Debug_083C4CA8[] = { gUnknown_Debug_083C4C77, @@ -779,11 +781,11 @@ const u8 gUnknown_Debug_083C4CC8[] = _("Start"); const u8 gUnknown_Debug_083C4CCE[] = _("Increase"); const u8 gUnknown_Debug_083C4CD7[] = _("Reduce"); const u8 gUnknown_Debug_083C4CDE[] = _("Points"); -const u8 gUnknown_Debug_083C4CE5[] = _("Play time 6"); -const u8 gUnknown_Debug_083C4CF1[] = _("P ELITE FOUR"); -const u8 gUnknown_Debug_083C4CFE[] = _("P SECRET BASE"); -const u8 gUnknown_Debug_083C4D0C[] = _("P CONTEST"); -const u8 gUnknown_Debug_083C4D16[] = _("P BATTLE TOWER"); +const u8 gUnknown_Debug_083C4CE5[] = _("Play time 6"); +const u8 gUnknown_Debug_083C4CF1[] = _("P ELITE FOUR"); +const u8 gUnknown_Debug_083C4CFE[] = _("P SECRET BASE"); +const u8 gUnknown_Debug_083C4D0C[] = _("P CONTEST"); +const u8 gUnknown_Debug_083C4D16[] = _("P BATTLE TOWER"); const struct MenuAction gUnknown_Debug_083C4D28[] = { {gUnknown_Debug_083C4CC8, debug_sub_80901E4}, |