From 1bba3957a79b23f3e4388e7c406bfd7ead5902a7 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Sun, 16 Jul 2023 02:04:49 +0300 Subject: [PATCH] Use specific How To Apply Tags per setting section --- .../src/Series/Index/Select/Tags/TagsModalContent.tsx | 9 +++++---- .../DownloadClients/Manage/Tags/TagsModalContent.tsx | 2 +- .../ImportLists/Manage/Tags/TagsModalContent.tsx | 2 +- .../Indexers/Indexers/Manage/Tags/TagsModalContent.tsx | 2 +- src/NzbDrone.Core/Localization/Core/en.json | 4 ++++ 5 files changed, 12 insertions(+), 7 deletions(-) diff --git a/frontend/src/Series/Index/Select/Tags/TagsModalContent.tsx b/frontend/src/Series/Index/Select/Tags/TagsModalContent.tsx index f0f6d28ae..6c19510c0 100644 --- a/frontend/src/Series/Index/Select/Tags/TagsModalContent.tsx +++ b/frontend/src/Series/Index/Select/Tags/TagsModalContent.tsx @@ -16,6 +16,7 @@ import { inputTypes, kinds, sizes } from 'Helpers/Props'; import Series from 'Series/Series'; import createAllSeriesSelector from 'Store/Selectors/createAllSeriesSelector'; import createTagsSelector from 'Store/Selectors/createTagsSelector'; +import translate from 'Utilities/String/translate'; import styles from './TagsModalContent.css'; interface TagsModalContentProps { @@ -97,10 +98,10 @@ function TagsModalContent(props: TagsModalContentProps) { value={applyTags} values={applyTagsOptions} helpTexts={[ - 'How to apply tags to the selected series', - 'Add: Add the tags the existing list of tags', - 'Remove: Remove the entered tags', - 'Replace: Replace the tags with the entered tags (enter no tags to clear all tags)', + translate('ApplyTagsHelpTextHowToApplySeries'), + translate('ApplyTagsHelpTextAdd'), + translate('ApplyTagsHelpTextRemove'), + translate('ApplyTagsHelpTextReplace'), ]} onChange={onApplyTagsChange} /> diff --git a/frontend/src/Settings/DownloadClients/DownloadClients/Manage/Tags/TagsModalContent.tsx b/frontend/src/Settings/DownloadClients/DownloadClients/Manage/Tags/TagsModalContent.tsx index 65827ec15..98f33c109 100644 --- a/frontend/src/Settings/DownloadClients/DownloadClients/Manage/Tags/TagsModalContent.tsx +++ b/frontend/src/Settings/DownloadClients/DownloadClients/Manage/Tags/TagsModalContent.tsx @@ -103,7 +103,7 @@ function TagsModalContent(props: TagsModalContentProps) { value={applyTags} values={applyTagsOptions} helpTexts={[ - translate('ApplyTagsHelpTextHowToApply'), + translate('ApplyTagsHelpTextHowToApplyDownloadClients'), translate('ApplyTagsHelpTextAdd'), translate('ApplyTagsHelpTextRemove'), translate('ApplyTagsHelpTextReplace'), diff --git a/frontend/src/Settings/ImportLists/ImportLists/Manage/Tags/TagsModalContent.tsx b/frontend/src/Settings/ImportLists/ImportLists/Manage/Tags/TagsModalContent.tsx index 185be46ca..6072be5ff 100644 --- a/frontend/src/Settings/ImportLists/ImportLists/Manage/Tags/TagsModalContent.tsx +++ b/frontend/src/Settings/ImportLists/ImportLists/Manage/Tags/TagsModalContent.tsx @@ -101,7 +101,7 @@ function TagsModalContent(props: TagsModalContentProps) { value={applyTags} values={applyTagsOptions} helpTexts={[ - translate('ApplyTagsHelpTextHowToApply'), + translate('ApplyTagsHelpTextHowToApplyImportLists'), translate('ApplyTagsHelpTextAdd'), translate('ApplyTagsHelpTextRemove'), translate('ApplyTagsHelpTextReplace'), diff --git a/frontend/src/Settings/Indexers/Indexers/Manage/Tags/TagsModalContent.tsx b/frontend/src/Settings/Indexers/Indexers/Manage/Tags/TagsModalContent.tsx index c634684be..32138fb5f 100644 --- a/frontend/src/Settings/Indexers/Indexers/Manage/Tags/TagsModalContent.tsx +++ b/frontend/src/Settings/Indexers/Indexers/Manage/Tags/TagsModalContent.tsx @@ -101,7 +101,7 @@ function TagsModalContent(props: TagsModalContentProps) { value={applyTags} values={applyTagsOptions} helpTexts={[ - translate('ApplyTagsHelpTextHowToApply'), + translate('ApplyTagsHelpTextHowToApplyIndexers'), translate('ApplyTagsHelpTextAdd'), translate('ApplyTagsHelpTextRemove'), translate('ApplyTagsHelpTextReplace'), diff --git a/src/NzbDrone.Core/Localization/Core/en.json b/src/NzbDrone.Core/Localization/Core/en.json index 460213e06..ea48be0ff 100644 --- a/src/NzbDrone.Core/Localization/Core/en.json +++ b/src/NzbDrone.Core/Localization/Core/en.json @@ -14,6 +14,10 @@ "ApplyTags": "Apply Tags", "ApplyTagsHelpTextAdd": "Add: Add the tags the existing list of tags", "ApplyTagsHelpTextHowToApply": "How to apply tags to the selected indexers", + "ApplyTagsHelpTextHowToApplyDownloadClients": "How to apply tags to the selected download clients", + "ApplyTagsHelpTextHowToApplyImportLists": "How to apply tags to the selected import lists", + "ApplyTagsHelpTextHowToApplyIndexers": "How to apply tags to the selected indexers", + "ApplyTagsHelpTextHowToApplySeries": "How to apply tags to the selected series", "ApplyTagsHelpTextRemove": "Remove: Remove the entered tags", "ApplyTagsHelpTextReplace": "Replace: Replace the tags with the entered tags (enter no tags to clear all tags)", "AutoAdd": "Auto Add",