Skip to content

Commit

Permalink
I'm almost ready to drop the translation in a few moments
Browse files Browse the repository at this point in the history
Translated almost all file necessary to make the full translation release.
  • Loading branch information
Simo3ds committed Nov 24, 2024
1 parent 75fdfe5 commit ffbd991
Show file tree
Hide file tree
Showing 10 changed files with 210 additions and 217 deletions.
40 changes: 20 additions & 20 deletions sysmodules/rosalina/source/errdisp.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,11 @@ static int ERRF_FormatRegisterDump(char *out, const ERRF_ExceptionData *exceptio
static int ERRF_FormatGenericInfo(char *out, const ERRF_FatalErrInfo *info)
{
static const char *types[] = {
"generic", "corrupted", "card removed", "exception", "result failure", "generic (log only)", "invalid"
"generico", "corrotto", "scheda rimossa", "errore", "risulta fallito", "generico (solo log)", "invalido"
};

static const char *exceptionTypes[] = {
"prefetch abort", "data abort", "undefined instruction", "VFP", "invalid"
"aborto prefetch", "aborto dati", "istruzioni indefinite", "VFP", "invalido"
};

const char *type = (u32)info->type > (u32)ERRF_ERRTYPE_LOG_ONLY ? types[6] : types[(u32)info->type];
Expand All @@ -160,12 +160,12 @@ static int ERRF_FormatGenericInfo(char *out, const ERRF_FatalErrInfo *info)
const char *exceptionType = (u32) info->data.exception_data.excep.type > (u32)ERRF_EXCEPTION_VFP ?
exceptionTypes[4] : exceptionTypes[(u32)info->data.exception_data.excep.type];

out += sprintf(out, "Error type: exception (%s)\n", exceptionType);
out += sprintf(out, "Tipo di errore: errore (%s)\n", exceptionType);
}
else
out += sprintf(out, "Error type: %s\n", type);
out += sprintf(out, "Tipo di errore: %s\n", type);

out += sprintf(out, "\nProcess ID: %lu\n", info->procId);
out += sprintf(out, "\nID Programma: %lu\n", info->procId);

res = svcOpenProcess(&processHandle, info->procId);
if(R_SUCCEEDED(res))
Expand All @@ -175,8 +175,8 @@ static int ERRF_FormatGenericInfo(char *out, const ERRF_FatalErrInfo *info)
svcGetProcessInfo((s64 *)name, processHandle, 0x10000);
svcGetProcessInfo((s64 *)&titleId, processHandle, 0x10001);
svcCloseHandle(processHandle);
out += sprintf(out, "Process name: %s\n", name);
out += sprintf(out, "Process title ID: %016llx\n", titleId);
out += sprintf(out, "Nome programma: %s\n", name);
out += sprintf(out, "ID Titolo del programma: %016llx\n", titleId);
}

