1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-10-29 23:12:39 +01:00

Fix settings fetching failure for updates

This commit is contained in:
Bogdan 2024-10-20 04:52:01 +03:00 committed by Mark McDowall
parent 404e6d68ea
commit fcf68d9259
10 changed files with 22 additions and 16 deletions

View File

@ -77,7 +77,7 @@ function Updates() {
const hasUpdates = isPopulated && !hasError && items.length > 0; const hasUpdates = isPopulated && !hasError && items.length > 0;
const noUpdates = isPopulated && !hasError && !items.length; const noUpdates = isPopulated && !hasError && !items.length;
const externalUpdaterPrefix = translate('UpdateSonarrDirectlyLoadError'); const externalUpdaterPrefix = translate('UpdateAppDirectlyLoadError');
const externalUpdaterMessages: Partial<Record<UpdateMechanism, string>> = { const externalUpdaterMessages: Partial<Record<UpdateMechanism, string>> = {
external: translate('ExternalUpdater'), external: translate('ExternalUpdater'),
apt: translate('AptUpdater'), apt: translate('AptUpdater'),
@ -262,10 +262,16 @@ function Updates() {
</div> </div>
)} )}
{updatesError ? <div>{translate('FailedToFetchUpdates')}</div> : null} {updatesError ? (
<Alert kind={kinds.WARNING}>
{translate('FailedToFetchUpdates')}
</Alert>
) : null}
{generalSettingsError ? ( {generalSettingsError ? (
<div>{translate('FailedToUpdateSettings')}</div> <Alert kind={kinds.DANGER}>
{translate('FailedToFetchSettings')}
</Alert>
) : null} ) : null}
<ConfirmModal <ConfirmModal

View File

@ -620,7 +620,7 @@
"TorrentDelayTime": "Torrent-Verzögerung: {torrentDelay}", "TorrentDelayTime": "Torrent-Verzögerung: {torrentDelay}",
"TorrentBlackholeTorrentFolder": "Torrent-Ordner", "TorrentBlackholeTorrentFolder": "Torrent-Ordner",
"UpdateStartupNotWritableHealthCheckMessage": "Das Update kann nicht installiert werden, da der Startordner „{startupFolder}“ für den Benutzer „{userName}“ nicht beschreibbar ist.", "UpdateStartupNotWritableHealthCheckMessage": "Das Update kann nicht installiert werden, da der Startordner „{startupFolder}“ für den Benutzer „{userName}“ nicht beschreibbar ist.",
"UpdateSonarrDirectlyLoadError": "{appName} kann nicht direkt aktualisiert werden.", "UpdateAppDirectlyLoadError": "{appName} kann nicht direkt aktualisiert werden.",
"UpdateStartupTranslocationHealthCheckMessage": "Das Update kann nicht installiert werden, da sich der Startordner „{startupFolder}“ in einem App Translocation-Ordner befindet.", "UpdateStartupTranslocationHealthCheckMessage": "Das Update kann nicht installiert werden, da sich der Startordner „{startupFolder}“ in einem App Translocation-Ordner befindet.",
"Uptime": "Betriebszeit", "Uptime": "Betriebszeit",
"UpgradesAllowed": "Upgrades erlaubt", "UpgradesAllowed": "Upgrades erlaubt",

View File

