From d01ce8b9087d4226319bfc54bb43803789c2b83a Mon Sep 17 00:00:00 2001 From: bakerboy448 <55419169+bakerboy448@users.noreply.github.com> Date: Mon, 9 May 2022 23:44:32 -0500 Subject: [PATCH] Fixed: Added new and missing translations --- ...horMonitorNewItemsOptionsPopoverContent.js | 6 ++--- .../AuthorMonitoringOptionsPopoverContent.js | 16 +++++++------- .../src/Author/Editor/AuthorEditorFooter.js | 8 +++---- frontend/src/Bookshelf/BookshelfFooter.js | 7 +++--- .../src/Components/Form/FormInputGroup.js | 3 ++- .../src/Search/Common/AddAuthorOptionsForm.js | 2 +- .../ImportLists/EditImportListModalContent.js | 18 +++++++-------- .../RootFolder/EditRootFolderModalContent.js | 10 ++++----- src/NzbDrone.Core/Localization/Core/en.json | 22 +++++++++++++++++++ 9 files changed, 58 insertions(+), 34 deletions(-) diff --git a/frontend/src/AddAuthor/AuthorMonitorNewItemsOptionsPopoverContent.js b/frontend/src/AddAuthor/AuthorMonitorNewItemsOptionsPopoverContent.js index 3d632d87a..18dcd80b0 100644 --- a/frontend/src/AddAuthor/AuthorMonitorNewItemsOptionsPopoverContent.js +++ b/frontend/src/AddAuthor/AuthorMonitorNewItemsOptionsPopoverContent.js @@ -8,17 +8,17 @@ function AuthorMonitorNewItemsOptionsPopoverContent() { ); diff --git a/frontend/src/AddAuthor/AuthorMonitoringOptionsPopoverContent.js b/frontend/src/AddAuthor/AuthorMonitoringOptionsPopoverContent.js index b3c9ae5b8..0bb2644ad 100644 --- a/frontend/src/AddAuthor/AuthorMonitoringOptionsPopoverContent.js +++ b/frontend/src/AddAuthor/AuthorMonitoringOptionsPopoverContent.js @@ -8,42 +8,42 @@ function AuthorMonitoringOptionsPopoverContent() { return ( <> - This is a one time adjustment to set which books are monitored + {translate('MonitoringOptionsHelpText')} diff --git a/frontend/src/Author/Editor/AuthorEditorFooter.js b/frontend/src/Author/Editor/AuthorEditorFooter.js index dd3cf7e53..b578db580 100644 --- a/frontend/src/Author/Editor/AuthorEditorFooter.js +++ b/frontend/src/Author/Editor/AuthorEditorFooter.js @@ -267,7 +267,7 @@ class AuthorEditorFooter extends Component { isDisabled={!selectedCount || isOrganizingAuthor || isRetaggingAuthor} onPress={onOrganizeAuthorPress} > - Rename Files + {translate('RenameFiles')} - Write Metadata Tags + {translate('WriteMetadataTags')} - Set Readarr Tags + {translate('SetReadarrTags')} - Delete + {translate('Delete')} diff --git a/frontend/src/Bookshelf/BookshelfFooter.js b/frontend/src/Bookshelf/BookshelfFooter.js index 6a9a046eb..32820fe7e 100644 --- a/frontend/src/Bookshelf/BookshelfFooter.js +++ b/frontend/src/Bookshelf/BookshelfFooter.js @@ -6,6 +6,7 @@ import SelectInput from 'Components/Form/SelectInput'; import SpinnerButton from 'Components/Link/SpinnerButton'; import PageContentFooter from 'Components/Page/PageContentFooter'; import { kinds } from 'Helpers/Props'; +import translate from 'Utilities/String/translate'; import styles from './BookshelfFooter.css'; const NO_CHANGE = 'noChange'; @@ -114,7 +115,7 @@ class BookshelfFooter extends Component {
- Monitor Existing Books + {translate('MonitorExistingBooks')}
- Monitor New Books + {translate('MonitorNewBooks')}
- Update Selected + {translate('UpdateSelected')}
diff --git a/frontend/src/Components/Form/FormInputGroup.js b/frontend/src/Components/Form/FormInputGroup.js index 01b004b45..0e6b62690 100644 --- a/frontend/src/Components/Form/FormInputGroup.js +++ b/frontend/src/Components/Form/FormInputGroup.js @@ -2,6 +2,7 @@ import PropTypes from 'prop-types'; import React from 'react'; import Link from 'Components/Link/Link'; import { inputTypes } from 'Helpers/Props'; +import translate from 'Utilities/String/translate'; // import translate from 'Utilities/String/translate'; import AutoCompleteInput from './AutoCompleteInput'; import BookEditionSelectInputConnector from './BookEditionSelectInputConnector'; @@ -216,7 +217,7 @@ function FormInputGroup(props) { - More Info + {translate('MoreInfo')} } diff --git a/frontend/src/Search/Common/AddAuthorOptionsForm.js b/frontend/src/Search/Common/AddAuthorOptionsForm.js index 4850c62f1..96b64a9bf 100644 --- a/frontend/src/Search/Common/AddAuthorOptionsForm.js +++ b/frontend/src/Search/Common/AddAuthorOptionsForm.js @@ -126,7 +126,7 @@ class AddAuthorOptionsForm extends Component { - Metadata Profile + {translate('MetadataProfile')} { includeNoneMetadataProfile && diff --git a/frontend/src/Settings/ImportLists/ImportLists/EditImportListModalContent.js b/frontend/src/Settings/ImportLists/ImportLists/EditImportListModalContent.js index 9ff064e25..3398a6d5a 100644 --- a/frontend/src/Settings/ImportLists/ImportLists/EditImportListModalContent.js +++ b/frontend/src/Settings/ImportLists/ImportLists/EditImportListModalContent.js @@ -28,17 +28,17 @@ function ImportListMonitoringOptionsPopoverContent() { ); @@ -89,7 +89,7 @@ function EditImportListModalContent(props) { return ( - {id ? 'Edit List' : 'Add List'} + {id ? translate('EditList') : translate('AddList')} @@ -148,7 +148,7 @@ function EditImportListModalContent(props) { - Monitor + {translate('Monitor')} - Delete + {translate('Delete')} } @@ -327,13 +327,13 @@ function EditImportListModalContent(props) { error={saveError} onPress={onTestPress} > - Test + {translate('Test')} - Save + {translate('Save')} diff --git a/frontend/src/Settings/MediaManagement/RootFolder/EditRootFolderModalContent.js b/frontend/src/Settings/MediaManagement/RootFolder/EditRootFolderModalContent.js index d48fb74db..0b1589982 100644 --- a/frontend/src/Settings/MediaManagement/RootFolder/EditRootFolderModalContent.js +++ b/frontend/src/Settings/MediaManagement/RootFolder/EditRootFolderModalContent.js @@ -346,7 +346,7 @@ function EditRootFolderModalContent(props) { - Convert to format + {translate('ConvertToFormat')} - Calibre Output Profile + {translate('CalibreOutputProfile')} - Delete + {translate('Delete')} } - Save + {translate('Save')} diff --git a/src/NzbDrone.Core/Localization/Core/en.json b/src/NzbDrone.Core/Localization/Core/en.json index 5f95887cc..29668cac9 100644 --- a/src/NzbDrone.Core/Localization/Core/en.json +++ b/src/NzbDrone.Core/Localization/Core/en.json @@ -7,6 +7,7 @@ "AddedAuthorSettings": "Added Author Settings", "AddImportListExclusionHelpText": "Prevent book from being added to Readarr by Import Lists or Author Refresh", "AddingTag": "Adding tag", + "AddList": "Add List", "AddListExclusion": "Add List Exclusion", "AddMissing": "Add missing", "AddNewItem": "Add New Item", @@ -130,6 +131,7 @@ "ContinuingAllBooksDownloaded": "Continuing (All books downloaded)", "ContinuingMoreBooksAreExpected": "More books are expected", "ContinuingNoAdditionalBooksAreExpected": "No additional books are expected", + "ConvertToFormat": "Convert To Format", "CopyUsingHardlinksHelpText": "Use Hardlinks when trying to copy files from torrents that are still being seeded", "CopyUsingHardlinksHelpTextWarning": "Occasionally, file locks may prevent renaming files that are being seeded. You may temporarily disable seeding and use Readarr's rename function as a work around.", "CouldntFindAnyResultsForTerm": "Couldn't find any results for '{0}'", @@ -139,6 +141,19 @@ "CreateGroup": "Create group", "CutoffHelpText": "Once this quality is reached Readarr will no longer download books", "CutoffUnmet": "Cutoff Unmet", + "DataAllBooks": "Monitor all books", + "DataExistingBooks": "Monitor books that have files or have not released yet", + "DataFirstBook": "Monitor the first book. All other books will be ignored", + "DataFuturebooks": "Monitor books that have not released yet", + "DataLatestBook": "Monitor the latest book and future books", + "DataListMonitorAll": "Monitor authors and all books for each author included on the import list", + "DataListMonitorNone": "Do not monitor authors or books", + "DataListMonitorSpecificBook": "Monitor authors, but only monitor books explicitly included in the list", + "DataMissingBooks": "Monitor books that do not have files or have not released yet", + "DataNewAllBooks": "Monitor all new books", + "DataNewBooks": "Monitor new books released after the newest existing book", + "DataNewNone": "Don't monitor any new books", + "DataNone": "No books will be monitored", "Dates": "Dates", "DBMigration": "DB Migration", "DefaultMetadataProfileIdHelpText": "Default Metadata Profile for authors detected in this folder", @@ -210,6 +225,7 @@ "EditBook": "Edit Book", "Edition": "Edition", "EditionsHelpText": "Change edition for this book", + "EditList": "Edit List", "EmbedMetadataHelpText": "Tell Calibre to write metadata into the actual book file", "EmbedMetadataInBookFiles": "Embed Metadata in Book Files", "Enable": "Enable", @@ -425,9 +441,11 @@ "MonitoredAuthorIsMonitored": "Author is monitored", "MonitoredAuthorIsUnmonitored": "Author is unmonitored", "MonitoredHelpText": "Readarr will search for and download book", + "MonitorExistingBooks": "Monitor Existing Books", "Monitoring": "Monitoring", "MonitoringOptions": "Monitoring Options", "MonitoringOptionsHelpText": "Which books should be monitored after the author is added (one-time adjustment)", + "MonitorNewBooks": "Monitor New Books", "MonitorNewItems": "Monitor New Books", "MonitorNewItemsHelpText": "Which new books should be monitored", "MonoVersion": "Mono Version", @@ -601,6 +619,7 @@ "RemoveTagRemovingTag": "Removing tag", "RenameBooks": "Rename Books", "RenameBooksHelpText": "Readarr will use the existing file name if renaming is disabled", + "RenameFiles": "Rename Files", "Reorder": "Reorder", "ReplaceIllegalCharacters": "Replace Illegal Characters", "ReplaceIllegalCharactersHelpText": "Replace illegal characters. If unchecked, Readarr will remove them instead", @@ -659,6 +678,7 @@ "SetPermissions": "Set Permissions", "SetPermissionsLinuxHelpText": "Should chmod be run when files are imported/renamed?", "SetPermissionsLinuxHelpTextWarning": "If you're unsure what these settings do, do not alter them.", + "SetReadarrTags": "Set Readarr Tags", "Settings": "Settings", "SettingsRemotePathMappingLocalPath": "Local Path", "SettingsRemotePathMappingLocalPathHelpText": "Path that Readarr should use to access the remote path locally", @@ -737,6 +757,7 @@ "TagsSettingsSummary": "Manage author, profile, restriction, and notification tags", "Tasks": "Tasks", "Term": "Term", + "Test": "Test", "TestAll": "Test All", "TestAllClients": "Test All Clients", "TestAllIndexers": "Test All Indexers", @@ -846,6 +867,7 @@ "WriteAudioTagsScrub": "Scrub Existing Tags", "WriteAudioTagsScrubHelp": "Remove existing tags from files, leaving only those added by Readarr.", "WriteBookTagsHelpTextWarning": "Selecting 'All files' will alter existing files when they are imported.", + "WriteMetadataTags": "Write Metadata Tags", "WriteTagsAll": "All files; initial import only", "WriteTagsNew": "For new downloads only", "WriteTagsNo": "Never",