Skip to content

Commit

Permalink
Third Part of translation, rosalina menu under translation.
Browse files Browse the repository at this point in the history
In this third part of translation, I managed to translate these files:
- sysmodules\rosalina\source\menus\chainloader.c
- sysmodules\rosalina\source\menus\cheats.c
- sysmodules\rosalina\source\menus\config_extra.c
- sysmodules\rosalina\source\menus\debugger_menu.c
- sysmodules\rosalina\source\menus\miscellaneous.c
- sysmodules\rosalina\source\menus\n3ds.c
- sysmodules\rosalina\source\menus\process_list.c
- sysmodules\rosalina\source\menus\quick_switchers.c
- sysmodules\rosalina\source\menu.c (set name to Polari3DS-ITA)
  • Loading branch information
Simo3ds committed Nov 17, 2024
1 parent 137f4c1 commit d370f49
Show file tree
Hide file tree
Showing 9 changed files with 130 additions and 132 deletions.
4 changes: 2 additions & 2 deletions sysmodules/rosalina/source/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -586,9 +586,9 @@ static void menuDraw(Menu *menu, u32 selected)
Draw_DrawFormattedString(SCREEN_BOT_WIDTH - 10 - SPACING_X * 19, SCREEN_BOT_HEIGHT - 20, COLOR_WHITE, "%19s", "");

if(isRelease)
Draw_DrawFormattedString(10, SCREEN_BOT_HEIGHT - 20, COLOR_TITLE, "Polari3DS %s", versionString);
Draw_DrawFormattedString(10, SCREEN_BOT_HEIGHT - 20, COLOR_TITLE, "Polari3DS-ITA %s", versionString);
else
Draw_DrawFormattedString(10, SCREEN_BOT_HEIGHT - 20, COLOR_TITLE, "Polari3DS %s-%08lx", versionString, commitHash);
Draw_DrawFormattedString(10, SCREEN_BOT_HEIGHT - 20, COLOR_TITLE, "Polari3DS-ITA %s-%08lx", versionString, commitHash);

Draw_FlushFramebuffer();
}
Expand Down
10 changes: 5 additions & 5 deletions sysmodules/rosalina/source/menus/chainloader.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ void chainloader(void)
const FS_Path PathFirm = fsMakePath(PATH_ASCII, "/luma/payloads");

if (FSUSER_OpenArchive(&sdmcArchive, ARCHIVE_SDMC, fsMakePath(PATH_EMPTY, NULL)) != 0) {
Draw_DrawString(10, 60, COLOR_RED, "Could not access SD Card !!!");
Draw_DrawString(10, 60, COLOR_RED, "Impossibile accedere alla scheda SD !!!");
Draw_FlushFramebuffer();
Draw_Unlock();
waitInputWithTimeout(0);
return;
}

