From 797e4c773e978176e9f979d4c8de7b78f1f6fde4 Mon Sep 17 00:00:00 2001 From: Stevie Robinson Date: Tue, 27 Feb 2024 05:30:58 +0000 Subject: [PATCH] Replace URLs in translations with tokens (cherry picked from commit 98d60e1a8e9abce6b31b3cdd745eff0fed181458) --- .../Components/FileBrowser/FileBrowserModalContent.js | 4 ++-- .../Specifications/EditSpecificationModalContent.js | 11 ++++++----- .../Specifications/EditSpecificationModalContent.js | 4 ++-- src/NzbDrone.Core/Localization/Core/ca.json | 2 +- src/NzbDrone.Core/Localization/Core/da.json | 2 +- src/NzbDrone.Core/Localization/Core/de.json | 4 ++-- src/NzbDrone.Core/Localization/Core/en.json | 5 +++-- src/NzbDrone.Core/Localization/Core/es.json | 4 ++-- src/NzbDrone.Core/Localization/Core/fi.json | 4 ++-- src/NzbDrone.Core/Localization/Core/fr.json | 4 ++-- src/NzbDrone.Core/Localization/Core/hu.json | 4 ++-- src/NzbDrone.Core/Localization/Core/it.json | 2 +- src/NzbDrone.Core/Localization/Core/nl.json | 2 +- src/NzbDrone.Core/Localization/Core/pt_BR.json | 4 ++-- src/NzbDrone.Core/Localization/Core/tr.json | 4 ++-- src/NzbDrone.Core/Localization/Core/zh_CN.json | 4 ++-- 16 files changed, 33 insertions(+), 31 deletions(-) diff --git a/frontend/src/Components/FileBrowser/FileBrowserModalContent.js b/frontend/src/Components/FileBrowser/FileBrowserModalContent.js index 0e4d6a015..dff1fbf6e 100644 --- a/frontend/src/Components/FileBrowser/FileBrowserModalContent.js +++ b/frontend/src/Components/FileBrowser/FileBrowserModalContent.js @@ -3,8 +3,8 @@ import React, { Component } from 'react'; import Alert from 'Components/Alert'; import PathInput from 'Components/Form/PathInput'; import Button from 'Components/Link/Button'; -import Link from 'Components/Link/Link'; import LoadingIndicator from 'Components/Loading/LoadingIndicator'; +import InlineMarkdown from 'Components/Markdown/InlineMarkdown'; import ModalBody from 'Components/Modal/ModalBody'; import ModalContent from 'Components/Modal/ModalContent'; import ModalFooter from 'Components/Modal/ModalFooter'; @@ -117,7 +117,7 @@ class FileBrowserModalContent extends Component { className={styles.mappedDrivesWarning} kind={kinds.WARNING} > - Mapped network drives are not available when running as a Windows Service, see the FAQ for more information. + } diff --git a/frontend/src/Settings/CustomFormats/CustomFormats/Specifications/EditSpecificationModalContent.js b/frontend/src/Settings/CustomFormats/CustomFormats/Specifications/EditSpecificationModalContent.js index 02a31eda7..19aae4694 100644 --- a/frontend/src/Settings/CustomFormats/CustomFormats/Specifications/EditSpecificationModalContent.js +++ b/frontend/src/Settings/CustomFormats/CustomFormats/Specifications/EditSpecificationModalContent.js @@ -7,8 +7,8 @@ import FormInputGroup from 'Components/Form/FormInputGroup'; import FormLabel from 'Components/Form/FormLabel'; import ProviderFieldFormGroup from 'Components/Form/ProviderFieldFormGroup'; import Button from 'Components/Link/Button'; -import Link from 'Components/Link/Link'; import SpinnerErrorButton from 'Components/Link/SpinnerErrorButton'; +import InlineMarkdown from 'Components/Markdown/InlineMarkdown'; import ModalBody from 'Components/Modal/ModalBody'; import ModalContent from 'Components/Modal/ModalContent'; import ModalFooter from 'Components/Modal/ModalFooter'; @@ -52,12 +52,13 @@ function EditSpecificationModalContent(props) { fields && fields.some((x) => x.label === translate('CustomFormatsSpecificationRegularExpression')) &&
-
\\^$.|?*+()[{ have special meanings and need escaping with a \\' }} /> - {'More details'} {'Here'} +
- {'Regular expressions can be tested '} - Here + +
+
+
} diff --git a/frontend/src/Settings/Tags/AutoTagging/Specifications/EditSpecificationModalContent.js b/frontend/src/Settings/Tags/AutoTagging/Specifications/EditSpecificationModalContent.js index 2ab1e4a1c..04302729b 100644 --- a/frontend/src/Settings/Tags/AutoTagging/Specifications/EditSpecificationModalContent.js +++ b/frontend/src/Settings/Tags/AutoTagging/Specifications/EditSpecificationModalContent.js @@ -86,10 +86,10 @@ function EditSpecificationModalContent(props) {
- +
- +
} diff --git a/src/NzbDrone.Core/Localization/Core/ca.json b/src/NzbDrone.Core/Localization/Core/ca.json index 141e08d94..42dce3dc6 100644 --- a/src/NzbDrone.Core/Localization/Core/ca.json +++ b/src/NzbDrone.Core/Localization/Core/ca.json @@ -905,7 +905,7 @@ "ChangeCategory": "Canvia categoria", "ChangeCategoryHint": "Canvia la baixada a la \"Categoria post-importació\" des del client de descàrrega", "ChangeCategoryMultipleHint": "Canvia les baixades a la \"Categoria post-importació\" des del client de descàrrega", - "RegularExpressionsCanBeTested": "Les expressions regulars es poden provar [aquí](http://regexstorm.net/tester).", + "RegularExpressionsCanBeTested": "Les expressions regulars es poden provar [aquí]({url}).", "CustomFormatsSpecificationRegularExpression": "Expressió regular", "BlocklistMultipleOnlyHint": "Afegeix a la llista de bloqueig sense cercar substituts", "BlocklistOnly": "Sols afegir a la llista de bloqueig", diff --git a/src/NzbDrone.Core/Localization/Core/da.json b/src/NzbDrone.Core/Localization/Core/da.json index ff449397c..a557dd20a 100644 --- a/src/NzbDrone.Core/Localization/Core/da.json +++ b/src/NzbDrone.Core/Localization/Core/da.json @@ -785,7 +785,7 @@ "Clone": "Luk", "AddReleaseProfile": "Rediger forsinkelsesprofil", "AddDelayProfileError": "Kan ikke tilføje en ny forsinkelsesprofil. Prøv igen.", - "RegularExpressionsCanBeTested": "Regulære udtryk kan testes [her](http://regexstorm.net/tester).", + "RegularExpressionsCanBeTested": "Regulære udtryk kan testes [her]({url}).", "AddToDownloadQueue": "Føj til downloadkø", "AddedToDownloadQueue": "Føjet til downloadkø" } diff --git a/src/NzbDrone.Core/Localization/Core/de.json b/src/NzbDrone.Core/Localization/Core/de.json index f4e73212f..d36ac9047 100644 --- a/src/NzbDrone.Core/Localization/Core/de.json +++ b/src/NzbDrone.Core/Localization/Core/de.json @@ -1016,7 +1016,7 @@ "DownloadClientPriorityHelpText": "Download-Client-Priorität von 1 (Höchste) bis 50 (Niedrigste). Standard: 1. Round-Robin wird für Clients mit der gleichen Priorität verwendet.", "IgnoreDownload": "Download ignorieren", "IgnoreDownloadHint": "Hält {appName} von der weiteren Verarbeitung dieses Downloads ab", - "RegularExpressionsCanBeTested": "Reguläre Ausdrücke können [hier](http://regexstorm.net/tester) getestet werden.", + "RegularExpressionsCanBeTested": "Reguläre Ausdrücke können [hier]({url}) getestet werden.", "CustomFormatsSettingsTriggerInfo": "Ein Eigenes Format wird auf eine Veröffentlichung oder Datei angewandt, wenn sie mindestens einer der verschiedenen ausgewählten Bedingungen entspricht.", "ConnectionSettingsUrlBaseHelpText": "Fügt ein Präfix zur {connectionName} URL hinzu, z. B. {url}", "DownloadClientDelugeSettingsDirectory": "Download Verzeichnis", @@ -1043,7 +1043,7 @@ "MonitorFutureAlbums": "Zukünftige Alben", "Negated": "Negiert", "OverviewOptions": "Überblick-Optionen", - "RegularExpressionsTutorialLink": "Weitere Details zu regulären Ausdrücken finden Sie [hier](https://www.regular-expressions.info/tutorial.html).", + "RegularExpressionsTutorialLink": "Weitere Details zu regulären Ausdrücken finden Sie [hier]({url}).", "UseSsl": "SSL verwenden", "DownloadClientsSettingsSummary": "Download Clients, Download-Verwaltung und Remote-Pfadzuordnungen", "EditConditionImplementation": "Bedingung bearbeiten - {implementationName}", diff --git a/src/NzbDrone.Core/Localization/Core/en.json b/src/NzbDrone.Core/Localization/Core/en.json index 91ef5f5aa..1c3ec897b 100644 --- a/src/NzbDrone.Core/Localization/Core/en.json +++ b/src/NzbDrone.Core/Localization/Core/en.json @@ -701,6 +701,7 @@ "Manual": "Manual", "ManualDownload": "Manual Download", "ManualImport": "Manual Import", + "MappedNetworkDrivesWindowsService": "Mapped network drives are not available when running as a Windows Service, see the [FAQ]({url}) for more information.", "MarkAsFailed": "Mark as Failed", "MarkAsFailedMessageText": "Are you sure you want to mark '{0}' as failed?", "MassAlbumsCutoffUnmetWarning": "Are you sure you want to search for all '{0}' Cutoff Unmet albums?", @@ -954,8 +955,8 @@ "RefreshArtist": "Refresh Artist", "RefreshInformationAndScanDisk": "Refresh information and scan disk", "RefreshScan": "Refresh & Scan", - "RegularExpressionsCanBeTested": "Regular expressions can be tested [here](http://regexstorm.net/tester).", - "RegularExpressionsTutorialLink": "More details on regular expressions can be found [here](https://www.regular-expressions.info/tutorial.html).", + "RegularExpressionsCanBeTested": "Regular expressions can be tested [here]({url}).", + "RegularExpressionsTutorialLink": "More details on regular expressions can be found [here]({url}).", "RejectionCount": "Rejection Count", "Rejections": "Rejections", "Release": " Release", diff --git a/src/NzbDrone.Core/Localization/Core/es.json b/src/NzbDrone.Core/Localization/Core/es.json index 6ed8dc2cd..c9810235b 100644 --- a/src/NzbDrone.Core/Localization/Core/es.json +++ b/src/NzbDrone.Core/Localization/Core/es.json @@ -1066,7 +1066,7 @@ "WriteMetadataTags": "Escribir etiquetas de metadatos", "FutureDays": "Días futuros", "IsExpandedHideFileInfo": "Esconder información de archivo", - "RegularExpressionsCanBeTested": "Las expresiones regulares pueden ser probadas [aquí](http://regexstorm.net/tester).", + "RegularExpressionsCanBeTested": "Las expresiones regulares pueden ser probadas [aquí]({url}).", "WatchRootFoldersForFileChanges": "Supervisar las carpetas raíz para cambios de archivos", "DeleteMetadataProfile": "Eliminar el perfil de metadatos", "IndexerIdHelpTextWarning": "Usar un indexador específico con palabras preferidas puede provocar que se capturen lanzamientos duplicados", @@ -1096,7 +1096,7 @@ "PreviewRetag": "Vista previa de reetiquetado", "EntityName": "Nombre de entidad", "ExistingTagsScrubbed": "Etiquetas existentes borradas", - "RegularExpressionsTutorialLink": "Más detalles de las expresiones regulares pueden ser encontrados [aquí](https://www.regular-expressions.info/tutorial.html).", + "RegularExpressionsTutorialLink": "Más detalles de las expresiones regulares pueden ser encontrados [aquí]({url}).", "OnDownloadFailure": "En fallo de descarga", "DiscNumber": "Número de disco", "EditMetadata": "Editar metadatos", diff --git a/src/NzbDrone.Core/Localization/Core/fi.json b/src/NzbDrone.Core/Localization/Core/fi.json index 5860b4374..c10f01a1c 100644 --- a/src/NzbDrone.Core/Localization/Core/fi.json +++ b/src/NzbDrone.Core/Localization/Core/fi.json @@ -1067,7 +1067,7 @@ "ImportListRootFolderMissingRootHealthCheckMessage": "Tuontilistalta tai -listoilta puuttuu juurikansio: {0}.", "HiddenClickToShow": "Piilotettu, näytä painamalla tästä", "Dash": "Yhdysmerkki", - "RegularExpressionsCanBeTested": "Säännöllisiä lausekkeita voidaan testata [täällä](http://regexstorm.net/tester).", + "RegularExpressionsCanBeTested": "Säännöllisiä lausekkeita voidaan testata [täällä]({url}).", "MonitorArtists": "Valvo esittäjiä", "ChooseImportMethod": "Valitse tuontitapa", "NoCutoffUnmetItems": "Katkaisutasoa saavuttamattomia kohteita ei ole.", @@ -1089,7 +1089,7 @@ "RootFolderPathHelpText": "Juurikansio, johon listan kohteet lisätään.", "Space": "Välilyönti", "Underscore": "Alaviiva", - "RegularExpressionsTutorialLink": "Lisätietoja säännöllisistä lausekkeista löytyy [täältä](https://www.regular-expressions.info/tutorial.html).", + "RegularExpressionsTutorialLink": "Lisätietoja säännöllisistä lausekkeista löytyy [täältä]({url}).", "RootFolderCheckSingleMessage": "Juurikansio puuttuu: {0}.", "UpdateCheckStartupTranslocationMessage": "Päivitystä ei voida asentaa, koska käynnistyskansio \"{0}\" sijaitsee \"App Translocation\" -kansiossa.", "RemovingTag": "Tunniste poistetaan", diff --git a/src/NzbDrone.Core/Localization/Core/fr.json b/src/NzbDrone.Core/Localization/Core/fr.json index e373b22e8..41603ccf9 100644 --- a/src/NzbDrone.Core/Localization/Core/fr.json +++ b/src/NzbDrone.Core/Localization/Core/fr.json @@ -1098,7 +1098,7 @@ "AddCondition": "Ajouter une condition", "AddConditionError": "Impossible d'ajouter une nouvelle condition, veuillez réessayer.", "QueueFilterHasNoItems": "Le filtre de file d'attente sélectionné ne contient aucun élément", - "RegularExpressionsTutorialLink": "Vous trouverez plus de détails sur les expressions régulières [ici](https://www.regular-expressions.info/tutorial.html).", + "RegularExpressionsTutorialLink": "Vous trouverez plus de détails sur les expressions régulières [ici]({url}).", "ReleaseProfile": "Profil de version", "RenameFiles": "Renommer les fichiers", "AutoTagging": "Balisage automatique", @@ -1118,7 +1118,7 @@ "EditAutoTag": "Modifier la balise automatique", "Negate": "Nier", "OverviewOptions": "Options de présentation", - "RegularExpressionsCanBeTested": "Les expressions régulières peuvent être testées [ici](http://regexstorm.net/tester).", + "RegularExpressionsCanBeTested": "Les expressions régulières peuvent être testées [ici]({url}).", "DownloadClientQbittorrentSettingsContentLayout": "Disposition du contenu", "NoLimitForAnyDuration": "Aucune limite pour aucune durée d'exécution", "NoMinimumForAnyDuration": "Aucun minimum pour aucune durée d'exécution", diff --git a/src/NzbDrone.Core/Localization/Core/hu.json b/src/NzbDrone.Core/Localization/Core/hu.json index ea5499860..a6e8199b1 100644 --- a/src/NzbDrone.Core/Localization/Core/hu.json +++ b/src/NzbDrone.Core/Localization/Core/hu.json @@ -1005,7 +1005,7 @@ "Negate": "Negatív", "NoResultsFound": "Nincs találat", "RecentChanges": "Friss változások", - "RegularExpressionsCanBeTested": "A reguláris kifejezések [here] tesztelhetők (http://regexstorm.net/tester).", + "RegularExpressionsCanBeTested": "A reguláris kifejezések [here] tesztelhetők ({url}).", "EditConnectionImplementation": "Kapcsolat szerkesztése - {implementationName}", "ExtraFileExtensionsHelpTextsExamples": "Példák: \".sub, .nfo\" vagy \"sub,nfo\"", "ConnectionLostReconnect": "A(z) {appName} automatikusan megpróbál csatlakozni, vagy kattintson az újratöltés gombra lent.", @@ -1101,7 +1101,7 @@ "MinimumCustomFormatScoreHelpText": "Minimális egyéni formátum pontszám a preferált protokoll késleltetésének megkerüléséhez", "RemoveFromDownloadClientHint": "Távolítsa el a letöltést és a fájlokat) a letöltési kliensből", "RemoveQueueItemsRemovalMethodHelpTextWarning": "Az „Eltávolítás a letöltési kliensből” eltávolítja a letöltéseket és a fájlokat a letöltési kliensből.", - "RegularExpressionsTutorialLink": "További részletek a reguláris kifejezésekről [itt](https://www.regular-expressions.info/tutorial.html).", + "RegularExpressionsTutorialLink": "További részletek a reguláris kifejezésekről [itt]({url}).", "QueueFilterHasNoItems": "A kiválasztott sorszűrőben nincsenek elemek", "PosterOptions": "Poszter opciók", "Posters": "Poszterek", diff --git a/src/NzbDrone.Core/Localization/Core/it.json b/src/NzbDrone.Core/Localization/Core/it.json index a5ffc2acc..7855e262e 100644 --- a/src/NzbDrone.Core/Localization/Core/it.json +++ b/src/NzbDrone.Core/Localization/Core/it.json @@ -881,7 +881,7 @@ "ArtistIndexFooterDownloading": "Scaricando", "KeyboardShortcuts": "Scorciatoie Tastiera", "Links": "Collegamenti", - "RegularExpressionsCanBeTested": "Le espressioni regolari possono essere testate [qui](http://regexstorm.net/tester).", + "RegularExpressionsCanBeTested": "Le espressioni regolari possono essere testate [qui]({url}).", "AddListExclusion": "Aggiungi elenco esclusioni", "AddToDownloadQueue": "Aggiungi alla coda di download", "AddedToDownloadQueue": "Aggiunto alla coda di download", diff --git a/src/NzbDrone.Core/Localization/Core/nl.json b/src/NzbDrone.Core/Localization/Core/nl.json index 98588964a..cba23376a 100644 --- a/src/NzbDrone.Core/Localization/Core/nl.json +++ b/src/NzbDrone.Core/Localization/Core/nl.json @@ -840,7 +840,7 @@ "FormatAgeMinutes": "minuten", "ClearBlocklistMessageText": "Weet je zeker dat je de blokkeerlijst wil legen?", "ChangeCategory": "Verander categorie", - "RegularExpressionsCanBeTested": "Reguliere expressies kunnen [hier] worden getest (http:://regexstorm.net/tester).", + "RegularExpressionsCanBeTested": "Reguliere expressies kunnen [hier] worden getest ({url}).", "AutomaticUpdatesDisabledDocker": "Automatische updates zijn niet ondersteund wanneer je het docker update mechanisme gebruikt. Je dient de container image up te daten buiten {appName} om of een script te gebruiken", "ChownGroup": "chown groep", "AddAlbumWithTitle": "Toevoegen", diff --git a/src/NzbDrone.Core/Localization/Core/pt_BR.json b/src/NzbDrone.Core/Localization/Core/pt_BR.json index 3dba2f712..ace24dc09 100644 --- a/src/NzbDrone.Core/Localization/Core/pt_BR.json +++ b/src/NzbDrone.Core/Localization/Core/pt_BR.json @@ -1106,8 +1106,8 @@ "UpdateFiltered": "Atualização Filtrada", "ConditionUsingRegularExpressions": "Esta condição corresponde ao uso de Expressões Regulares. Observe que os caracteres `\\^$.|?*+()[{` têm significados especiais e precisam de escape com um `\\`", "ImportList": "Importar lista", - "RegularExpressionsCanBeTested": "Expressões regulares podem ser testadas [aqui](http://regexstorm.net/tester).", - "RegularExpressionsTutorialLink": "Mais detalhes sobre expressões regulares podem ser encontrados [aqui](https://www.regular-expressions.info/tutorial.html).", + "RegularExpressionsCanBeTested": "Expressões regulares podem ser testadas [aqui]({url}).", + "RegularExpressionsTutorialLink": "Mais detalhes sobre expressões regulares podem ser encontrados [aqui]({url}).", "AddAutoTag": "Adicionar etiqueta automática", "AddAutoTagError": "Não foi possível adicionar uma nova etiqueta automática, tente novamente.", "AutoTaggingNegateHelpText": "Se marcada, a regra de etiquetas automáticas não será aplicada se corresponder à condição {implementationName}.", diff --git a/src/NzbDrone.Core/Localization/Core/tr.json b/src/NzbDrone.Core/Localization/Core/tr.json index b678875e5..5d9d86d2e 100644 --- a/src/NzbDrone.Core/Localization/Core/tr.json +++ b/src/NzbDrone.Core/Localization/Core/tr.json @@ -814,7 +814,7 @@ "DownloadClientAriaSettingsDirectoryHelpText": "İndirilenlerin yerleştirileceği isteğe bağlı konum, varsayılan Aria2 konumunu kullanmak için boş bırakın", "Database": "Veri tabanı", "DeleteRootFolder": "Kök Klasörü Sil", - "RegularExpressionsCanBeTested": "Düzenli ifadeler [burada](http://regexstorm.net/tester) test edilebilir.", + "RegularExpressionsCanBeTested": "Düzenli ifadeler [burada]({url}) test edilebilir.", "AutoTaggingSpecificationTag": "Etiket", "DoNotBlocklistHint": "Engellenenler listesine eklemeden kaldır", "DownloadClientDelugeSettingsDirectory": "İndirme Dizini", @@ -943,7 +943,7 @@ "RemoveTagsAutomatically": "Otomatik Etiketlemeyi Kaldır", "Started": "Başlatıldı", "RemoveFailedDownloads": "Başarısız İndirmeleri Kaldır", - "RegularExpressionsTutorialLink": "Düzenli ifadeler hakkında daha fazla ayrıntıyı [burada](https://www.regular-expressions.info/tutorial.html) bulabilirsiniz.", + "RegularExpressionsTutorialLink": "Düzenli ifadeler hakkında daha fazla ayrıntıyı [burada]({url}) bulabilirsiniz.", "SelectReleaseGroup": "Yayımlama Grubunu Seçin", "QueueFilterHasNoItems": "Seçilen kuyruk filtresinde hiç öğe yok", "NotificationsSettingsUpdateMapPathsFrom": "Harita Yolları", diff --git a/src/NzbDrone.Core/Localization/Core/zh_CN.json b/src/NzbDrone.Core/Localization/Core/zh_CN.json index a2c19697b..5f58a179d 100644 --- a/src/NzbDrone.Core/Localization/Core/zh_CN.json +++ b/src/NzbDrone.Core/Localization/Core/zh_CN.json @@ -1092,7 +1092,7 @@ "Large": "大", "Negate": "反选", "QueueFilterHasNoItems": "所选的队列过滤器中无项目", - "RegularExpressionsCanBeTested": "正则表达式可在 [此处](http://regexstorm.net/tester) 测试。", + "RegularExpressionsCanBeTested": "正则表达式可在 [此处]({url}) 测试。", "ReleaseProfile": "发行配置文件", "RemoveTagsAutomatically": "自动移除标签", "RemoveTagsAutomaticallyHelpText": "如果条件不满足,则自动移除标签", @@ -1108,7 +1108,7 @@ "DeleteAutoTag": "删除自动标签", "ImportList": "导入列表", "MonitorArtists": "监控歌手", - "RegularExpressionsTutorialLink": "有关正则表达式的更多详细信息,请参阅[此处](https://www.regular-expressions.info/tutorial.html)。", + "RegularExpressionsTutorialLink": "有关正则表达式的更多详细信息,请参阅[此处]({url})。", "DeleteArtistFolderHelpText": "删除站点文件夹及其内容", "DeleteArtistFoldersHelpText": "删除剧集文件夹及其所含文件", "DeleteAutoTagHelpText": "您确定要删除 “{name}” 自动标签吗?",