From e2decf8d6f8a84168e0217cde536eb054e8da549 Mon Sep 17 00:00:00 2001 From: NinjaCheetah <58050615+NinjaCheetah@users.noreply.github.com> Date: Wed, 21 Aug 2024 19:34:08 -0400 Subject: [PATCH] Wrote script to update ts files since the real one is broken --- NUSGet.py | 6 +- NUSGet.pyproject | 3 +- modules/core.py | 8 +- resources/translations/nusget_es.ts | 186 ++++++++++++++++------------ resources/translations/nusget_fr.ts | 90 ++++++++++---- resources/translations/nusget_it.ts | 72 +++++++++++ resources/translations/nusget_nb.ts | 72 +++++++++++ resources/translations/nusget_no.ts | 72 +++++++++++ update_translations.py | 30 +++++ 9 files changed, 423 insertions(+), 116 deletions(-) create mode 100644 update_translations.py diff --git a/NUSGet.py b/NUSGet.py index 5688942..89a5f3e 100644 --- a/NUSGet.py +++ b/NUSGet.py @@ -20,7 +20,7 @@ from modules.core import * from modules.download_wii import run_nus_download_wii from modules.download_dsi import run_nus_download_dsi -nusget_version = "1.2.0" +nusget_version = "1.0.0" regions = {"World": ["41"], "USA/NTSC": ["45"], "Europe/PAL": ["50"], "Japan": ["4A"], "Korea": ["4B"], "China": ["43"], "Australia/NZ": ["55"]} @@ -125,7 +125,7 @@ class MainWindow(QMainWindow, Ui_MainWindow): # Connect the double click signal for handling when titles are selected. tree[0].itemDoubleClicked.connect(self.onItemClicked) # Do a quick check to see if there's a newer release available, and inform the user if there is. - worker = Worker(check_nusget_updates, nusget_version) + worker = Worker(check_nusget_updates, app, nusget_version) worker.signals.result.connect(self.prompt_for_update) worker.signals.progress.connect(self.update_log_text) self.threadpool.start(worker) @@ -177,7 +177,7 @@ class MainWindow(QMainWindow, Ui_MainWindow): msg_box.setInformativeText(app.translate("MainWindow", "You're currently running v{nusget_version}, " "but v{new_version} is available on GitHub. Would you like to view" " the latest version?" - .format(nusget_version=nusget_version, new_version=nusget_version))) + .format(nusget_version=nusget_version, new_version=new_version))) ret = msg_box.exec() if ret == QMessageBox.StandardButton.Yes: webbrowser.open("https://github.com/NinjaCheetah/NUSGet/releases/latest") diff --git a/NUSGet.pyproject b/NUSGet.pyproject index a1dd8a3..55d6802 100644 --- a/NUSGet.pyproject +++ b/NUSGet.pyproject @@ -1,7 +1,8 @@ { "files": [ "NUSGet.py", - "./qt/py/ui_MainMenu.py", + "./modules/core.py", + "./qt/ui/MainMenu.ui", "./resources/translations/nusget_es.ts", "./resources/translations/nusget_no.ts", "./resources/translations/nusget_nb.ts", diff --git a/modules/core.py b/modules/core.py index f9be4d0..21e6e73 100644 --- a/modules/core.py +++ b/modules/core.py @@ -4,11 +4,11 @@ import requests -def check_nusget_updates(current_version: str, progress_callback=None) -> str | None: +def check_nusget_updates(app, current_version: str, progress_callback=None) -> str | None: # Simple function to make a request to the GitHub API and then check if the latest available version is newer. gh_api_request = requests.get(url="https://api.github.com/repos/NinjaCheetah/NUSGet/releases/latest", stream=True) if gh_api_request.status_code != 200: - progress_callback.emit("\n\nCould not check for updates.") + progress_callback.emit(app.translate("MainWindow", "\n\nCould not check for updates.")) else: api_response = gh_api_request.json() new_version: str = api_response["tag_name"].replace('v', '') @@ -16,7 +16,7 @@ def check_nusget_updates(current_version: str, progress_callback=None) -> str | current_version_split = current_version.split('.') for place in range(len(new_version_split)): if new_version_split[place] > current_version_split[place]: - progress_callback.emit("\n\nThere's a newer version of NUSGet available!") + progress_callback.emit(app.translate("MainWindow", "\n\nThere's a newer version of NUSGet available!")) return new_version - progress_callback.emit("\n\nYou're running the latest release of NUSGet.") + progress_callback.emit(app.translate("MainWindow", "\n\nYou're running the latest release of NUSGet.")) return None diff --git a/resources/translations/nusget_es.ts b/resources/translations/nusget_es.ts index 5d8d682..ac359c0 100644 --- a/resources/translations/nusget_es.ts +++ b/resources/translations/nusget_es.ts @@ -1,124 +1,109 @@ - - A ticket could not be downloaded for the requested title, but you have selected "Pack installable archive" or "Create decrypted contents". These options are not available for titles without a ticket. Only encrypted contents have been saved. - - No Ticket Error Body - - - - - An Unknown Error has Occurred! - - Unknown Error Title - - - - - Content Decryption Failed - - Decryption Error Window Title - - - - - Content decryption was not successful! Decrypted contents could not be created. - - Decryption Error Title - - - - - Invalid Title ID - - Invalid TID Error Window Title - - - MainWindow + Wii Does not change. Wii + vWii Does not change. vWii + DSi Does not change. DSi + v Does not change. v + MainWindow + Available Titles + Title ID + Version + Console: + Start Download + General Settings + Pack installable archive (WAD/TAD) + File Name + Keep encrypted contents + Create decrypted contents (*.app) + Use local files, if they exist + Use the Wii U NUS (faster, only effects Wii/vWii) + vWii Title Settings + Re-encrypt title using the Wii Common Key + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } @@ -126,9 +111,14 @@ p, li { white-space: pre-wrap; } <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans Serif'; font-size:9pt;"><br /></p></body></html> - - - NUSGet v{nusget_version} + + + Apply patches to IOS (Applies to WADs only) + + + + + NUSGet v{nusget_version} Developed by NinjaCheetah Powered by libWiiPy {libwiipy_version} DSi support provided by libTWLPy {libtwlpy_version} @@ -137,79 +127,113 @@ Select a title from the list on the left, or enter a Title ID to begin. Titles marked with a checkmark are free and have a ticket available, and can be decrypted and/or packed into a WAD or TAD. Titles with an X do not have a ticket, and only their encrypted contents can be saved. -Titles will be downloaded to a folder named "NUSGet" inside your downloads folder. - - Welcome Text +Titles will be downloaded to a folder named "NUSGet" inside your downloads folder. - - - No Ticket is Available for the Requested Title! - No Ticket Error Title + + NUSGet Update Available - - - No title with the provided Title ID or version could be found! - Target Not Found Error Title + + There's a newer version of NUSGet available! - - - 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. - Target Not Found Error Body + + Invalid Title ID - - - 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. - Unknown Error Body + + The Title ID you have entered is not in a valid format! - - - The Title ID you have entered is not in a valid format! - Invalid TID Error Title + + 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. - - - Ticket Not Available - No Ticket Error Window Title + + Title ID/Version Not Found - - - Title ID/Version Not Found - Target Not Found Error Window Title + + No title with the provided Title ID or version could be found! - - - 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. - Invalid Title ID Error Body + + 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. - - - Unknown Error - Unknown Error Window Title + + Content Decryption Failed - - - Your TMD or Ticket may be damaged, or they may not correspond with the content being decrypted. If you have checked "Use local files, if they exist", try disabling that option before trying the download again to fix potential issues with local data. - Decryption Error Body + + Content decryption was not successful! Decrypted contents could not be created. + + + + + Your TMD or Ticket may be damaged, or they may not correspond with the content being decrypted. If you have checked "Use local files, if they exist", try disabling that option before trying the download again to fix potential issues with local data. + + + + + Ticket Not Available + + + + + No Ticket is Available for the Requested Title! + + + + + A ticket could not be downloaded for the requested title, but you have selected "Pack installable archive" or "Create decrypted contents". These options are not available for titles without a ticket. Only encrypted contents have been saved. + + + + + Unknown Error + + + + + An Unknown Error has Occurred! + + + + + 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. + + + + + + +Could not check for updates. + + + + + + +There's a newer version of NUSGet available! + + + + + + +You're running the latest release of NUSGet. diff --git a/resources/translations/nusget_fr.ts b/resources/translations/nusget_fr.ts index 89d223c..f4a159a 100644 --- a/resources/translations/nusget_fr.ts +++ b/resources/translations/nusget_fr.ts @@ -4,7 +4,7 @@ MainWindow - + NUSGet v{nusget_version} Developed by NinjaCheetah Powered by libWiiPy {libwiipy_version} @@ -18,77 +18,87 @@ Titles will be downloaded to a folder named "NUSGet" inside your downl - + + NUSGet Update Available + + + + + There's a newer version of NUSGet available! + + + + Invalid Title ID - + The Title ID you have entered is not in a valid format! - + 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. - + Title ID/Version Not Found - + No title with the provided Title ID or version could be found! - + 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. - + Content Decryption Failed - + Content decryption was not successful! Decrypted contents could not be created. - + Your TMD or Ticket may be damaged, or they may not correspond with the content being decrypted. If you have checked "Use local files, if they exist", try disabling that option before trying the download again to fix potential issues with local data. - + Ticket Not Available - + No Ticket is Available for the Requested Title! - + A ticket could not be downloaded for the requested title, but you have selected "Pack installable archive" or "Create decrypted contents". These options are not available for titles without a ticket. Only encrypted contents have been saved. - + Unknown Error - + An Unknown Error has Occurred! - + 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. @@ -148,52 +158,78 @@ Titles will be downloaded to a folder named "NUSGet" inside your downl - + Pack installable archive (WAD/TAD) - + File Name - + Keep encrypted contents - + Create decrypted contents (*.app) - + Use local files, if they exist - + Use the Wii U NUS (faster, only effects Wii/vWii) - + + Apply patches to IOS (Applies to WADs only) + + + + vWii Title Settings - + Re-encrypt title using the Wii Common Key - + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } -</style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;"> -<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p></body></html> +</style></head><body style=" font-family:'Noto Sans'; font-size:10pt; font-weight:400; font-style:normal;"> +<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans Serif'; font-size:9pt;"><br /></p></body></html> + + + + + + +Could not check for updates. + + + + + + +There's a newer version of NUSGet available! + + + + + + +You're running the latest release of NUSGet. diff --git a/resources/translations/nusget_it.ts b/resources/translations/nusget_it.ts index e5aea68..e17df27 100644 --- a/resources/translations/nusget_it.ts +++ b/resources/translations/nusget_it.ts @@ -4,82 +4,102 @@ MainWindow + MainWindow Finestra principale + Available Titles Titoli disponibili + Wii Wii + vWii vWii + DSi DSi + Title ID ID Titolo + v v + Version Versione + Console: Console: + Start Download Avvia download + General Settings Impostazioni generali + Pack installable archive (WAD/TAD) Archivio installabile (WAD/TAD) + File Name Nome del file + Keep encrypted contents Mantieni contenuti criptati + Create decrypted contents (*.app) Crea contenuto decriptato (*.app) + Use local files, if they exist Usa file locali, se esistenti + Use the Wii U NUS (faster, only effects Wii/vWii) Usa il NUS di Wii U (più veloce, riguarda solo Wii/vWii) + vWii Title Settings Impostazioni titoli vWii + Re-encrypt title using the Wii Common Key Cripta titolo usando la Chiave Comune Wii + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } @@ -92,66 +112,82 @@ p, li { white-space: pre-wrap; } <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p></body></html> + Invalid Title ID ID Titolo invalido + The Title ID you have entered is not in a valid format! L' ID Titolo che hai inserito non è in un formato valido! + 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. 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. + Title ID/Version Not Found ID Titolo/Versione non trovata + No title with the provided Title ID or version could be found! Non è stato trovato nessun titolo con l' ID Titolo o versione data! + 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. Assicurati di aver inserito un' ID Titolo valido, o scegline uno dal database, e che la versione richiesta esista per il titolo che vuoi scaricare. + Content Decryption Failed Decriptazione contenuti fallita + Content decryption was not successful! Decrypted contents could not be created. La decriptazione dei contenuti non è andata a buon fine! I contenuti decriptadi non sono stati creati. + Your TMD or Ticket may be damaged, or they may not correspond with the content being decrypted. If you have checked "Use local files, if they exist", try disabling that option before trying the download again to fix potential issues with local data. Il tuo TMD o Ticket potrebbe essere danneggiato, o potrebbe non corrispondere col contenuto da decriptare. Se hai selezionato "Usa file locali, se esistenti", prova a disabilitare quell'opzione prima di riprovare a scaricare per aggiustare potenziali errori coi dati locali. + Ticket Not Available Ticket non disponibile + No Ticket is Available for the Requested Title! Nessun ticket disponibile per il titolo richiesto! + A ticket could not be downloaded for the requested title, but you have selected "Pack installable archive" or "Create decrypted contents". These options are not available for titles without a ticket. Only encrypted contents have been saved. Non è stato possibile scaricare un ticket per il titolo richiesto, ma hai selezionato "Crea archivio installabile" o "Crea contenuto decriptato". Queste opzioni non sono disponibili per i titoli senza un ticket. Sono stati salvati solo i contenuti criptati. + Unknown Error Errore sconosciuto + An Unknown Error has Occurred! Errore sconosciuto! + 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. Per favore riprova. Se il problema persiste, apri un issue su GitHub specificando in modo dettagliato cosa volevi fare quando è comparso questo errore. + NUSGet v{nusget_version} Developed by NinjaCheetah Powered by libWiiPy {libwiipy_version} @@ -172,5 +208,41 @@ I titoli marcati da una spunta sono disponibili e hanno un ticket libero, e poss I titoli verranno scaricati nella cartella "NUSGet" all'interno della cartella Download. + + + Apply patches to IOS (Applies to WADs only) + + + + + NUSGet Update Available + + + + + There's a newer version of NUSGet available! + + + + + + +Could not check for updates. + + + + + + +There's a newer version of NUSGet available! + + + + + + +You're running the latest release of NUSGet. + + diff --git a/resources/translations/nusget_nb.ts b/resources/translations/nusget_nb.ts index 7843ba3..ef5ee02 100644 --- a/resources/translations/nusget_nb.ts +++ b/resources/translations/nusget_nb.ts @@ -4,82 +4,102 @@ MainWindow + MainWindow MainWindow + Available Titles Tilgjengelige Titler + Wii Wii + vWii vWii + DSi DSi + Title ID Tittel ID + v v + Version Versjon + Console: Konsoll: + Start Download Start Nedlasting + General Settings Generelle Instillinger + Pack installable archive (WAD/TAD) Pakke installerbart arkiv (WAD/TAD) + File Name Filnavn + Keep encrypted contents Oppbevar kryptert innhold + Create decrypted contents (*.app) Opprette dekryptert innold (*.app) + Use local files, if they exist Bruk lokale filer, hvis de finnes + Use the Wii U NUS (faster, only effects Wii/vWii) Bruk Wii U NUS (raskere, påvirker bare Wii/vWii) + vWii Title Settings vWii Tittelinstillinger + Re-encrypt title using the Wii Common Key Krypter tittelen på nytt ved hjelp av Wii Common Key + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } @@ -92,6 +112,7 @@ p, li { white-space: pre-wrap; } <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p></body></html> + NUSGet v{nusget_version} Developed by NinjaCheetah Powered by libWiiPy {libwiipy_version} @@ -114,64 +135,115 @@ Titler merket med en hake er fri og har en billett tilgjengelig, og kan dekrypte Titler er lastes ned til en mappe med navnet "NUSGet" i nedlastingsmappen din. + Invalid Title ID Ugyldig Tittel ID + The Title ID you have entered is not in a valid format! Tittel IDen du har angitt er ikke i et gyldig format! + 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. Tittel IDer må være 16-sifrede tall og bokstav strenger. Vennligst skriv inn en korrekt formatert Tittel ID, eller velg en fra menyen til venstre. + Title ID/Version Not Found Tittel ID/Versjon Ikke Funnet + No title with the provided Title ID or version could be found! Ingen tittel med oppgitt Tittel ID eller versjon ble funnet! + 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. Vennligst kontroller at du har oppgitt en gyldig Tittel ID, eller valgt en fra titteldatabasen, og at den angitte versjonen finnes for tittelen du forsøker å laste ned. + Content Decryption Failed Dekryptering av Innhold Mislyktes + Content decryption was not successful! Decrypted contents could not be created. Dekryptering av innhold var ikke vellykket! Dekryptert innhold kunne ikke opprettes. + Your TMD or Ticket may be damaged, or they may not correspond with the content being decrypted. If you have checked "Use local files, if they exist", try disabling that option before trying the download again to fix potential issues with local data. TMDen eller Billetten kan være skadet, eller det kan hende at de ikke samsvarer med innholdet some dekrypteres. Hvis du har krysset av for "Bruk lokale filer, hvis de finnes", kan du prøve å deaktivere dette alternativet før du prøver nedlastingen på nytt for å løse eventuelle problemer med lokale data. + Ticket Not Available Billett Ikke Tilgjengelig + No Ticket is Available for the Requested Title! Ingen billett er tilgjengelig for den forespurte tittelen! + A ticket could not be downloaded for the requested title, but you have selected "Pack installable archive" or "Create decrypted contents". These options are not available for titles without a ticket. Only encrypted contents have been saved. En billett kunne ikke lastes ned for den forespurte tittelen, men du har valgt "Pakk installerbart arkiv" eller "Opprett dekryptert innhold". Disse alternativene er ikke tilgjenelige for titler uten billett. Bare kryptert innhold har blitt lagret. + Unknown Error Ukjent Feil + An Unknown Error has Occurred! En ukjent feil har oppstått! + 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. Vennligst prøv igjen. Hvis dette problemet vedvarer, åpne et nytt issue på GitHub med detaljer om hva du prøvde å gjøre da denne feilen oppstod. + + + Apply patches to IOS (Applies to WADs only) + + + + + NUSGet Update Available + + + + + There's a newer version of NUSGet available! + + + + + + +Could not check for updates. + + + + + + +There's a newer version of NUSGet available! + + + + + + +You're running the latest release of NUSGet. + + diff --git a/resources/translations/nusget_no.ts b/resources/translations/nusget_no.ts index 7843ba3..ef5ee02 100644 --- a/resources/translations/nusget_no.ts +++ b/resources/translations/nusget_no.ts @@ -4,82 +4,102 @@ MainWindow + MainWindow MainWindow + Available Titles Tilgjengelige Titler + Wii Wii + vWii vWii + DSi DSi + Title ID Tittel ID + v v + Version Versjon + Console: Konsoll: + Start Download Start Nedlasting + General Settings Generelle Instillinger + Pack installable archive (WAD/TAD) Pakke installerbart arkiv (WAD/TAD) + File Name Filnavn + Keep encrypted contents Oppbevar kryptert innhold + Create decrypted contents (*.app) Opprette dekryptert innold (*.app) + Use local files, if they exist Bruk lokale filer, hvis de finnes + Use the Wii U NUS (faster, only effects Wii/vWii) Bruk Wii U NUS (raskere, påvirker bare Wii/vWii) + vWii Title Settings vWii Tittelinstillinger + Re-encrypt title using the Wii Common Key Krypter tittelen på nytt ved hjelp av Wii Common Key + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } @@ -92,6 +112,7 @@ p, li { white-space: pre-wrap; } <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p></body></html> + NUSGet v{nusget_version} Developed by NinjaCheetah Powered by libWiiPy {libwiipy_version} @@ -114,64 +135,115 @@ Titler merket med en hake er fri og har en billett tilgjengelig, og kan dekrypte Titler er lastes ned til en mappe med navnet "NUSGet" i nedlastingsmappen din. + Invalid Title ID Ugyldig Tittel ID + The Title ID you have entered is not in a valid format! Tittel IDen du har angitt er ikke i et gyldig format! + 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. Tittel IDer må være 16-sifrede tall og bokstav strenger. Vennligst skriv inn en korrekt formatert Tittel ID, eller velg en fra menyen til venstre. + Title ID/Version Not Found Tittel ID/Versjon Ikke Funnet + No title with the provided Title ID or version could be found! Ingen tittel med oppgitt Tittel ID eller versjon ble funnet! + 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. Vennligst kontroller at du har oppgitt en gyldig Tittel ID, eller valgt en fra titteldatabasen, og at den angitte versjonen finnes for tittelen du forsøker å laste ned. + Content Decryption Failed Dekryptering av Innhold Mislyktes + Content decryption was not successful! Decrypted contents could not be created. Dekryptering av innhold var ikke vellykket! Dekryptert innhold kunne ikke opprettes. + Your TMD or Ticket may be damaged, or they may not correspond with the content being decrypted. If you have checked "Use local files, if they exist", try disabling that option before trying the download again to fix potential issues with local data. TMDen eller Billetten kan være skadet, eller det kan hende at de ikke samsvarer med innholdet some dekrypteres. Hvis du har krysset av for "Bruk lokale filer, hvis de finnes", kan du prøve å deaktivere dette alternativet før du prøver nedlastingen på nytt for å løse eventuelle problemer med lokale data. + Ticket Not Available Billett Ikke Tilgjengelig + No Ticket is Available for the Requested Title! Ingen billett er tilgjengelig for den forespurte tittelen! + A ticket could not be downloaded for the requested title, but you have selected "Pack installable archive" or "Create decrypted contents". These options are not available for titles without a ticket. Only encrypted contents have been saved. En billett kunne ikke lastes ned for den forespurte tittelen, men du har valgt "Pakk installerbart arkiv" eller "Opprett dekryptert innhold". Disse alternativene er ikke tilgjenelige for titler uten billett. Bare kryptert innhold har blitt lagret. + Unknown Error Ukjent Feil + An Unknown Error has Occurred! En ukjent feil har oppstått! + 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. Vennligst prøv igjen. Hvis dette problemet vedvarer, åpne et nytt issue på GitHub med detaljer om hva du prøvde å gjøre da denne feilen oppstod. + + + Apply patches to IOS (Applies to WADs only) + + + + + NUSGet Update Available + + + + + There's a newer version of NUSGet available! + + + + + + +Could not check for updates. + + + + + + +There's a newer version of NUSGet available! + + + + + + +You're running the latest release of NUSGet. + + diff --git a/update_translations.py b/update_translations.py new file mode 100644 index 0000000..e09a901 --- /dev/null +++ b/update_translations.py @@ -0,0 +1,30 @@ +# "update_translations.py", licensed under the MIT license +# Copyright 2024 NinjaCheetah +# This script exists to work around an issue in PySide6 where the "pyside6-project lupdate" command doesn't work as +# expected, as it struggles to parse the paths in the .pyproject file. This does what it's meant to do for it. + +import json +import pathlib +import subprocess + + +LUPDATE_CMD = "pyside6-lupdate" + + +pyproject_file = pathlib.Path("NUSGet.pyproject") +pyproject = json.load(open(pyproject_file, "r")) +files = [] +for key in pyproject["files"]: + files.append(pathlib.Path(key)) +source_files = [] +ts_files = [] +for file in files: + if file.suffix == ".ts": + ts_files.append(file) + elif file.suffix == ".py" or file.suffix == ".ui": + source_files.append(file) + +for target in ts_files: + cmd = [LUPDATE_CMD] + [s for s in source_files] + ["-ts"] + cmd.append(target) + subprocess.run(cmd, cwd=str(pyproject_file.parent))