if (FSUSER_OpenDirectory(&handle, sdmcArchive, PathFirm) != 0) {
Draw_DrawString(10, 60, COLOR_RED, "No directory");
Draw_DrawString(10, 60, COLOR_RED, "Nessun percorso");
Draw_FlushFramebuffer();
Draw_Unlock();
waitInputWithTimeout(0);
Expand Down Expand Up @@ -75,7 +75,7 @@ void chainloader(void)

Draw_Lock();
Draw_DrawString(10, 10, COLOR_TITLE, "Menu ChainLoader");
Draw_DrawString(10, 30, COLOR_WHITE, "Press A to Loader Firm, press B to return");
Draw_DrawString(10, 30, COLOR_WHITE, "Premi A per caricare un Firm, Premi B per tornare indietro")
for(int i = 0; i < count; i++)
{
Draw_DrawString(30, 60+(i*10), COLOR_BLACK, " ");
Expand Down Expand Up @@ -131,7 +131,7 @@ u32 copy_bootonce(FS_ArchiveID sdmcArchive, const char *Path)

if (FSUSER_OpenFile(&fileHandle, sdmcArchive, fsMakePath(PATH_ASCII, Path), FS_OPEN_READ, 0) != 0)
{
Draw_DrawString(10, 60, COLOR_RED, "error open file !");
Draw_DrawString(10, 60, COLOR_RED, "errore durante l'apertura del file!");
Draw_FlushFramebuffer();
Draw_Unlock();
waitInputWithTimeout(0);
Expand All @@ -140,7 +140,7 @@ u32 copy_bootonce(FS_ArchiveID sdmcArchive, const char *Path)

if (FSUSER_OpenFile(&fileHandle2, sdmcArchive, fsMakePath(PATH_ASCII, "bootonce.firm"), FS_OPEN_CREATE | FS_OPEN_WRITE, 0) != 0)
{
Draw_DrawString(10, 60, COLOR_RED, "error open/write file !");
Draw_DrawString(10, 60, COLOR_RED, "errore durante l'apertura/scrittura del file!");
Draw_FlushFramebuffer();
Draw_Unlock();
FSFILE_Close(fileHandle);
Expand Down
14 changes: 7 additions & 7 deletions sysmodules/rosalina/source/menus/cheats.c
Original file line number Diff line number Diff line change
Expand Up @@ -1653,13 +1653,13 @@ static Result Cheat_MapMemoryAndApplyCheat(u32 pid, CheatDescription* const chea
}
else
{
sprintf(failureReason, "Debug process failed");
sprintf(failureReason, "Processo di debug fallito");
svcCloseHandle(processHandle);
}
}
else
{
sprintf(failureReason, "Open process failed");
sprintf(failureReason, "Processo di apertura fallito");
}
return res;
}
Expand Down Expand Up @@ -2046,14 +2046,14 @@ void RosalinaMenu_Cheats(void)
do
{
Draw_Lock();
Draw_DrawString(10, 10, COLOR_TITLE, "Cheats");
Draw_DrawString(10, 10, COLOR_TITLE, "Trucchi");
if (titleId == 0)
{
Draw_DrawString(10, 30, COLOR_WHITE, "No suitable title found");
Draw_DrawString(10, 30, COLOR_WHITE, "Nessun titolo idoneo trovato");
}
else
{
Draw_DrawFormattedString(10, 30, COLOR_WHITE, "No cheats found for title %016llX", titleId);
Draw_DrawFormattedString(10, 30, COLOR_WHITE, "Nessun trucco trovato per\n il titolo %016llX", titleId);
}

Draw_FlushFramebuffer();
Expand All @@ -2074,7 +2074,7 @@ void RosalinaMenu_Cheats(void)
}
if (R_SUCCEEDED(r))
{
Draw_DrawFormattedString(10, 10, COLOR_TITLE, "Cheat list");
Draw_DrawFormattedString(10, 10, COLOR_TITLE, "Lista Trucchi");

for (s32 i = 0; i < CHEATS_PER_MENU_PAGE && page * CHEATS_PER_MENU_PAGE + i < cheatCount; i++)
{
Expand All @@ -2090,7 +2090,7 @@ void RosalinaMenu_Cheats(void)
}
else
{
Draw_DrawFormattedString(10, 10, COLOR_TITLE, "ERROR: %08lx", r);
Draw_DrawFormattedString(10, 10, COLOR_TITLE, "ERRORE: %08lx", r);
Draw_DrawFormattedString(10, 30, COLOR_RED, failureReason);
}
Draw_FlushFramebuffer();
Expand Down
36 changes: 17 additions & 19 deletions sysmodules/rosalina/source/menus/config_extra.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,30 +19,28 @@
config_extra configExtra = { .suppressLeds = true, .cutSlotPower = false, .cutSleepWifi = false, .homeToRosalina = false, .toggleBottomLcd = false, .turnLedsOffStandby = false, .perGamePlugin = false };
bool configExtraSaved = false;

static const char menuText[8][32] = {
"Automatically suppress LEDs",
"Cut power to TWL Flashcards",
"Cut 3DS WiFi in sleep mode",
"Home button opens Rosalina",
"St+Se toggle bottom LCD in menu",
"Disable led during standby",
"Enable plugin loader per-game",
"Save config. Changes saved"
static const char menuText[7][100] = {
"Sopprimi automaticamente i led",
"Interrompi power nelle flashcards TWL",
"Interrompi il wifi del 3DS in modalita' riposo",
"Tasto home apre rosalina",
"St+Se imposta i tasti LCD nel menu'",
"Disattiva i led durante la mod. riposo",
"Salva le config. Config. salvate."
};

static char menuDisplay[8][64];
static char menuDisplay[7][200];

Menu configExtraMenu = {
"Extra config menu",
"Menu configurazione extra",
{
{ menuText[0], METHOD, .method = &ConfigExtra_SetSuppressLeds },
{ menuText[1], METHOD, .method = &ConfigExtra_SetCutSlotPower },
{ menuText[2], METHOD, .method = &ConfigExtra_SetCutSleepWifi },
{ menuText[3], METHOD, .method = &ConfigExtra_SetHomeToRosalina },
{ menuText[4], METHOD, .method = &ConfigExtra_SetToggleBottomLcd, .visibility = &old2DScheck },
{ menuText[5], METHOD, .method = &ConfigExtra_SetTurnLedsOffStandby },
{ menuText[6], METHOD, .method = &ConfigExtra_SetPerGamePlugin },
{ menuText[7], METHOD, .method = &ConfigExtra_WriteConfigExtra },
{ menuText[0], METHOD, .method = &ConfigExtra_SetSuppressLeds},
{ menuText[1], METHOD, .method = &ConfigExtra_SetCutSlotPower},
{ menuText[2], METHOD, .method = &ConfigExtra_SetCutSleepWifi},
{ menuText[3], METHOD, .method = &ConfigExtra_SetHomeToRosalina},
{ menuText[4], METHOD, .method = &ConfigExtra_SetToggleBottomLcd},
{ menuText[5], METHOD, .method = &ConfigExtra_SetTurnLedsOffStandby},
{ menuText[6], METHOD, .method = &ConfigExtra_WriteConfigExtra},
{},
}
};
Expand Down
38 changes: 19 additions & 19 deletions sysmodules/rosalina/source/menus/debugger_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
#include "menus.h"

Menu debuggerMenu = {
"Debugger options menu",
"Menu impostazioni del debugger",
{
{"Enable debugger", METHOD, .method = &DebuggerMenu_EnableDebugger},
{"Disable debugger", METHOD, .method = &DebuggerMenu_DisableDebugger},
{"Force-debug next application at launch", METHOD, .method = &DebuggerMenu_DebugNextApplicationByForce},
{"Abilita il debugger", METHOD, .method = &DebuggerMenu_EnableDebugger},
{"Disabilita il debugger", METHOD, .method = &DebuggerMenu_DisableDebugger},
{"Forza-debug all'avvio della prossima applicazione", METHOD, .method = &DebuggerMenu_DebugNextApplicationByForce},
{},
}};

Expand All @@ -57,25 +57,25 @@ void DebuggerMenu_EnableDebugger(void)
do
{
Draw_Lock();
Draw_DrawString(10, 10, COLOR_TITLE, "Debugger options menu");
Draw_DrawString(10, 10, COLOR_TITLE, "Menu impostazioni del debugger");

if (alreadyEnabled)
Draw_DrawString(10, 30, COLOR_WHITE, "Already enabled!");
Draw_DrawString(10, 30, COLOR_WHITE, "Gia' attivato!");
else if (!isSocURegistered)
Draw_DrawString(10, 30, COLOR_WHITE, "Can't start the debugger before the system has fi-\nnished loading.");
Draw_DrawString(10, 30, COLOR_WHITE, "Impossibile avviare il debugger prima che il sistema abbia fi-\nnito di caricarsi.");
else
{
Draw_DrawString(10, 30, COLOR_WHITE, "Starting debugger...");
Draw_DrawString(10, 30, COLOR_WHITE, "Avviando il debugger...");

if (!done)
{
res = debuggerEnable(5 * 1000 * 1000 * 1000LL);
if (res != 0)
sprintf(buf, "Starting debugger... failed (0x%08lx).", (u32)res);
sprintf(buf, "Avviando il debugger... fallito (0x%08lx).", (u32)res);
done = true;
}
if (res == 0)
Draw_DrawString(10, 30, COLOR_WHITE, "Starting debugger... OK.");
Draw_DrawString(10, 30, COLOR_WHITE, "Avviando il debugger... OK.");
else
Draw_DrawString(10, 30, COLOR_WHITE, buf);
}
Expand All @@ -93,13 +93,13 @@ void DebuggerMenu_DisableDebugger(void)
char buf[65];

if (res != 0)
sprintf(buf, "Failed to disable debugger (0x%08lx).", (u32)res);
sprintf(buf, "Disattivazione del debugger fallita (0x%08lx).", (u32)res);

do
{
Draw_Lock();
Draw_DrawString(10, 10, COLOR_TITLE, "Debugger options menu");
Draw_DrawString(10, 30, COLOR_WHITE, initialized ? (res == 0 ? "Debugger disabled successfully." : buf) : "Debugger not enabled.");
Draw_DrawString(10, 10, COLOR_TITLE, "Menu impostazioni del debugger");
Draw_DrawString(10, 30, COLOR_WHITE, initialized ? (res == 0 ? "Debugger disattivato con successo." : buf) : "Debugger non abilitato.");
Draw_FlushFramebuffer();
Draw_Unlock();
} while (!(waitInput() & KEY_B) && !menuShouldExit);
Expand All @@ -119,29 +119,29 @@ void DebuggerMenu_DebugNextApplicationByForce(void)
switch (res)
{
case 0:
strcpy(buf, "Operation already performed.");
strcpy(buf, "Operazione gia' esewguita.");
break;
case 1:
sprintf(buf, "Operation succeeded.\nUse port %d to connect to the next launched\napplication.", nextApplicationGdbCtx->localPort);
sprintf(buf, "Operazione eseguita con successo.\nUsa la porta %d per connettere la prossima\napplicatione avviata.", nextApplicationGdbCtx->localPort);
break;
case 2:
strcpy(buf, "Failed to allocate a slot.\nPlease unselect a process in the process list first");
strcpy(buf, "Allocazione di uno slot fallita.\nPerfavore prima deseleziona un processo nella lista processi.");
break;
default:
if (!R_SUCCEEDED(res))
{
sprintf(buf, "Operation failed (0x%08lx).", (u32)res);
sprintf(buf, "Operazione fallita (0x%08lx).", (u32)res);
}
break;
}
}
else
strcpy(buf, "Debugger not enabled.");
strcpy(buf, "Debugger non abilitato.");

do
{
Draw_Lock();
Draw_DrawString(10, 10, COLOR_TITLE, "Debugger options menu");
Draw_DrawString(10, 10, COLOR_TITLE, "Menu impostazioni del debugger");
Draw_DrawString(10, 30, COLOR_WHITE, buf);
Draw_FlushFramebuffer();
Draw_Unlock();
Expand Down
Loading

0 comments on commit d370f49

Please sign in to comment.