@ -288,10 +288,10 @@
"CustomFormatsSettings": "Custom Formats Settings", "CustomFormatsSettings": "Custom Formats Settings",
"CustomFormatsSettingsSummary": "Custom Formats and Settings", "CustomFormatsSettingsSummary": "Custom Formats and Settings",
"CustomFormatsSettingsTriggerInfo": "A Custom Format will be applied to a release or file when it matches at least one of each of the different condition types chosen.", "CustomFormatsSettingsTriggerInfo": "A Custom Format will be applied to a release or file when it matches at least one of each of the different condition types chosen.",
"CustomFormatsSpecificationFlag": "Flag",
"CustomFormatsSpecificationLanguage": "Language",
"CustomFormatsSpecificationExceptLanguage": "Except Language", "CustomFormatsSpecificationExceptLanguage": "Except Language",
"CustomFormatsSpecificationExceptLanguageHelpText": "Matches if any language other than the selected language is present", "CustomFormatsSpecificationExceptLanguageHelpText": "Matches if any language other than the selected language is present",
"CustomFormatsSpecificationFlag": "Flag",
"CustomFormatsSpecificationLanguage": "Language",
"CustomFormatsSpecificationMaximumSize": "Maximum Size", "CustomFormatsSpecificationMaximumSize": "Maximum Size",
"CustomFormatsSpecificationMaximumSizeHelpText": "Release must be less than or equal to this size", "CustomFormatsSpecificationMaximumSizeHelpText": "Release must be less than or equal to this size",
"CustomFormatsSpecificationMinimumSize": "Minimum Size", "CustomFormatsSpecificationMinimumSize": "Minimum Size",
@ -679,6 +679,7 @@
"ExtraFileExtensionsHelpText": "Comma separated list of extra files to import (.nfo will be imported as .nfo-orig)", "ExtraFileExtensionsHelpText": "Comma separated list of extra files to import (.nfo will be imported as .nfo-orig)",
"ExtraFileExtensionsHelpTextsExamples": "Examples: '.sub, .nfo' or 'sub,nfo'", "ExtraFileExtensionsHelpTextsExamples": "Examples: '.sub, .nfo' or 'sub,nfo'",
"Failed": "Failed", "Failed": "Failed",
"FailedToFetchSettings": "Failed to fetch settings",
"FailedToFetchUpdates": "Failed to fetch updates", "FailedToFetchUpdates": "Failed to fetch updates",
"FailedToLoadCustomFiltersFromApi": "Failed to load custom filters from API", "FailedToLoadCustomFiltersFromApi": "Failed to load custom filters from API",
"FailedToLoadQualityProfilesFromApi": "Failed to load quality profiles from API", "FailedToLoadQualityProfilesFromApi": "Failed to load quality profiles from API",
@ -688,7 +689,6 @@
"FailedToLoadTagsFromApi": "Failed to load tags from API", "FailedToLoadTagsFromApi": "Failed to load tags from API",
"FailedToLoadTranslationsFromApi": "Failed to load translations from API", "FailedToLoadTranslationsFromApi": "Failed to load translations from API",
"FailedToLoadUiSettingsFromApi": "Failed to load UI settings from API", "FailedToLoadUiSettingsFromApi": "Failed to load UI settings from API",
"FailedToUpdateSettings": "Failed to update settings",
"False": "False", "False": "False",
"FeatureRequests": "Feature Requests", "FeatureRequests": "Feature Requests",
"File": "File", "File": "File",
@ -1347,11 +1347,11 @@
"NotificationsGotifySettingIncludeSeriesPosterHelpText": "Include series poster in message", "NotificationsGotifySettingIncludeSeriesPosterHelpText": "Include series poster in message",
"NotificationsGotifySettingsAppToken": "App Token", "NotificationsGotifySettingsAppToken": "App Token",
"NotificationsGotifySettingsAppTokenHelpText": "The Application Token generated by Gotify", "NotificationsGotifySettingsAppTokenHelpText": "The Application Token generated by Gotify",
"NotificationsGotifySettingsPriorityHelpText": "Priority of the notification",
"NotificationsGotifySettingsMetadataLinks": "Metadata Links", "NotificationsGotifySettingsMetadataLinks": "Metadata Links",
"NotificationsGotifySettingsMetadataLinksHelpText": "Add a links to series metadata when sending notifications", "NotificationsGotifySettingsMetadataLinksHelpText": "Add a links to series metadata when sending notifications",
"NotificationsGotifySettingsPreferredMetadataLink": "Preferred Metadata Link", "NotificationsGotifySettingsPreferredMetadataLink": "Preferred Metadata Link",
"NotificationsGotifySettingsPreferredMetadataLinkHelpText": "Metadata link for clients that only support a single link", "NotificationsGotifySettingsPreferredMetadataLinkHelpText": "Metadata link for clients that only support a single link",
"NotificationsGotifySettingsPriorityHelpText": "Priority of the notification",
"NotificationsGotifySettingsServer": "Gotify Server", "NotificationsGotifySettingsServer": "Gotify Server",
"NotificationsGotifySettingsServerHelpText": "Gotify server URL, including http(s):// and port if needed", "NotificationsGotifySettingsServerHelpText": "Gotify server URL, including http(s):// and port if needed",
"NotificationsJoinSettingsApiKeyHelpText": "The API Key from your Join account settings (click Join API button).", "NotificationsJoinSettingsApiKeyHelpText": "The API Key from your Join account settings (click Join API button).",
@ -2058,6 +2058,7 @@
"Upcoming": "Upcoming", "Upcoming": "Upcoming",
"UpcomingSeriesDescription": "Series has been announced but no exact air date yet", "UpcomingSeriesDescription": "Series has been announced but no exact air date yet",
"UpdateAll": "Update All", "UpdateAll": "Update All",
"UpdateAppDirectlyLoadError": "Unable to update {appName} directly,",
"UpdateAutomaticallyHelpText": "Automatically download and install updates. You will still be able to install from System: Updates", "UpdateAutomaticallyHelpText": "Automatically download and install updates. You will still be able to install from System: Updates",
"UpdateAvailableHealthCheckMessage": "New update is available: {version}", "UpdateAvailableHealthCheckMessage": "New update is available: {version}",
"UpdateFiltered": "Update Filtered", "UpdateFiltered": "Update Filtered",
@ -2065,7 +2066,6 @@
"UpdateMonitoring": "Update Monitoring", "UpdateMonitoring": "Update Monitoring",
"UpdateScriptPathHelpText": "Path to a custom script that takes an extracted update package and handle the remainder of the update process", "UpdateScriptPathHelpText": "Path to a custom script that takes an extracted update package and handle the remainder of the update process",
"UpdateSelected": "Update Selected", "UpdateSelected": "Update Selected",
"UpdateSonarrDirectlyLoadError": "Unable to update {appName} directly,",
"UpdateStartupNotWritableHealthCheckMessage": "Cannot install update because startup folder '{startupFolder}' is not writable by the user '{userName}'.", "UpdateStartupNotWritableHealthCheckMessage": "Cannot install update because startup folder '{startupFolder}' is not writable by the user '{userName}'.",
"UpdateStartupTranslocationHealthCheckMessage": "Cannot install update because startup folder '{startupFolder}' is in an App Translocation folder.", "UpdateStartupTranslocationHealthCheckMessage": "Cannot install update because startup folder '{startupFolder}' is in an App Translocation folder.",
"UpdateUiNotWritableHealthCheckMessage": "Cannot install update because UI folder '{uiFolder}' is not writable by the user '{userName}'.", "UpdateUiNotWritableHealthCheckMessage": "Cannot install update because UI folder '{uiFolder}' is not writable by the user '{userName}'.",

