diff --git a/resources/i18n/de/menus.json b/resources/i18n/de/menus.json index 7779388..80eb08b 100644 --- a/resources/i18n/de/menus.json +++ b/resources/i18n/de/menus.json @@ -80,7 +80,6 @@ "payloads": { "dl_payloads": "Payloads herunterladen", "select": " Wähle ein Payload zum neustarten aus.", - "not_found": "Konnte keinen Downloadlink finden. Stelle sicher, dass deine Switch Internetzugriff hat.\nWenn das Problem bestehen bleibt, öffne bitte ein Issue auf GitHub.", "set_reboot_payload": "Setze als reboot_payload.bin", "set_update_bin": "Setze als /bootloader/update.bin", "copy_success": "Erfolgreich kopiert '", diff --git a/resources/i18n/en-US/menus.json b/resources/i18n/en-US/menus.json index 67725be..df44f89 100644 --- a/resources/i18n/en-US/menus.json +++ b/resources/i18n/en-US/menus.json @@ -82,7 +82,6 @@ "payloads": { "dl_payloads": "Download payloads", "select": " Select a payload to reboot to.", - "not_found": "Could not find a download link, make sure the Switch has access to the internet.\nIf this problem persists, please open an issue on Github.", "set_reboot_payload": "Set as reboot_payload.bin", "set_update_bin": "Set as /bootloader/update.bin", "copy_success": "Successfully copied `{}` to `{}`." diff --git a/resources/i18n/es/menus.json b/resources/i18n/es/menus.json index 7297cd4..5d87eda 100644 --- a/resources/i18n/es/menus.json +++ b/resources/i18n/es/menus.json @@ -81,7 +81,6 @@ "payloads": { "dl_payloads": "Descargar payloads", "select": " Selecciona el payload al que reiniciar.", - "not_found": "No se pudo encontrar un enlace de descarga, asegúrate de que tu Switch tiene acceso a internet.\nSi el problema persiste, por favor abre un issue en GitHub.", "set_reboot_payload": "Poner como reboot_payload.bin", "set_update_bin": "Poner como /bootloader/update.bin", "copy_success": "Copiado correctamente `{}` a `{}`." diff --git a/resources/i18n/fr/menus.json b/resources/i18n/fr/menus.json index d02e7d6..898882c 100644 --- a/resources/i18n/fr/menus.json +++ b/resources/i18n/fr/menus.json @@ -79,7 +79,6 @@ "payloads": { "dl_payloads": "Téléchargement des payloads", "select": "Selectionner un payload vers lequel redémarrer.", - "not_found": "Impossible de trouver un lien de téléchargement, vérifiez que la Switch soit connectée à internet.\nSi ce problème persiste, veuillez ouvrir une issue sur GitHub.", "set_reboot_payload": "Choisir comme reboot_payload.bin", "set_update_bin": "Choisir comme /bootloader/update.bin", "copy_success": "Copie de `{}` à `{}` réussie." diff --git a/resources/i18n/it/menus.json b/resources/i18n/it/menus.json index cc83256..94ae4fe 100644 --- a/resources/i18n/it/menus.json +++ b/resources/i18n/it/menus.json @@ -41,7 +41,6 @@ "payloads": { "dl_payloads": "Scarica payloads", "select": " Seleziona un payload da riavviare.", - "not_found": "Non riesco a trova un link di download, accertati che la Switch abbia accesso a internet.\nSe il problema persiste, apri una issue su GitHub.", "set_reboot_payload": "Imposta come reboot_payload.bin", "set_update_bin": "Imposta come /bootloader/update.bin", "copy_success": "Copiato con successo '", diff --git a/resources/i18n/pl/menus.json b/resources/i18n/pl/menus.json index cff4315..cdf91dc 100644 --- a/resources/i18n/pl/menus.json +++ b/resources/i18n/pl/menus.json @@ -63,7 +63,6 @@ "payloads": { "dl_payloads": "Pobierz payloady", "select": " Wybierz payload do ponownego uruchomienia.", - "not_found": "Nie można było uzyskać linku pobierania. Upewnij się, że Switch ma połączenie z internetem.\nJeśli problem nie ustąpi, utwórz nowy problem na GitHubie.", "set_reboot_payload": "Ustaw jako reboot_payload.bin", "set_update_bin": "Ustaw jako /bootloader/update.bin", "copy_success": "Skopiowano pomyślnie '", diff --git a/resources/i18n/pt-BR/menus.json b/resources/i18n/pt-BR/menus.json index dbd1b36..dad2328 100644 --- a/resources/i18n/pt-BR/menus.json +++ b/resources/i18n/pt-BR/menus.json @@ -41,7 +41,6 @@ "payloads": { "dl_payloads": "Baixar payloads", "select": " Selecione a payload que deseja.", - "not_found": "Não foi possível encontrar um link de download, certifique-se de que seu Switch tenha acesso à Internet.\nSe o problema persistir, abra um 'issue' no GitHub.", "set_reboot_payload": "Colocar como reboot_payload.bin", "set_update_bin": "Colocar como /bootloader/update.bin", "copy_success": "Cópia realizada '", diff --git a/source/app_page.cpp b/source/app_page.cpp index ac95c6f..9f4d801 100644 --- a/source/app_page.cpp +++ b/source/app_page.cpp @@ -313,7 +313,14 @@ void AppPage_DownloadedCheats::GetExistingCheatsTids() AppPage_OutdatedTitles::AppPage_OutdatedTitles() : AppPage() { download::getRequest(LOOKUP_TABLE_URL, versions); - this->PopulatePage(); + if(versions.empty()) + { + list->addView(new brls::Label(brls::LabelStyle::DESCRIPTION, "menus/main/links_not_found"_i18n, true)); + this->setContentView(list); + } + else { + this->PopulatePage(); + } } void AppPage_OutdatedTitles::AddListItem(const std::string& name, u64 tid) diff --git a/source/download_payload_page.cpp b/source/download_payload_page.cpp index 4befc71..07e5863 100644 --- a/source/download_payload_page.cpp +++ b/source/download_payload_page.cpp @@ -43,7 +43,7 @@ DownloadPayloadPage::DownloadPayloadPage(const nlohmann::ordered_json& payloads) else { notFound = new brls::Label( brls::LabelStyle::DESCRIPTION, - "menus/payloads/not_found"_i18n, + "menus/main/links_not_found"_i18n, true); notFound->setHorizontalAlign(NVG_ALIGN_CENTER); list->addView(notFound);