From c1f8c7b17ba5775a0f6f76cebc3173e03124d000 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 --- .../DownloadClients/Manage/Tags/TagsModalContent.tsx | 8 ++++---- .../ImportLists/Manage/Tags/TagsModalContent.tsx | 8 ++++---- .../Indexers/Indexers/Manage/Tags/TagsModalContent.tsx | 8 ++++---- src/NzbDrone.Core/Localization/Core/en.json | 8 ++++---- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/frontend/src/Settings/DownloadClients/DownloadClients/Manage/Tags/TagsModalContent.tsx b/frontend/src/Settings/DownloadClients/DownloadClients/Manage/Tags/TagsModalContent.tsx index 23b52d50f..65827ec15 100644 --- a/frontend/src/Settings/DownloadClients/DownloadClients/Manage/Tags/TagsModalContent.tsx +++ b/frontend/src/Settings/DownloadClients/DownloadClients/Manage/Tags/TagsModalContent.tsx @@ -103,10 +103,10 @@ function TagsModalContent(props: TagsModalContentProps) { value={applyTags} values={applyTagsOptions} helpTexts={[ - translate('ApplyTagsHelpTexts1'), - translate('ApplyTagsHelpTexts2'), - translate('ApplyTagsHelpTexts3'), - translate('ApplyTagsHelpTexts4'), + translate('ApplyTagsHelpTextHowToApply'), + translate('ApplyTagsHelpTextAdd'), + translate('ApplyTagsHelpTextRemove'), + translate('ApplyTagsHelpTextReplace'), ]} onChange={onApplyTagsChange} /> diff --git a/frontend/src/Settings/ImportLists/ImportLists/Manage/Tags/TagsModalContent.tsx b/frontend/src/Settings/ImportLists/ImportLists/Manage/Tags/TagsModalContent.tsx index a39d0ca86..185be46ca 100644 --- a/frontend/src/Settings/ImportLists/ImportLists/Manage/Tags/TagsModalContent.tsx +++ b/frontend/src/Settings/ImportLists/ImportLists/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('ApplyTagsHelpTextHowToApply'), + translate('ApplyTagsHelpTextAdd'), + translate('ApplyTagsHelpTextRemove'), + translate('ApplyTagsHelpTextReplace'), ]} onChange={onApplyTagsChange} /> diff --git a/frontend/src/Settings/Indexers/Indexers/Manage/Tags/TagsModalContent.tsx b/frontend/src/Settings/Indexers/Indexers/Manage/Tags/TagsModalContent.tsx index 3205c071a..c634684be 100644 --- a/frontend/src/Settings/Indexers/Indexers/Manage/Tags/TagsModalContent.tsx +++ b/frontend/src/Settings/Indexers/Indexers/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('ApplyTagsHelpTextHowToApply'), + 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 b5d6cc834..ebd7fcf13 100644 --- a/src/NzbDrone.Core/Localization/Core/en.json +++ b/src/NzbDrone.Core/Localization/Core/en.json @@ -7,10 +7,10 @@ "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)", + "ApplyTagsHelpTextHowToApply": "How to apply tags to the selected indexers", + "ApplyTagsHelpTextAdd": "Add: Add the tags the existing list of tags", + "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", "AutomaticAdd": "Automatic Add", "BlocklistRelease": "Blocklist Release",