Massively improved code readability
Some checks failed
Python application / build-linux (push) Has been cancelled
Python application / build-macos-x86 (push) Has been cancelled
Python application / build-macos-arm64 (push) Has been cancelled
Python application / build-windows (push) Has been cancelled

NUSGet's code has been updated to use better formatting and practices that align with how my other projects like libWiiPy and WiiPy are written.
This commit is contained in:
2024-12-13 18:34:37 -05:00
parent 08c2bd27f5
commit c1eb80fbb6
11 changed files with 305 additions and 382 deletions

View File

@@ -135,122 +135,117 @@ p, li { white-space: pre-wrap; }
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../../NUSGet.py" line="264"/>
<location filename="../../NUSGet.py" line="293"/>
<source>No Output Selected</source>
<translation>Nessun output selezionato</translation>
</message>
<message>
<location filename="../../NUSGet.py" line="265"/>
<location filename="../../NUSGet.py" line="294"/>
<source>You have not selected any format to output the data in!</source>
<translation>Non hai selezionato alcun formato in cui esportare i dati!</translation>
</message>
<message>
<location filename="../../NUSGet.py" line="267"/>
<location filename="../../NUSGet.py" line="296"/>
<source>Please select at least one option for how you would like the download to be saved.</source>
<translation>Per favore scegli almeno un opzione per come vorresti che fosse salvato il download.</translation>
</message>
<message>
<location filename="../../NUSGet.py" line="298"/>
<location filename="../../NUSGet.py" line="328"/>
<source>Invalid Title ID</source>
<translation>ID Titolo invalido</translation>
</message>
<message>
<location filename="../../NUSGet.py" line="299"/>
<location filename="../../NUSGet.py" line="329"/>
<source>The Title ID you have entered is not in a valid format!</source>
<translation>L&apos; ID Titolo che hai inserito non è in un formato valido!</translation>
</message>
<message>
<location filename="../../NUSGet.py" line="301"/>
<location filename="../../NUSGet.py" line="331"/>
<source>Title IDs must be 16 digit strings of numbers and letters. Please enter a correctly formatted Title ID, or select one from the menu on the left.</source>
<translation>Gli ID Titolo sono un codice di 16 caratteri tra numeri e lettere. Per favore inserisci in ID Titolo formattato correttamente, o scegline uno dal menù a sinistra.</translation>
</message>
<message>
<location filename="../../NUSGet.py" line="303"/>
<location filename="../../NUSGet.py" line="333"/>
<source>Title ID/Version Not Found</source>
<translation>ID Titolo/Versione non trovata</translation>
</message>
<message>
<location filename="../../NUSGet.py" line="304"/>
<location filename="../../NUSGet.py" line="334"/>
<source>No title with the provided Title ID or version could be found!</source>
<translation>Non è stato trovato nessun titolo con l&apos; ID Titolo o versione data!</translation>
</message>
<message>
<location filename="../../NUSGet.py" line="306"/>
<location filename="../../NUSGet.py" line="336"/>
<source>Please make sure that you have entered a valid Title ID, or selected one from the title database, and that the provided version exists for the title you are attempting to download.</source>
<translation>Assicurati di aver inserito un&apos; ID Titolo valido, o scegline uno dal database, e che la versione richiesta esista per il titolo che vuoi scaricare.</translation>
</message>
<message>
<location filename="../../NUSGet.py" line="308"/>
<location filename="../../NUSGet.py" line="338"/>
<source>Content Decryption Failed</source>
<translation>Decriptazione contenuti fallita</translation>
</message>
<message>
<location filename="../../NUSGet.py" line="309"/>
<location filename="../../NUSGet.py" line="339"/>
<source>Content decryption was not successful! Decrypted contents could not be created.</source>
<translation>La decriptazione dei contenuti non è andata a buon fine! I contenuti decriptadi non sono stati creati.</translation>
</message>
<message>
<location filename="../../NUSGet.py" line="312"/>
<location filename="../../NUSGet.py" line="342"/>
<source>Your TMD or Ticket may be damaged, or they may not correspond with the content being decrypted. If you have checked &quot;Use local files, if they exist&quot;, try disabling that option before trying the download again to fix potential issues with local data.</source>
<translation>Il tuo TMD o Ticket potrebbe essere danneggiato, o potrebbe non corrispondere col contenuto da decriptare. Se hai selezionato &quot;Usa file locali, se esistenti&quot;, prova a disabilitare quell&apos;opzione prima di riprovare a scaricare per aggiustare potenziali errori coi dati locali.</translation>
</message>
<message>
<location filename="../../NUSGet.py" line="315"/>
<location filename="../../NUSGet.py" line="345"/>
<source>Ticket Not Available</source>
<translation>Ticket non disponibile</translation>
</message>
<message>
<location filename="../../NUSGet.py" line="316"/>
<location filename="../../NUSGet.py" line="346"/>
<source>No Ticket is Available for the Requested Title!</source>
<translation>Nessun ticket disponibile per il titolo richiesto!</translation>
</message>
<message>
<location filename="../../NUSGet.py" line="319"/>
<location filename="../../NUSGet.py" line="349"/>
<source>A ticket could not be downloaded for the requested title, but you have selected &quot;Pack installable archive&quot; or &quot;Create decrypted contents&quot;. These options are not available for titles without a ticket. Only encrypted contents have been saved.</source>
<translation>Non è stato possibile scaricare un ticket per il titolo richiesto, ma hai selezionato &quot;Crea archivio installabile&quot; o &quot;Crea contenuto decriptato&quot;. Queste opzioni non sono disponibili per i titoli senza un ticket. Sono stati salvati solo i contenuti criptati.</translation>
</message>
<message>
<location filename="../../NUSGet.py" line="321"/>
<location filename="../../NUSGet.py" line="351"/>
<source>Unknown Error</source>
<translation>Errore sconosciuto</translation>
</message>
<message>
<location filename="../../NUSGet.py" line="322"/>
<location filename="../../NUSGet.py" line="352"/>
<source>An Unknown Error has Occurred!</source>
<translation>Errore sconosciuto!</translation>
</message>
<message>
<location filename="../../NUSGet.py" line="324"/>
<location filename="../../NUSGet.py" line="354"/>
<source>Please try again. If this issue persists, please open a new issue on GitHub detailing what you were trying to do when this error occurred.</source>
<translation>Per favore riprova. Se il problema persiste, apri un issue su GitHub specificando in modo dettagliato cosa volevi fare quando è comparso questo errore.</translation>
</message>
<message>
<location filename="../../NUSGet.py" line="364"/>
<location filename="../../NUSGet.py" line="399"/>
<source>Open NUS script</source>
<translation>Apri script NUS</translation>
</message>
<message>
<location filename="../../NUSGet.py" line="364"/>
<location filename="../../NUSGet.py" line="400"/>
<source>NUS Scripts (*.nus *.txt)</source>
<translation>Scrpit NUS (*.nus *.txt)</translation>
</message>
<message>
<location filename="../../NUSGet.py" line="371"/>
<location filename="../../NUSGet.py" line="386"/>
<location filename="../../NUSGet.py" line="389"/>
<location filename="../../NUSGet.py" line="397"/>
<location filename="../../NUSGet.py" line="415"/>
<location filename="../../NUSGet.py" line="422"/>
<location filename="../../NUSGet.py" line="398"/>
<source>Script Failure</source>
<translation>Errore script</translation>
</message>
<message>
<location filename="../../NUSGet.py" line="371"/>
<location filename="../../NUSGet.py" line="407"/>
<source>Failed to open the script.</source>
<translation>Impossibile aprire lo script.</translation>
</message>
<message>
<location filename="../../NUSGet.py" line="85"/>
<location filename="../../NUSGet.py" line="103"/>
<source>NUSGet v{nusget_version}
Developed by NinjaCheetah
Powered by libWiiPy {libwiipy_version}
@@ -277,12 +272,12 @@ I titoli verranno scaricati nella cartella &quot;NUSGet&quot; all&apos;interno d
<translation>Applica patch agli IOS (Solo per le WAD)</translation>
</message>
<message>
<location filename="../../NUSGet.py" line="184"/>
<location filename="../../NUSGet.py" line="211"/>
<source>NUSGet Update Available</source>
<translation>Aggiornamento di NUSGet disponibile</translation>
</message>
<message>
<location filename="../../NUSGet.py" line="185"/>
<location filename="../../NUSGet.py" line="212"/>
<source>There&apos;s a newer version of NUSGet available!</source>
<translation>Una nuova versione di NUSGet è disponibile!</translation>
</message>