From 3d615d00311e24e4ccc431e0ba7d9cc8625dc0d1 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Sun, 16 Jul 2023 05:26:52 +0300 Subject: [PATCH] Use named keys for apply tags help text --- frontend/src/Artist/Editor/Tags/TagsModalContent.js | 8 ++++---- .../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 | 5 ++++- 5 files changed, 11 insertions(+), 8 deletions(-) diff --git a/frontend/src/Artist/Editor/Tags/TagsModalContent.js b/frontend/src/Artist/Editor/Tags/TagsModalContent.js index 29929ea4b..5245ba097 100644 --- a/frontend/src/Artist/Editor/Tags/TagsModalContent.js +++ b/frontend/src/Artist/Editor/Tags/TagsModalContent.js @@ -98,10 +98,10 @@ class TagsModalContent extends Component { value={applyTags} values={applyTagsOptions} helpTexts={[ - translate('ApplyTagsHelpTexts1'), - translate('ApplyTagsHelpTexts2'), - translate('ApplyTagsHelpTexts3'), - translate('ApplyTagsHelpTexts4') + translate('ApplyTagsHelpTextHowToApplyArtists'), + translate('ApplyTagsHelpTextAdd'), + translate('ApplyTagsHelpTextRemove'), + translate('ApplyTagsHelpTextReplace') ]} onChange={this.onInputChange} /> 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 3354c85f0..2dcb480da 100644 --- a/src/NzbDrone.Core/Localization/Core/en.json +++ b/src/NzbDrone.Core/Localization/Core/en.json @@ -75,7 +75,10 @@ "ApplyChanges": "Apply Changes", "ApplyTags": "Apply Tags", "ApplyTagsHelpTextAdd": "Add: Add the tags the existing list of tags", - "ApplyTagsHelpTextHowToApply": "How to apply tags to the selected indexers", + "ApplyTagsHelpTextHowToApplyArtists": "How to apply tags to the selected artists", + "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", "ApplyTagsHelpTextRemove": "Remove: Remove the entered tags", "ApplyTagsHelpTextReplace": "Replace: Replace the tags with the entered tags (enter no tags to clear all tags)", "AreYouSure": "Are you sure?",