From 04b84e4931edd3392ce7745a465fc3237be0b1f8 Mon Sep 17 00:00:00 2001 From: Qstick Date: Wed, 19 Aug 2020 23:32:49 -0400 Subject: [PATCH] More Translations --- .../SelectFolder/ImportMovieSelectFolder.js | 2 +- .../Page/Header/MovieSearchInput.js | 2 +- .../src/DiscoverMovie/DiscoverMovieFooter.js | 10 ++-- ...teractiveImportSelectFolderModalContent.js | 6 +-- frontend/src/Movie/Details/MovieDetails.js | 22 ++++----- .../src/Movie/Editor/MovieEditorFooter.js | 6 +-- .../Movie/Index/Menus/MovieIndexViewMenu.js | 7 +-- .../MovieIndexOverviewOptionsModalContent.js | 24 +++++----- .../MovieIndexPosterOptionsModalContent.js | 18 +++---- .../Index/Table/MovieIndexTableOptions.js | 5 +- .../EditRemotePathMappingModalContent.js | 14 +++--- frontend/src/Settings/PendingChangesModal.js | 9 ++-- .../Tags/Details/TagDetailsModalContent.js | 2 +- frontend/src/Settings/Tags/Tags.js | 3 +- frontend/src/Settings/UI/UISettings.js | 24 +++++----- src/NzbDrone.Core/Localization/Core/en.json | 48 +++++++++++++++++++ 16 files changed, 127 insertions(+), 75 deletions(-) diff --git a/frontend/src/AddMovie/ImportMovie/SelectFolder/ImportMovieSelectFolder.js b/frontend/src/AddMovie/ImportMovie/SelectFolder/ImportMovieSelectFolder.js index fa56fbdbf..35253441d 100644 --- a/frontend/src/AddMovie/ImportMovie/SelectFolder/ImportMovieSelectFolder.js +++ b/frontend/src/AddMovie/ImportMovie/SelectFolder/ImportMovieSelectFolder.js @@ -111,7 +111,7 @@ class ImportMovieSelectFolder extends Component { { items.length > 0 ?
-
+
diff --git a/frontend/src/Components/Page/Header/MovieSearchInput.js b/frontend/src/Components/Page/Header/MovieSearchInput.js index cf69e3a3a..8ed4a95c8 100644 --- a/frontend/src/Components/Page/Header/MovieSearchInput.js +++ b/frontend/src/Components/Page/Header/MovieSearchInput.js @@ -272,7 +272,7 @@ class MovieSearchInput extends Component { if (suggestions.length || loading) { suggestionGroups.push({ - title: 'Existing Movie(s)', + title: translate('ExistingMovies'), loading, suggestions }); diff --git a/frontend/src/DiscoverMovie/DiscoverMovieFooter.js b/frontend/src/DiscoverMovie/DiscoverMovieFooter.js index 487954193..0ef742693 100644 --- a/frontend/src/DiscoverMovie/DiscoverMovieFooter.js +++ b/frontend/src/DiscoverMovie/DiscoverMovieFooter.js @@ -146,7 +146,7 @@ class DiscoverMovieFooter extends Component {
@@ -161,7 +161,7 @@ class DiscoverMovieFooter extends Component {
@@ -175,7 +175,7 @@ class DiscoverMovieFooter extends Component {
@@ -189,7 +189,7 @@ class DiscoverMovieFooter extends Component {
@@ -204,7 +204,7 @@ class DiscoverMovieFooter extends Component {
diff --git a/frontend/src/InteractiveImport/Folder/InteractiveImportSelectFolderModalContent.js b/frontend/src/InteractiveImport/Folder/InteractiveImportSelectFolderModalContent.js index 2fe50bc10..c99f4e33a 100644 --- a/frontend/src/InteractiveImport/Folder/InteractiveImportSelectFolderModalContent.js +++ b/frontend/src/InteractiveImport/Folder/InteractiveImportSelectFolderModalContent.js @@ -76,7 +76,7 @@ class InteractiveImportSelectFolderModalContent extends Component { return ( - Manual Import - Select Folder + {translate('ManualImport')} - {translate('SelectFolder')} @@ -125,7 +125,7 @@ class InteractiveImportSelectFolderModalContent extends Component { name={icons.QUICK} /> - Quick Import + {translate('QuickImport')}
@@ -142,7 +142,7 @@ class InteractiveImportSelectFolderModalContent extends Component { name={icons.INTERACTIVE} /> - Interactive Import + {translate('InteractiveImport')}
diff --git a/frontend/src/Movie/Details/MovieDetails.js b/frontend/src/Movie/Details/MovieDetails.js index d4825d429..8607cdcd8 100644 --- a/frontend/src/Movie/Details/MovieDetails.js +++ b/frontend/src/Movie/Details/MovieDetails.js @@ -289,7 +289,7 @@ class MovieDetails extends Component { @@ -324,7 +324,7 @@ class MovieDetails extends Component { @@ -488,7 +488,7 @@ class MovieDetails extends Component {
@@ -498,7 +498,7 @@ class MovieDetails extends Component { @@ -513,7 +513,7 @@ class MovieDetails extends Component { @@ -527,7 +527,7 @@ class MovieDetails extends Component { @@ -541,7 +541,7 @@ class MovieDetails extends Component { !!collection &&
@@ -558,7 +558,7 @@ class MovieDetails extends Component { !!studio && !isSmallScreen && diff --git a/frontend/src/Movie/Editor/MovieEditorFooter.js b/frontend/src/Movie/Editor/MovieEditorFooter.js index 311e7ffc9..70d3e1b52 100644 --- a/frontend/src/Movie/Editor/MovieEditorFooter.js +++ b/frontend/src/Movie/Editor/MovieEditorFooter.js @@ -163,7 +163,7 @@ class MovieEditorFooter extends Component {
@@ -238,7 +238,7 @@ class MovieEditorFooter extends Component { isDisabled={!selectedCount || isOrganizingMovie} onPress={onOrganizeMoviePress} > - Rename Files + {translate('RenameFiles')} - Set Tags + {translate('SetTags')}
diff --git a/frontend/src/Movie/Index/Menus/MovieIndexViewMenu.js b/frontend/src/Movie/Index/Menus/MovieIndexViewMenu.js index 107ae0ba2..76507cd76 100644 --- a/frontend/src/Movie/Index/Menus/MovieIndexViewMenu.js +++ b/frontend/src/Movie/Index/Menus/MovieIndexViewMenu.js @@ -4,6 +4,7 @@ import MenuContent from 'Components/Menu/MenuContent'; import ViewMenu from 'Components/Menu/ViewMenu'; import ViewMenuItem from 'Components/Menu/ViewMenuItem'; import { align } from 'Helpers/Props'; +import translate from 'Utilities/String/translate'; function MovieIndexViewMenu(props) { const { @@ -23,7 +24,7 @@ function MovieIndexViewMenu(props) { selectedView={view} onPress={onViewSelect} > - Table + {translate('Table')} - Posters + {translate('Posters')} - Overview + {translate('Overview')} diff --git a/frontend/src/Movie/Index/Overview/Options/MovieIndexOverviewOptionsModalContent.js b/frontend/src/Movie/Index/Overview/Options/MovieIndexOverviewOptionsModalContent.js index 2ca54734c..216d21cd5 100644 --- a/frontend/src/Movie/Index/Overview/Options/MovieIndexOverviewOptionsModalContent.js +++ b/frontend/src/Movie/Index/Overview/Options/MovieIndexOverviewOptionsModalContent.js @@ -130,13 +130,13 @@ class MovieIndexOverviewOptionsModalContent extends Component { return ( - Overview Options + {translate('OverviewOptions')}
- Poster Size + {translate('PosterSize')} - Detailed Progress Bar + {translate('DetailedProgressBar')} - Show Monitored + {translate('ShowMonitored')} - Show Studio + {translate('ShowStudio')} - Show Quality Profile + {translate('ShowQualityProfile')} - Show Date Added + {translate('ShowDateAdded')} - Show Path + {translate('ShowPath')} - Show Size on Disk + {translate('ShowSizeOnDisk')} - Show Search + {translate('ShowSearch')} diff --git a/frontend/src/Movie/Index/Posters/Options/MovieIndexPosterOptionsModalContent.js b/frontend/src/Movie/Index/Posters/Options/MovieIndexPosterOptionsModalContent.js index 2a64f40b7..f8bcf869f 100644 --- a/frontend/src/Movie/Index/Posters/Options/MovieIndexPosterOptionsModalContent.js +++ b/frontend/src/Movie/Index/Posters/Options/MovieIndexPosterOptionsModalContent.js @@ -109,13 +109,13 @@ class MovieIndexPosterOptionsModalContent extends Component { return ( - Poster Options + {translate('PosterOptions')} - Poster Size + {translate('PosterSize')} - Detailed Progress Bar + {translate('DetailedProgressBar')} - Show Title + {translate('ShowTitle')} - Show Monitored + {translate('ShowMonitored')} - Show Quality Profile + {translate('ShowQualityProfile')} - Show Search + {translate('ShowSearch')} diff --git a/frontend/src/Movie/Index/Table/MovieIndexTableOptions.js b/frontend/src/Movie/Index/Table/MovieIndexTableOptions.js index 8e0ef1706..774d8da90 100644 --- a/frontend/src/Movie/Index/Table/MovieIndexTableOptions.js +++ b/frontend/src/Movie/Index/Table/MovieIndexTableOptions.js @@ -4,6 +4,7 @@ import FormGroup from 'Components/Form/FormGroup'; import FormInputGroup from 'Components/Form/FormInputGroup'; import FormLabel from 'Components/Form/FormLabel'; import { inputTypes } from 'Helpers/Props'; +import translate from 'Utilities/String/translate'; class MovieIndexTableOptions extends Component { @@ -54,13 +55,13 @@ class MovieIndexTableOptions extends Component { return ( - Show Search + {translate('ShowSearch')} diff --git a/frontend/src/Settings/DownloadClients/RemotePathMappings/EditRemotePathMappingModalContent.js b/frontend/src/Settings/DownloadClients/RemotePathMappings/EditRemotePathMappingModalContent.js index 0724ee5c4..38172b05a 100644 --- a/frontend/src/Settings/DownloadClients/RemotePathMappings/EditRemotePathMappingModalContent.js +++ b/frontend/src/Settings/DownloadClients/RemotePathMappings/EditRemotePathMappingModalContent.js @@ -41,7 +41,7 @@ function EditRemotePathMappingModalContent(props) { return ( - {id ? 'Edit Remote Path Mapping' : 'Add Remote Path Mapping'} + {id ? translate('EditRemotePathMapping') : translate('AddRemotePathMapping')} @@ -59,12 +59,12 @@ function EditRemotePathMappingModalContent(props) { !isFetching && !error && - Host + {translate('Host')} - Remote Path + {translate('SettingsRemotePathMappingRemotePath')} - Local Path + {translate('SettingsRemotePathMappingLocalPath')} diff --git a/frontend/src/Settings/PendingChangesModal.js b/frontend/src/Settings/PendingChangesModal.js index 93b5e0870..288a3dc08 100644 --- a/frontend/src/Settings/PendingChangesModal.js +++ b/frontend/src/Settings/PendingChangesModal.js @@ -8,6 +8,7 @@ import ModalContent from 'Components/Modal/ModalContent'; import ModalFooter from 'Components/Modal/ModalFooter'; import ModalHeader from 'Components/Modal/ModalHeader'; import { kinds } from 'Helpers/Props'; +import translate from 'Utilities/String/translate'; function PendingChangesModal(props) { const { @@ -27,10 +28,10 @@ function PendingChangesModal(props) { onModalClose={onCancel} > - Unsaved Changes + {translate('UnsavedChanges')} - You have unsaved changes, are you sure you want to leave this page? + {translate('PendingChangesMessage')} @@ -38,7 +39,7 @@ function PendingChangesModal(props) { kind={kinds.DEFAULT} onPress={onCancel} > - Stay and review changes + {translate('PendingChangesStayReview')} diff --git a/frontend/src/Settings/Tags/Details/TagDetailsModalContent.js b/frontend/src/Settings/Tags/Details/TagDetailsModalContent.js index a318a5092..8d5635933 100644 --- a/frontend/src/Settings/Tags/Details/TagDetailsModalContent.js +++ b/frontend/src/Settings/Tags/Details/TagDetailsModalContent.js @@ -99,7 +99,7 @@ function TagDetailsModalContent(props) { { !!restrictions.length && -
+
{ restrictions.map((item) => { return ( diff --git a/frontend/src/Settings/Tags/Tags.js b/frontend/src/Settings/Tags/Tags.js index e1375ba76..8d2a5f714 100644 --- a/frontend/src/Settings/Tags/Tags.js +++ b/frontend/src/Settings/Tags/Tags.js @@ -2,6 +2,7 @@ import PropTypes from 'prop-types'; import React from 'react'; import FieldSet from 'Components/FieldSet'; import PageSectionContent from 'Components/Page/PageSectionContent'; +import translate from 'Utilities/String/translate'; import TagConnector from './TagConnector'; import styles from './Tags.css'; @@ -19,7 +20,7 @@ function Tags(props) { return (
- First Day of Week + {translate('SettingsFirstDayOfWeek')} - Week Column Header + {translate('SettingsWeekColumnHeader')} @@ -115,7 +115,7 @@ class UISettings extends Component { legend={translate('Dates')} > - Short Date Format + {translate('SettingsShortDateFormat')} - Long Date Format + {translate('SettingsLongDateFormat')} - Time Format + {translate('SettingsTimeFormat')} - Show Relative Dates + {translate('SettingsShowRelativeDates')} @@ -166,11 +166,11 @@ class UISettings extends Component { legend={translate('Style')} > - Enable Color-Impaired Mode + {translate('SettingsEnableColorImpairedMode')} @@ -181,12 +181,12 @@ class UISettings extends Component { legend={translate('Language')} > - UI Language + {translate('SettingsUiLanguage')}