out += sprintf(out, "\n");
Expand All @@ -194,27 +194,27 @@ static int ERRF_FormatError(char *out, const ERRF_FatalErrInfo *info, bool isLog
u64 timeNow = osGetTime();
u64 timeAtBoot = timeNow - (1000 * svcGetSystemTick() / SYSCLOCK_ARM11);
dateTimeToString(dateTimeStr, timeNow, false);
out += sprintf(out, "Reported on: %s\n", dateTimeStr);
out += sprintf(out, "Riportato su: %s\n", dateTimeStr);
dateTimeToString(dateTimeStr, timeAtBoot, false);
out += sprintf(out, "System booted on: %s\n\n", dateTimeStr);
out += sprintf(out, "Sistema avviato su: %s\n\n", dateTimeStr);

}
switch (info->type)
{
case ERRF_ERRTYPE_NAND_DAMAGED:
out += sprintf(out, "The NAND chip has been damaged.\n");
out += sprintf(out, "Il chip della NAND e' danneggiato.\n")
break;
case ERRF_ERRTYPE_CARD_REMOVED:
{
const char *medium = R_MODULE(info->resCode) == RM_SDMC ? "SD card" : "cartridge";
out += sprintf(out, "The %s was removed.\n", medium);
const char *medium = R_MODULE(info->resCode) == RM_SDMC ? "Scheda SD" : "cartuccia";
out += sprintf(out, "La %s e' stata rimossa.\n", medium);
break;
}
case ERRF_ERRTYPE_GENERIC:
case ERRF_ERRTYPE_LOG_ONLY:
out += ERRF_FormatGenericInfo(out, info);
out += sprintf(out, "Address: 0x%08lx\n", info->pcAddr);
out += sprintf(out, "Error code: 0x%08lx\n", info->resCode);
out += sprintf(out, "Indirizzo: 0x%08lx\n", info->pcAddr);
out += sprintf(out, "Codice errore: 0x%08lx\n", info->resCode);
break;
case ERRF_ERRTYPE_EXCEPTION:
out += ERRF_FormatGenericInfo(out, info);
Expand All @@ -223,11 +223,11 @@ static int ERRF_FormatError(char *out, const ERRF_FatalErrInfo *info, bool isLog
break;
case ERRF_ERRTYPE_FAILURE:
out += ERRF_FormatGenericInfo(out, info);
out += sprintf(out, "Error code: 0x%08lx\n", info->resCode);
out += sprintf(out, "Reason: %.96s\n", info->data.failure_mesg);
out += sprintf(out, "Codice errore: 0x%08lx\n", info->resCode);
out += sprintf(out, "Ragioni: %.96s\n", info->data.failure_mesg);
break;
default:
out += sprintf(out, "Invalid fatal error data.\n");
out += sprintf(out, "Errore fatale dati invalido.\n");
}

// We might not always have enough space to display this on screen, so keep it to the log file
Expand All @@ -243,17 +243,17 @@ static void ERRF_DisplayError(ERRF_FatalErrInfo *info, bool continueAfterErrdisp
{
Draw_Lock();

u32 posY = Draw_DrawString(10, 10, COLOR_RED, "An error occurred (ErrDisp)");
u32 posY = Draw_DrawString(10, 10, COLOR_RED, "Si e' verificato un errore (ErrDisp)");
char buf[0x400];

ERRF_FormatError(buf, info, false);
posY = posY < 30 ? 30 : posY;

posY = Draw_DrawString(10, posY, COLOR_WHITE, buf);
if(continueAfterErrdisp)
posY = Draw_DrawString(10, posY + SPACING_Y, COLOR_TITLE, "Press any button to continue.\nThere is a high chance that it crashed.\nTo reboot, press A + B + X + Y + Start.");
posY = Draw_DrawString(10, posY + SPACING_Y, COLOR_TITLE, "Premi un qualsiasi tasto.\nC'e' una grande possibilita' che sia crashato.\nPer riavviare, premi A + B + X + Y + Start.");
else
posY = Draw_DrawString(10, posY + SPACING_Y, COLOR_WHITE, "Press any button to reboot.");
posY = Draw_DrawString(10, posY + SPACING_Y, COLOR_WHITE, "Premi un qualsiasi tasto per riavviare.");

Draw_FlushFramebuffer();
Draw_Unlock();
Expand Down
8 changes: 4 additions & 4 deletions sysmodules/rosalina/source/luma_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@ static size_t LumaConfig_SaveLumaIniConfigToStr(char *out, const CfgData *cfg)
}

if (GET_VERSION_REVISION(version) != 0) {
sprintf(lumaVerStr, "Polari3DS v%d.%d.%d", (int)GET_VERSION_MAJOR(version), (int)GET_VERSION_MINOR(version), (int)GET_VERSION_REVISION(version));
sprintf(lumaVerStr, "Polari3DS-ITA v%d.%d.%d", (int)GET_VERSION_MAJOR(version), (int)GET_VERSION_MINOR(version), (int)GET_VERSION_REVISION(version));
} else {
sprintf(lumaVerStr, "Polari3DS v%d.%d", (int)GET_VERSION_MAJOR(version), (int)GET_VERSION_MINOR(version));
sprintf(lumaVerStr, "Polari3DS-ITA v%d.%d", (int)GET_VERSION_MAJOR(version), (int)GET_VERSION_MINOR(version));
}

if (isRelease) {
Expand Down Expand Up @@ -251,9 +251,9 @@ static size_t LumaConfig_SavePerformanceLumaIniConfigToStr(char *out, const CfgD
}

if (GET_VERSION_REVISION(version) != 0) {
sprintf(lumaVerStr, "Polari3DS v%d.%d.%d", (int)GET_VERSION_MAJOR(version), (int)GET_VERSION_MINOR(version), (int)GET_VERSION_REVISION(version));
sprintf(lumaVerStr, "Polari3DS-ITA v%d.%d.%d", (int)GET_VERSION_MAJOR(version), (int)GET_VERSION_MINOR(version), (int)GET_VERSION_REVISION(version));
} else {
sprintf(lumaVerStr, "Polari3DS v%d.%d", (int)GET_VERSION_MAJOR(version), (int)GET_VERSION_MINOR(version));
sprintf(lumaVerStr, "Polari3DS-ITA v%d.%d", (int)GET_VERSION_MAJOR(version), (int)GET_VERSION_MINOR(version));
}

if (isRelease) {
Expand Down
34 changes: 17 additions & 17 deletions sysmodules/rosalina/source/luminance.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,36 +200,36 @@ void Luminance_RecalibrateBrightnessDefaults(void)

Draw_Lock();
Draw_ClearFramebuffer();
Draw_DrawString(10, 10, COLOR_TITLE, "Permanent brightness recalibration - by Nutez");
Draw_DrawString(10, 10, COLOR_TITLE, "Ricalibrazione permanente luminosita' - di Nutez");
u32 posY = 30;

posY = Draw_DrawString(10, posY, COLOR_RED, "WARNING: ") + SPACING_Y;
posY = Draw_DrawString(10, posY, COLOR_WHITE, " * brightness preview not possible here\n due to glitch risk.") + SPACING_Y;
posY = Draw_DrawString(10, posY, COLOR_WHITE, " * test values via 'Change screen brightness'.") + SPACING_Y;
posY = Draw_DrawString(10, posY, COLOR_WHITE, " * avoid frequent use to minimise NAND(!) wear.") + SPACING_Y;
posY = Draw_DrawString(10, posY, COLOR_WHITE, " * 172 is only presumed(!) safe for prolonged use.") + (SPACING_Y*2);
posY = Draw_DrawString(10, posY, COLOR_RED, "ATTENZIONE: ") + SPACING_Y;
posY = Draw_DrawString(10, posY, COLOR_WHITE, " * L'anteprima della lum. non e' possibile qui\n per rischio glitch.") + SPACING_Y;
posY = Draw_DrawString(10, posY, COLOR_WHITE, " * testa i valori via 'Cambia luminosita' schermi'.") + SPACING_Y;
posY = Draw_DrawString(10, posY, COLOR_WHITE, " * e' frequente per minimizzare la pressione(?) della NAND(!).") + SPACING_Y;//note that (?) mean that is a possible uncorrect translation
posY = Draw_DrawString(10, posY, COLOR_WHITE, " * 172 e' solamente presunto(!) sicuro per uso prolungato.") + (SPACING_Y*2);

sprintf(fmtbuf, "%c Level 1 value: %i", (sel == 0 ? '>' : ' '), s_blPwmData.luminanceLevels[0]);
sprintf(fmtbuf, "%c Liv.1 valore: %i", (sel == 0 ? '>' : ' '), s_blPwmData.luminanceLevels[0]);
posY = Draw_DrawString(10, posY, COLOR_WHITE, fmtbuf) + SPACING_Y;

sprintf(fmtbuf, "%c Level 2 value: %i", (sel == 1 ? '>' : ' '), s_blPwmData.luminanceLevels[1]);
sprintf(fmtbuf, "%c Liv.2 valore: %i", (sel == 1 ? '>' : ' '), s_blPwmData.luminanceLevels[1]);
posY = Draw_DrawString(10, posY, COLOR_WHITE, fmtbuf) + SPACING_Y;

sprintf(fmtbuf, "%c Level 3 value: %i", (sel == 2 ? '>' : ' '), s_blPwmData.luminanceLevels[2]);
sprintf(fmtbuf, "%c Liv.3 valore: %i", (sel == 2 ? '>' : ' '), s_blPwmData.luminanceLevels[2]);
posY = Draw_DrawString(10, posY, COLOR_WHITE, fmtbuf) + SPACING_Y;

sprintf(fmtbuf, "%c Level 4 value: %i", (sel == 3 ? '>' : ' '), s_blPwmData.luminanceLevels[3]);
sprintf(fmtbuf, "%c Liv.4 valore: %i", (sel == 3 ? '>' : ' '), s_blPwmData.luminanceLevels[3]);
posY = Draw_DrawString(10, posY, COLOR_WHITE, fmtbuf) + SPACING_Y;

sprintf(fmtbuf, "%c Level 5 value: %i", (sel == 4 ? '>' : ' '), s_blPwmData.luminanceLevels[4]);
sprintf(fmtbuf, "%c Liv.5 valore: %i", (sel == 4 ? '>' : ' '), s_blPwmData.luminanceLevels[4]);
posY = Draw_DrawString(10, posY, COLOR_WHITE, fmtbuf) + (SPACING_Y*2);

posY = Draw_DrawString(10, posY, COLOR_GREEN, "Controls:") + SPACING_Y;
posY = Draw_DrawString(10, posY, COLOR_WHITE, " UP/DOWN to choose level to edit.") + SPACING_Y;
posY = Draw_DrawString(10, posY, COLOR_WHITE, " RIGHT/LEFT for +/-1, +hold L1 or R1 for +/-10.") + SPACING_Y;
posY = Draw_DrawString(10, posY, COLOR_WHITE, " Press START to save all value changes.") + SPACING_Y;
posY = Draw_DrawString(10, posY, COLOR_WHITE, " Reboot may be required to see applied changes.") + SPACING_Y;
posY = Draw_DrawString(10, posY, COLOR_WHITE, " Press B to exit.");
posY = Draw_DrawString(10, posY, COLOR_GREEN, "Controlli:") + SPACING_Y;
posY = Draw_DrawString(10, posY, COLOR_WHITE, " SU/GIU' per selezionare il livello da modificare.") + SPACING_Y;
posY = Draw_DrawString(10, posY, COLOR_WHITE, " SINISTRA/DESTRA per +/-1, + mantieni L o R per +/-10.") + SPACING_Y;
posY = Draw_DrawString(10, posY, COLOR_WHITE, " Premi START per salvare tutti i cambiamenti ai val. .") + SPACING_Y;
posY = Draw_DrawString(10, posY, COLOR_WHITE, " Il riavvio e' necessario per vedere i camb. applicati.") + SPACING_Y;
posY = Draw_DrawString(10, posY, COLOR_WHITE, " Premi B per uscire.");

Draw_FlushFramebuffer();
Draw_Unlock();
Expand Down
4 changes: 2 additions & 2 deletions sysmodules/rosalina/source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ void initSystem(void)
svcBreak(USERBREAK_PANIC);

miscellaneousMenu.items[0].title = Luma_SharedConfig->selected_hbldr_3dsx_tid == HBLDR_DEFAULT_3DSX_TID ?
"Switch the hb. title to the current app." :
"Switch the hb. title to " HBLDR_DEFAULT_3DSX_TITLE_NAME;
"Scambia il titolo hb. con l'app corrente" :
"Scambia il titolo hb. con " HBLDR_DEFAULT_3DSX_TITLE_NAME;

// **** DO NOT init services that don't come from KIPs here ****
// Instead, init the service only where it's actually init (then deinit it).
Expand Down
2 changes: 1 addition & 1 deletion sysmodules/rosalina/source/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ static const char *menuGetScreenTypeStr(u8 vendorId)
{
case 1: return "IPS"; // SHARP
case 12: return "TN"; // JDN
default: return "unknown";
default: return "sconosciuto";
}
}

Expand Down
Loading

0 comments on commit ffbd991

Please sign in to comment.