summaryrefslogtreecommitdiff
path: root/src/slot_machine.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/slot_machine.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/slot_machine.c')
-rw-r--r--src/slot_machine.c41
1 files changed, 21 insertions, 20 deletions
diff --git a/src/slot_machine.c b/src/slot_machine.c
index 3de87e0f7..b73b1e80a 100644
--- a/src/slot_machine.c
+++ b/src/slot_machine.c
@@ -5616,29 +5616,30 @@ static void debug_sub_811B2E8(void)
Menu_PrintText(text, 6, 1);
}
-static const u8 Str_841B1C4[] = _("SETTEI");
-static const u8 Str_841B1CB[] = _("MAWASITA");
-static const u8 Str_841B1D4[] = _("MODOSI");
-static const u8 Str_841B1DB[] = _("NOMARE");
-static const u8 Str_841B1E2[] = _("MAE 7");
-static const u8 Str_841B1E8[] = _("LR  HENKOU");
-static const u8 Str_841B1F3[] = _("START  JIDOUSU");
-static const u8 Str_841B202[] = _("SELECT  SETTEI");
-static const u8 Str_841B211[] = _("TYUHSEN");
+static const u8 Str_841B1C4[] = DTR("SETTEI", "SET");
+static const u8 Str_841B1CB[] = DTR("MAWASITA", "TURNED");
+static const u8 Str_841B1D4[] = DTR("MODOSI", "RETURN");
+static const u8 Str_841B1DB[] = _("NOMARE"); // TRN: Normal, 's rare, etc?
+static const u8 Str_841B1E2[] = DTR("MAE 7", "BEFORE 7");
+static const u8 Str_841B1E8[] = DTR("LR HENKOU", "LR: CHANGE");
+static const u8 Str_841B1F3[] = _("START JIDOUSU"); // TRN
+static const u8 Str_841B202[] = DTR("SELECT SETTEI", "SELECT: SET");
+// Irregular Romaji: 抽選 (ちゅうせん/chuusen)
+static const u8 Str_841B211[] = DTR("TYUHSEN", "LOTTERY");
static const u8 Str_841B219[] = _("CHERRY");
static const u8 Str_841B220[] = _("REPLAY");
-static const u8 Str_841B227[] = _("HASUBO");
-static const u8 Str_841B22E[] = _("RURIRI");
-static const u8 Str_841B235[] = _("INAZU");
+static const u8 Str_841B227[] = DTR("HASUBO", "LOTAD"); // TRN
+static const u8 Str_841B22E[] = DTR("RURIRI", "AZURILL");
+static const u8 Str_841B235[] = DTR("INAZU", "LIGHTNING");
static const u8 Str_841B23B[] = _("REG");
static const u8 Str_841B23F[] = _("BIG");
static const u8 Str_841B243[] = _("BD");
static const u8 Str_841B246[] = _("R7");
static const u8 Str_841B249[] = _("B7");
-static const u8 Str_841B24C[] = _("A  COIN");
-static const u8 Str_841B254[] = _("TYUHSEN");
-static const u8 Str_841B25C[] = _("UD  100");
-static const u8 Str_841B264[] = _("LR  1000");
+static const u8 Str_841B24C[] = _("A COIN");
+static const u8 Str_841B254[] = DTR("TYUHSEN", "LOTTERY");
+static const u8 Str_841B25C[] = _("UD 100");
+static const u8 Str_841B264[] = _("LR 1000");
static const u8 Str_841B26D[] = _("×");
void debug_sub_811B310(void)
@@ -5882,10 +5883,10 @@ static void debug_sub_811B654(u8 taskId)
}
}
-static const u8 Str_841B2B0[] = _("·カウントエラーがおきました");
-static const u8 Str_841B2BF[] = _("·リールそうさで エラーが おきました");
-static const u8 Str_841B2D3[] = _("·フラグオフエラーが おきました");
-static const u8 Str_841B2E4[] = _("·ボーナスこやくの エラーが おきました");
+static const u8 Str_841B2B0[] = DTR("·カウントエラーがおきました", "Count error occured.");
+static const u8 Str_841B2BF[] = DTR("·リールそうさで エラーが おきました", "Reel processing error occurred.");
+static const u8 Str_841B2D3[] = DTR("·フラグオフエラーが おきました", "FLAG OFF error occurred.");
+static const u8 Str_841B2E4[] = DTR("·ボーナスこやくの エラーが おきました", "BONUS use error occurred."); // TRN
static void debug_sub_811B894(void)
{