View File

@ -1576,7 +1576,7 @@
"ShowPath": "Mostrar ruta", "ShowPath": "Mostrar ruta",
"ShowNetwork": "Mostrar red", "ShowNetwork": "Mostrar red",
"TvdbIdExcludeHelpText": "La ID de TVDB de la serie a excluir", "TvdbIdExcludeHelpText": "La ID de TVDB de la serie a excluir",
"UpdateSonarrDirectlyLoadError": "No se pudo actualizar {appName} directamente,", "UpdateAppDirectlyLoadError": "No se pudo actualizar {appName} directamente,",
"UpgradesAllowedHelpText": "Si se deshabilita las calidades no serán actualizadas", "UpgradesAllowedHelpText": "Si se deshabilita las calidades no serán actualizadas",
"WithFiles": "Con archivos", "WithFiles": "Con archivos",
"SystemTimeHealthCheckMessage": "La hora del sistema está desfasada más de 1 día. Las tareas programadas pueden no ejecutarse correctamente hasta que la hora sea corregida", "SystemTimeHealthCheckMessage": "La hora del sistema está desfasada más de 1 día. Las tareas programadas pueden no ejecutarse correctamente hasta que la hora sea corregida",

View File

@ -569,7 +569,7 @@
"UpcomingSeriesDescription": "Sarja on julkistettu, mutta tarkka esitysaika ei ole vielä tiedossa.", "UpcomingSeriesDescription": "Sarja on julkistettu, mutta tarkka esitysaika ei ole vielä tiedossa.",
"UnselectAll": "Tyhjennä valinnat", "UnselectAll": "Tyhjennä valinnat",
"UpdateMonitoring": "Päivitä valvontatila", "UpdateMonitoring": "Päivitä valvontatila",
"UpdateSonarrDirectlyLoadError": "{appName}ia ei voida päivittää suoraan,", "UpdateAppDirectlyLoadError": "{appName}ia ei voida päivittää suoraan,",
"UpgradeUntilThisQualityIsMetOrExceeded": "Päivitä kunnes tämä laatu on savutettu tai ylitetty", "UpgradeUntilThisQualityIsMetOrExceeded": "Päivitä kunnes tämä laatu on savutettu tai ylitetty",
"Updates": "Päivitykset", "Updates": "Päivitykset",
"UpdateSelected": "Päivitä valitut", "UpdateSelected": "Päivitä valitut",

View File

@ -797,7 +797,7 @@
"UnmonitoredOnly": "Non surveillé uniquement", "UnmonitoredOnly": "Non surveillé uniquement",
"UpdateMechanismHelpText": "Utilisez le programme de mise à jour intégré de {appName} ou un script", "UpdateMechanismHelpText": "Utilisez le programme de mise à jour intégré de {appName} ou un script",
"UpdateSelected": "Mise à jour sélectionnée", "UpdateSelected": "Mise à jour sélectionnée",
"UpdateSonarrDirectlyLoadError": "Impossible de mettre à jour directement {appName},", "UpdateAppDirectlyLoadError": "Impossible de mettre à jour directement {appName},",
"UpdateStartupNotWritableHealthCheckMessage": "Impossible d'installer la mise à jour car le dossier de démarrage « {startupFolder} » n'est pas accessible en écriture par l'utilisateur « {userName} ».", "UpdateStartupNotWritableHealthCheckMessage": "Impossible d'installer la mise à jour car le dossier de démarrage « {startupFolder} » n'est pas accessible en écriture par l'utilisateur « {userName} ».",
"UpdateStartupTranslocationHealthCheckMessage": "Impossible d'installer la mise à jour, car le dossier de démarrage « {startupFolder} » se trouve dans un dossier App Translocation.", "UpdateStartupTranslocationHealthCheckMessage": "Impossible d'installer la mise à jour, car le dossier de démarrage « {startupFolder} » se trouve dans un dossier App Translocation.",
"UpdaterLogFiles": "Journaux du programme de mise à jour", "UpdaterLogFiles": "Journaux du programme de mise à jour",

