From 5218bea70556adf001de6ca271cd34ccbc57de79 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sat, 15 Jul 2023 09:16:19 -0700 Subject: [PATCH] Use named keys for apply tags help text (cherry picked from commit c1f8c7b17ba5775a0f6f76cebc3173e03124d000) --- .../src/Indexer/Index/Select/Tags/TagsModalContent.tsx | 8 ++++---- .../Applications/Manage/Tags/TagsModalContent.tsx | 8 ++++---- src/NzbDrone.Core/Localization/Core/en.json | 9 +++++---- 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/frontend/src/Indexer/Index/Select/Tags/TagsModalContent.tsx b/frontend/src/Indexer/Index/Select/Tags/TagsModalContent.tsx index b4258aa18..964d9ad57 100644 --- a/frontend/src/Indexer/Index/Select/Tags/TagsModalContent.tsx +++ b/frontend/src/Indexer/Index/Select/Tags/TagsModalContent.tsx @@ -90,10 +90,10 @@ function TagsModalContent(props: TagsModalContentProps) { value={applyTags} values={applyTagsOptions} helpTexts={[ - translate('ApplyTagsHelpTexts1'), - translate('ApplyTagsHelpTexts2'), - translate('ApplyTagsHelpTexts3'), - translate('ApplyTagsHelpTexts4'), + translate('ApplyTagsHelpTextHowToApplyIndexers'), + translate('ApplyTagsHelpTextAdd'), + translate('ApplyTagsHelpTextRemove'), + translate('ApplyTagsHelpTextReplace'), ]} onChange={onApplyTagsChange} /> diff --git a/frontend/src/Settings/Applications/Applications/Manage/Tags/TagsModalContent.tsx b/frontend/src/Settings/Applications/Applications/Manage/Tags/TagsModalContent.tsx index bbc43aced..11900311e 100644 --- a/frontend/src/Settings/Applications/Applications/Manage/Tags/TagsModalContent.tsx +++ b/frontend/src/Settings/Applications/Applications/Manage/Tags/TagsModalContent.tsx @@ -101,10 +101,10 @@ function TagsModalContent(props: TagsModalContentProps) { value={applyTags} values={applyTagsOptions} helpTexts={[ - translate('ApplyTagsHelpTexts1'), - translate('ApplyTagsHelpTexts2'), - translate('ApplyTagsHelpTexts3'), - translate('ApplyTagsHelpTexts4'), + translate('ApplyTagsHelpTextHowToApplyApplications'), + translate('ApplyTagsHelpTextAdd'), + translate('ApplyTagsHelpTextRemove'), + translate('ApplyTagsHelpTextReplace'), ]} onChange={onApplyTagsChange} /> diff --git a/src/NzbDrone.Core/Localization/Core/en.json b/src/NzbDrone.Core/Localization/Core/en.json index 7c0c803e0..a81238c2e 100644 --- a/src/NzbDrone.Core/Localization/Core/en.json +++ b/src/NzbDrone.Core/Localization/Core/en.json @@ -43,10 +43,11 @@ "Apply": "Apply", "ApplyChanges": "Apply Changes", "ApplyTags": "Apply Tags", - "ApplyTagsHelpTexts1": "How to apply tags to the selected indexers", - "ApplyTagsHelpTexts2": "Add: Add the tags the existing list of tags", - "ApplyTagsHelpTexts3": "Remove: Remove the entered tags", - "ApplyTagsHelpTexts4": "Replace: Replace the tags with the entered tags (enter no tags to clear all tags)", + "ApplyTagsHelpTextAdd": "Add: Add the tags the existing list of tags", + "ApplyTagsHelpTextHowToApplyApplications": "How to apply tags to the selected applications", + "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)", "Apps": "Apps", "AppsMinimumSeeders": "Apps Minimum Seeders", "AppsMinimumSeedersHelpText": "Minimum seeders required by the Applications for the indexer to grab, empty is Sync profile's default",