Skip to content

Commit

Permalink
Day 1: Update translation on beta 1.1.0
Browse files Browse the repository at this point in the history
Signed-off-by: Simo <[email protected]>
  • Loading branch information
Simo3ds authored Dec 3, 2023
1 parent 09008aa commit 83a498a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions arm9/source/pin.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ void newPin(bool allowSkipping, u32 pinMode)

u8 length = 4 + 2 * (pinMode - 1);

drawString(true, 10, 10, COLOR_TITLE, "Enter a new PIN using ABXY and the DPad");
drawString(true, 10, 10 + SPACING_Y, COLOR_TITLE, allowSkipping ? "Press START to skip, SELECT to reset" : "Press SELECT to reset");
drawString(true, 10, 10, COLOR_TITLE, "Inserisci un nuovo PIN usando ABXY e il DPAD");
drawString(true, 10, 10 + SPACING_Y, COLOR_TITLE, allowSkipping ? "Premi START per saltare, SELECT per resettare" : "Premi SELECT per resettare");

drawFormattedString(true, 10, 10 + 3 * SPACING_Y, COLOR_WHITE, "PIN (%u digits): ", length);
drawFormattedString(true, 10, 10 + 3 * SPACING_Y, COLOR_WHITE, "PIN (%u cifre): ", length);

//Pad to AES block length with zeroes
__attribute__((aligned(4))) u8 enteredPassword[AES_BLOCK_SIZE] = {0};
Expand Down Expand Up @@ -122,7 +122,7 @@ void newPin(bool allowSkipping, u32 pinMode)
memcpy(pin.hash, tmp, sizeof(tmp));

if(!fileWrite(&pin, PIN_FILE, sizeof(PinData)))
error("Error writing the PIN file");
error("Errore nella scrittura del file PIN");
}

bool verifyPin(u32 pinMode)
Expand All @@ -148,10 +148,10 @@ bool verifyPin(u32 pinMode)

swapFramebuffers(true);

drawString(true, 10, 10, COLOR_TITLE, "Enter the PIN using ABXY and the DPad to proceed");
drawString(true, 10, 10 + SPACING_Y, COLOR_TITLE, "Press START to shutdown, SELECT to clear");
drawString(true, 10, 10, COLOR_TITLE, "Inserisci il PIN usando ABXY e il DPad per procedere");
drawString(true, 10, 10 + SPACING_Y, COLOR_TITLE, "Premi START per spegnere, SELECT per cancellare");

drawFormattedString(true, 10, 10 + 3 * SPACING_Y, COLOR_WHITE, "PIN (%u digits): ", lengthBlock[0]);
drawFormattedString(true, 10, 10 + 3 * SPACING_Y, COLOR_WHITE, "PIN (%u cifre): ", lengthBlock[0]);

bool isBottomSplashValid = getFileSize("splashpin.bin") == SCREEN_BOTTOM_FBSIZE;
if(isBottomSplashValid)
Expand Down Expand Up @@ -225,7 +225,7 @@ bool verifyPin(u32 pinMode)
{
reset = true;

drawString(true, 10, 10 + 5 * SPACING_Y, COLOR_RED, "Wrong PIN, try again");
drawString(true, 10, 10 + 5 * SPACING_Y, COLOR_RED, "Il PIN è sbagliato, riprova");
}
}

Expand Down

0 comments on commit 83a498a

Please sign in to comment.