View File

@ -818,7 +818,7 @@
"UnsavedChanges": "Cambiamenti Non Salvati", "UnsavedChanges": "Cambiamenti Non Salvati",
"UnselectAll": "Deseleziona Tutto", "UnselectAll": "Deseleziona Tutto",
"UpdateAll": "Aggiorna Tutto", "UpdateAll": "Aggiorna Tutto",
"UpdateSonarrDirectlyLoadError": "Impossibile aggiornare {appName} direttamente,", "UpdateAppDirectlyLoadError": "Impossibile aggiornare {appName} direttamente,",
"UseSeasonFolderHelpText": "Ordina episodi dentro all cartella della stagione", "UseSeasonFolderHelpText": "Ordina episodi dentro all cartella della stagione",
"VideoCodec": "Codec Video", "VideoCodec": "Codec Video",
"DownloadClientValidationCategoryMissingDetail": "La categoria che ha inserito non esiste in {clientName}. Crealo prima su {clientName}.", "DownloadClientValidationCategoryMissingDetail": "La categoria che ha inserito non esiste in {clientName}. Crealo prima su {clientName}.",

View File

@ -889,7 +889,7 @@
"UnsavedChanges": "Alterações Não Salvas", "UnsavedChanges": "Alterações Não Salvas",
"UpdateAutomaticallyHelpText": "Baixe e instale atualizações automaticamente. Você ainda poderá instalar a partir do Sistema: Atualizações", "UpdateAutomaticallyHelpText": "Baixe e instale atualizações automaticamente. Você ainda poderá instalar a partir do Sistema: Atualizações",
"UpdateMechanismHelpText": "Usar o atualizador integrado do {appName} ou um script", "UpdateMechanismHelpText": "Usar o atualizador integrado do {appName} ou um script",
"UpdateSonarrDirectlyLoadError": "Incapaz de atualizar o {appName} diretamente,", "UpdateAppDirectlyLoadError": "Incapaz de atualizar o {appName} diretamente,",
"UpdateUiNotWritableHealthCheckMessage": "Não é possível instalar a atualização porque a pasta de IU '{uiFolder}' não pode ser salva pelo usuário '{userName}'.", "UpdateUiNotWritableHealthCheckMessage": "Não é possível instalar a atualização porque a pasta de IU '{uiFolder}' não pode ser salva pelo usuário '{userName}'.",
"UpgradeUntil": "Atualizar Até", "UpgradeUntil": "Atualizar Até",
"UpgradeUntilCustomFormatScore": "Atualizar até pontuação de formato personalizado", "UpgradeUntilCustomFormatScore": "Atualizar até pontuação de formato personalizado",

View File

@ -793,7 +793,7 @@
"External": "Внешний", "External": "Внешний",
"Never": "Никогда", "Never": "Никогда",
"Ok": "Ок", "Ok": "Ок",
"UpdateSonarrDirectlyLoadError": "Невозможно обновить {appName} напрямую,", "UpdateAppDirectlyLoadError": "Невозможно обновить {appName} напрямую,",
"WeekColumnHeader": "Заголовок столбца недели", "WeekColumnHeader": "Заголовок столбца недели",
"OrganizeModalHeader": "Упорядочить и переименовать", "OrganizeModalHeader": "Упорядочить и переименовать",
"MultiLanguages": "Многоязычный", "MultiLanguages": "Многоязычный",

View File

@ -1231,7 +1231,7 @@
"UiSettingsLoadError": "无法加载UI设置", "UiSettingsLoadError": "无法加载UI设置",
"UnknownEventTooltip": "未知事件", "UnknownEventTooltip": "未知事件",
"UpdateScriptPathHelpText": "自定义脚本的路径,该脚本处理获取的更新包并处理更新过程的其余部分", "UpdateScriptPathHelpText": "自定义脚本的路径,该脚本处理获取的更新包并处理更新过程的其余部分",
"UpdateSonarrDirectlyLoadError": "无法直接更新{appName}", "UpdateAppDirectlyLoadError": "无法直接更新{appName}",
"View": "查看", "View": "查看",
"Negate": "反选", "Negate": "反选",
"ListTagsHelpText": "从此列表导入时将添加标记", "ListTagsHelpText": "从此列表导入时将添加标记",