From be38ca472815df19be9c7808094fa1b37c9b6aca Mon Sep 17 00:00:00 2001 From: nitsua Date: Fri, 28 Aug 2020 23:56:13 -0400 Subject: [PATCH] More Language string migration --- frontend/src/Activity/Blacklist/Blacklist.js | 2 +- .../Blacklist/BlacklistDetailsModal.js | 8 +- .../src/Activity/Blacklist/BlacklistRow.js | 3 +- .../History/Details/HistoryDetails.js | 43 +-- frontend/src/Activity/History/History.js | 2 +- frontend/src/Activity/Queue/Queue.js | 6 +- frontend/src/Activity/Queue/QueueDetails.js | 5 +- frontend/src/Activity/Queue/QueueOptions.js | 5 +- frontend/src/Activity/Queue/QueueRow.js | 3 +- .../Activity/Queue/RemoveQueueItemModal.js | 8 +- .../Activity/Queue/RemoveQueueItemsModal.js | 6 +- .../src/AddMovie/AddNewMovie/AddNewMovie.js | 2 +- .../AddNewMovie/AddNewMovieModalContent.js | 9 +- .../AddNewMovie/AddNewMovieSearchResult.js | 5 +- .../ImportMovie/Import/ImportMovie.js | 3 +- .../SelectFolder/ImportMovieRootFolderRow.js | 3 +- .../SelectFolder/ImportMovieSelectFolder.js | 2 +- frontend/src/App/AppUpdatedModalContent.js | 5 +- frontend/src/Calendar/Agenda/AgendaEvent.js | 5 +- frontend/src/Calendar/CalendarPage.js | 2 +- frontend/src/Calendar/Events/CalendarEvent.js | 5 +- .../Options/CalendarOptionsModalContent.js | 24 +- .../Calendar/iCal/CalendarLinkModalContent.js | 16 +- .../Filter/CustomFilters/CustomFilter.js | 3 +- .../src/Components/Form/FormInputGroup.js | 2 +- frontend/src/Components/NotFound.js | 3 +- .../src/Components/Page/Header/PageHeader.js | 3 +- .../Table/TableOptions/TableOptionsModal.js | 2 +- .../Overview/AddListMovieOverview.js | 3 +- ...AddListMovieOverviewOptionsModalContent.js | 4 +- .../Posters/AddListMoviePoster.js | 5 +- .../AddListMoviePosterOptionsModalContent.js | 6 +- .../DiscoverMovie/Table/AddListMovieRow.js | 3 +- .../Folder/RecentFolderRow.js | 3 +- .../Interactive/InteractiveImportRow.js | 7 +- .../Quality/SelectQualityModalContent.js | 6 +- .../InteractiveSearch/InteractiveSearchRow.js | 9 +- .../Details/Credits/Cast/MovieCastPoster.js | 5 +- .../Details/Credits/Crew/MovieCrewPoster.js | 5 +- frontend/src/Movie/Details/MovieDetails.js | 8 +- .../Details/MovieDetailsPageConnector.js | 3 +- .../src/Movie/Edit/EditMovieModalContent.js | 2 +- .../Editor/Delete/DeleteMovieModalContent.js | 4 +- .../src/Movie/Editor/Tags/TagsModalContent.js | 6 +- frontend/src/Movie/History/MovieHistoryRow.js | 7 +- frontend/src/Movie/Index/MovieIndexFooter.js | 11 +- .../Index/Overview/MovieIndexOverview.js | 9 +- .../Movie/Index/Posters/MovieIndexPoster.js | 11 +- .../MovieIndexPosterOptionsModalContent.js | 6 +- .../Index/Table/MovieIndexActionsCell.js | 5 +- .../src/Movie/Index/Table/MovieIndexRow.js | 9 +- frontend/src/Movie/MovieFileStatus.js | 9 +- frontend/src/Movie/MovieLanguage.js | 3 +- .../MovieFile/Editor/MovieFileEditorRow.js | 8 +- .../Quality/SelectQualityModalContent.js | 6 +- .../CustomFormatSettingsConnector.js | 3 +- .../CustomFormats/CustomFormat.js | 4 +- .../CustomFormats/CustomFormats.js | 2 +- .../EditCustomFormatModalContent.js | 6 +- .../Specifications/Specification.js | 4 +- .../DownloadClients/DownloadClientSettings.js | 5 +- .../AddDownloadClientModalContent.js | 4 +- .../DownloadClients/DownloadClient.js | 2 +- .../DownloadClients/DownloadClients.js | 2 +- .../EditDownloadClientModalContent.js | 8 +- .../Options/DownloadClientOptions.js | 20 +- .../RemotePathMappings/RemotePathMapping.js | 4 +- .../RemotePathMappings/RemotePathMappings.js | 2 +- .../src/Settings/General/AnalyticSettings.js | 6 +- .../src/Settings/General/BackupSettings.js | 15 +- .../src/Settings/General/GeneralSettings.js | 9 +- frontend/src/Settings/General/HostSettings.js | 40 +-- .../src/Settings/General/LoggingSettings.js | 2 +- .../src/Settings/General/ProxySettings.js | 22 +- .../src/Settings/General/SecuritySettings.js | 28 +- .../src/Settings/General/UpdateSettings.js | 14 +- .../src/Settings/Indexers/IndexerSettings.js | 5 +- .../Indexers/AddIndexerModalContent.js | 4 +- .../Indexers/EditIndexerModalContent.js | 8 +- .../src/Settings/Indexers/Indexers/Indexer.js | 4 +- .../Settings/Indexers/Indexers/Indexers.js | 2 +- .../Indexers/Options/IndexerOptions.js | 34 +- .../EditRestrictionModalContent.js | 12 +- .../Indexers/Restrictions/Restriction.js | 2 +- .../Indexers/Restrictions/Restrictions.js | 2 +- .../MediaManagement/MediaManagement.js | 80 ++--- .../Settings/MediaManagement/Naming/Naming.js | 16 +- .../MediaManagement/Naming/NamingModal.js | 16 +- .../Metadata/EditMetadataModalContent.js | 4 +- .../Settings/Metadata/Metadata/Metadatas.js | 2 +- .../src/Settings/Metadata/MetadataSettings.js | 3 +- .../Metadata/Options/MetadataOptions.js | 4 +- .../NetImport/EditNetImportModalContent.js | 24 +- .../Settings/NetImport/NetImport/NetImport.js | 2 +- .../NetImport/NetImport/NetImports.js | 2 +- .../EditNetImportExclusionModalContent.js | 12 +- .../NetImportExclusions/NetImportExclusion.js | 4 +- .../NetImportExclusions.js | 2 +- .../Settings/NetImport/NetImportSettings.js | 5 +- .../NetImport/Options/NetImportOptions.js | 8 +- .../Notifications/NotificationSettings.js | 3 +- .../EditNotificationModalContent.js | 6 +- .../Notifications/Notification.js | 2 +- .../Notifications/NotificationEventItems.js | 15 +- .../Notifications/Notifications.js | 2 +- .../Settings/Profiles/Delay/DelayProfile.js | 4 +- .../Settings/Profiles/Delay/DelayProfiles.js | 2 +- .../Delay/EditDelayProfileModalContent.js | 16 +- frontend/src/Settings/Profiles/Profiles.js | 3 +- .../Quality/EditQualityProfileModalContent.js | 10 +- .../Profiles/Quality/QualityProfile.js | 4 +- .../Profiles/Quality/QualityProfileItem.js | 5 +- .../Quality/QualityProfileItemGroup.js | 5 +- .../Profiles/Quality/QualityProfiles.js | 2 +- .../Quality/Definition/QualityDefinition.js | 13 +- .../Quality/Definition/QualityDefinitions.js | 2 +- frontend/src/Settings/Quality/Quality.js | 3 +- frontend/src/Settings/Settings.js | 2 +- .../Tags/Details/TagDetailsModalContent.js | 4 +- frontend/src/Settings/Tags/Tag.js | 2 +- frontend/src/Settings/Tags/TagSettings.js | 3 +- frontend/src/Settings/Tags/Tags.js | 2 +- frontend/src/Settings/UI/UISettings.js | 4 +- frontend/src/System/Backup/BackupRow.js | 7 +- frontend/src/System/Backup/Backups.js | 2 +- frontend/src/System/Events/LogsTable.js | 2 +- frontend/src/System/Logs/Files/LogFiles.js | 2 +- frontend/src/System/Status/About/About.js | 20 +- frontend/src/System/Status/Health/Health.js | 10 +- frontend/src/System/Status/Status.js | 3 +- .../src/System/Tasks/Queued/QueuedTaskRow.js | 6 +- frontend/src/System/Tasks/Tasks.js | 3 +- frontend/src/System/Updates/Updates.js | 7 +- src/NzbDrone.Core/Localization/Core/en.json | 334 +++++++++++++++++- 134 files changed, 849 insertions(+), 468 deletions(-) diff --git a/frontend/src/Activity/Blacklist/Blacklist.js b/frontend/src/Activity/Blacklist/Blacklist.js index a371d926f..4b7919640 100644 --- a/frontend/src/Activity/Blacklist/Blacklist.js +++ b/frontend/src/Activity/Blacklist/Blacklist.js @@ -33,7 +33,7 @@ class Blacklist extends Component { } = this.props; return ( - + { !!message && } @@ -60,7 +60,7 @@ class BlacklistDetailsModal extends Component { { !!message && } diff --git a/frontend/src/Activity/Blacklist/BlacklistRow.js b/frontend/src/Activity/Blacklist/BlacklistRow.js index d73252ab4..129b77ef9 100644 --- a/frontend/src/Activity/Blacklist/BlacklistRow.js +++ b/frontend/src/Activity/Blacklist/BlacklistRow.js @@ -9,6 +9,7 @@ import MovieFormats from 'Movie/MovieFormats'; import MovieLanguage from 'Movie/MovieLanguage'; import MovieQuality from 'Movie/MovieQuality'; import MovieTitleLink from 'Movie/MovieTitleLink'; +import translate from 'Utilities/String/translate'; import BlacklistDetailsModal from './BlacklistDetailsModal'; import styles from './BlacklistRow.css'; @@ -155,7 +156,7 @@ class BlacklistRow extends Component { /> { !!indexer && } @@ -51,7 +52,7 @@ function HistoryDetails(props) { !!releaseGroup && } @@ -72,7 +73,7 @@ function HistoryDetails(props) { { !!downloadClient && } @@ -80,7 +81,7 @@ function HistoryDetails(props) { { !!downloadId && } @@ -88,7 +89,7 @@ function HistoryDetails(props) { { !!indexer && } @@ -96,7 +97,7 @@ function HistoryDetails(props) { { !!publishedDate && } @@ -113,14 +114,14 @@ function HistoryDetails(props) { { !!message && } @@ -138,7 +139,7 @@ function HistoryDetails(props) { @@ -146,7 +147,7 @@ function HistoryDetails(props) { !!droppedPath && } @@ -155,7 +156,7 @@ function HistoryDetails(props) { !!importedPath && } @@ -187,12 +188,12 @@ function HistoryDetails(props) { return ( @@ -210,22 +211,22 @@ function HistoryDetails(props) { return ( @@ -241,14 +242,14 @@ function HistoryDetails(props) { { !!message && } @@ -260,7 +261,7 @@ function HistoryDetails(props) { diff --git a/frontend/src/Activity/History/History.js b/frontend/src/Activity/History/History.js index aca845c95..63ee5d279 100644 --- a/frontend/src/Activity/History/History.js +++ b/frontend/src/Activity/History/History.js @@ -43,7 +43,7 @@ class History extends Component { const hasError = error || moviesError; return ( - + + ); } @@ -67,7 +68,7 @@ function QueueDetails(props) { ); } diff --git a/frontend/src/Activity/Queue/QueueOptions.js b/frontend/src/Activity/Queue/QueueOptions.js index 81dcb446b..03c86bd75 100644 --- a/frontend/src/Activity/Queue/QueueOptions.js +++ b/frontend/src/Activity/Queue/QueueOptions.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 QueueOptions extends Component { @@ -54,13 +55,13 @@ class QueueOptions extends Component { return ( - Show Unknown Movie Items + {translate('ShowUnknownMovieItems')} diff --git a/frontend/src/Activity/Queue/QueueRow.js b/frontend/src/Activity/Queue/QueueRow.js index 8dd0aef33..03570ac5c 100644 --- a/frontend/src/Activity/Queue/QueueRow.js +++ b/frontend/src/Activity/Queue/QueueRow.js @@ -15,6 +15,7 @@ import MovieLanguage from 'Movie/MovieLanguage'; import MovieQuality from 'Movie/MovieQuality'; import MovieTitleLink from 'Movie/MovieTitleLink'; import formatBytes from 'Utilities/Number/formatBytes'; +import translate from 'Utilities/String/translate'; import QueueStatusCell from './QueueStatusCell'; import RemoveQueueItemModal from './RemoveQueueItemModal'; import TimeleftCell from './TimeleftCell'; @@ -294,7 +295,7 @@ class QueueRow extends Component { } - Remove From Download Client + {translate('RemoveFromDownloadClient')} - Blacklist Release + {translate('BlacklistRelease')} diff --git a/frontend/src/Activity/Queue/RemoveQueueItemsModal.js b/frontend/src/Activity/Queue/RemoveQueueItemsModal.js index b47ae3286..9b52ef160 100644 --- a/frontend/src/Activity/Queue/RemoveQueueItemsModal.js +++ b/frontend/src/Activity/Queue/RemoveQueueItemsModal.js @@ -91,13 +91,13 @@ class RemoveQueueItemsModal extends Component { - Remove From Download Client + {translate('RemoveFromDownloadClient')} @@ -112,7 +112,7 @@ class RemoveQueueItemsModal extends Component { type={inputTypes.CHECK} name="blacklist" value={blacklist} - helpText="Prevents Radarr from automatically grabbing this movie again" + helpText={translate('BlacklistHelpText')} onChange={this.onBlacklistChange} /> diff --git a/frontend/src/AddMovie/AddNewMovie/AddNewMovie.js b/frontend/src/AddMovie/AddNewMovie/AddNewMovie.js index 1b2e58dad..3479126c3 100644 --- a/frontend/src/AddMovie/AddNewMovie/AddNewMovie.js +++ b/frontend/src/AddMovie/AddNewMovie/AddNewMovie.js @@ -88,7 +88,7 @@ class AddNewMovie extends Component { const isFetching = this.state.isFetching; return ( - +
diff --git a/frontend/src/AddMovie/AddNewMovie/AddNewMovieModalContent.js b/frontend/src/AddMovie/AddNewMovie/AddNewMovieModalContent.js index e179d10d4..33d2d2f7c 100644 --- a/frontend/src/AddMovie/AddNewMovie/AddNewMovieModalContent.js +++ b/frontend/src/AddMovie/AddNewMovie/AddNewMovieModalContent.js @@ -12,6 +12,7 @@ import ModalFooter from 'Components/Modal/ModalFooter'; import ModalHeader from 'Components/Modal/ModalHeader'; import { inputTypes, kinds } from 'Helpers/Props'; import MoviePoster from 'Movie/MoviePoster'; +import translate from 'Utilities/String/translate'; import styles from './AddNewMovieModalContent.css'; class AddNewMovieModalContent extends Component { @@ -95,7 +96,7 @@ class AddNewMovieModalContent extends Component {
- Root Folder + {translate('RootFolder')} - Minimum Availability + {translate('MinimumAvailability')} - Quality Profile + {translate('QualityProfile')} - Tags + {translate('Tags')} } @@ -117,7 +118,7 @@ class AddNewMovieSearchResult extends Component { className={styles.exclusionIcon} name={icons.DANGER} size={36} - title="Movie is on Net Import Exclusion List" + title={translate('MovieIsOnNetImportExclusionList')} /> }
diff --git a/frontend/src/AddMovie/ImportMovie/Import/ImportMovie.js b/frontend/src/AddMovie/ImportMovie/Import/ImportMovie.js index f9d10c652..8dd98288c 100644 --- a/frontend/src/AddMovie/ImportMovie/Import/ImportMovie.js +++ b/frontend/src/AddMovie/ImportMovie/Import/ImportMovie.js @@ -3,6 +3,7 @@ import React, { Component } from 'react'; import LoadingIndicator from 'Components/Loading/LoadingIndicator'; import PageContent from 'Components/Page/PageContent'; import PageContentBody from 'Components/Page/PageContentBody'; +import translate from 'Utilities/String/translate'; import getSelectedIds from 'Utilities/Table/getSelectedIds'; import selectAll from 'Utilities/Table/selectAll'; import toggleSelected from 'Utilities/Table/toggleSelected'; @@ -92,7 +93,7 @@ class ImportMovie extends Component { } = this.state; return ( - + diff --git a/frontend/src/AddMovie/ImportMovie/SelectFolder/ImportMovieSelectFolder.js b/frontend/src/AddMovie/ImportMovie/SelectFolder/ImportMovieSelectFolder.js index 35253441d..49378ed3d 100644 --- a/frontend/src/AddMovie/ImportMovie/SelectFolder/ImportMovieSelectFolder.js +++ b/frontend/src/AddMovie/ImportMovie/SelectFolder/ImportMovieSelectFolder.js @@ -77,7 +77,7 @@ class ImportMovieSelectFolder extends Component { } = this.props; return ( - + { isFetching && !isPopulated && diff --git a/frontend/src/App/AppUpdatedModalContent.js b/frontend/src/App/AppUpdatedModalContent.js index 4efd07800..ab037b7c7 100644 --- a/frontend/src/App/AppUpdatedModalContent.js +++ b/frontend/src/App/AppUpdatedModalContent.js @@ -8,6 +8,7 @@ import ModalFooter from 'Components/Modal/ModalFooter'; import ModalHeader from 'Components/Modal/ModalHeader'; import { kinds } from 'Helpers/Props'; import UpdateChanges from 'System/Updates/UpdateChanges'; +import translate from 'Utilities/String/translate'; import styles from './AppUpdatedModalContent.css'; function AppUpdatedModalContent(props) { @@ -49,12 +50,12 @@ function AppUpdatedModalContent(props) {
diff --git a/frontend/src/Calendar/Agenda/AgendaEvent.js b/frontend/src/Calendar/Agenda/AgendaEvent.js index 97c9ab7cc..f0216c9a4 100644 --- a/frontend/src/Calendar/Agenda/AgendaEvent.js +++ b/frontend/src/Calendar/Agenda/AgendaEvent.js @@ -7,6 +7,7 @@ import getStatusStyle from 'Calendar/getStatusStyle'; import Icon from 'Components/Icon'; import Link from 'Components/Link/Link'; import { icons, kinds } from 'Helpers/Props'; +import translate from 'Utilities/String/translate'; import styles from './AgendaEvent.css'; class AgendaEvent extends Component { @@ -109,7 +110,7 @@ class AgendaEvent extends Component { } @@ -121,7 +122,7 @@ class AgendaEvent extends Component { className={styles.statusIcon} name={icons.MOVIE_FILE} kind={kinds.WARNING} - title="Quality cutoff has not been met" + title={translate('QualityCutoffHasNotBeenMet')} /> } diff --git a/frontend/src/Calendar/CalendarPage.js b/frontend/src/Calendar/CalendarPage.js index 33a9e2230..b087be106 100644 --- a/frontend/src/Calendar/CalendarPage.js +++ b/frontend/src/Calendar/CalendarPage.js @@ -98,7 +98,7 @@ class CalendarPage extends Component { const isMeasured = this.state.width > 0; return ( - + } @@ -97,7 +98,7 @@ class CalendarEvent extends Component { className={styles.statusIcon} name={icons.MOVIE_FILE} kind={kinds.WARNING} - title="Quality cutoff has not been met" + title={translate('QualityCutoffHasNotBeenMet')} /> } diff --git a/frontend/src/Calendar/Options/CalendarOptionsModalContent.js b/frontend/src/Calendar/Options/CalendarOptionsModalContent.js index 3ca303deb..32650184b 100644 --- a/frontend/src/Calendar/Options/CalendarOptionsModalContent.js +++ b/frontend/src/Calendar/Options/CalendarOptionsModalContent.js @@ -111,38 +111,38 @@ class CalendarOptionsModalContent extends Component { -
+
- Show Movie Information + {translate('ShowMovieInformation')} - Icon for Cutoff Unmet + {translate('IconForCutoffUnmet')}
-
+
- First Day of Week + {translate('FirstDayOfWeek')} - Week Column Header + {translate('WeekColumnHeader')} - Time Format + {translate('TimeFormat')} - Enable Color-Impaired Mode + {translate('EnableColorImpairedMode')} diff --git a/frontend/src/Calendar/iCal/CalendarLinkModalContent.js b/frontend/src/Calendar/iCal/CalendarLinkModalContent.js index 95b4fcbe4..f4fa69226 100644 --- a/frontend/src/Calendar/iCal/CalendarLinkModalContent.js +++ b/frontend/src/Calendar/iCal/CalendarLinkModalContent.js @@ -115,37 +115,37 @@ class CalendarLinkModalContent extends Component { - Include Unmonitored + {translate('IncludeUnmonitored')} - Show as All-Day Events + {translate('ShowAsAllDayEvents')} - Tags + {translate('Tags')} @@ -153,14 +153,14 @@ class CalendarLinkModalContent extends Component { - iCal Feed + {translate('ICalFeed')} } */} diff --git a/frontend/src/Components/NotFound.js b/frontend/src/Components/NotFound.js index cdd6eda2c..cd424ce09 100644 --- a/frontend/src/Components/NotFound.js +++ b/frontend/src/Components/NotFound.js @@ -1,11 +1,12 @@ import PropTypes from 'prop-types'; import React from 'react'; import PageContent from 'Components/Page/PageContent'; +import translate from 'Utilities/String/translate'; import styles from './NotFound.css'; function NotFound({ message }) { return ( - +
{message} diff --git a/frontend/src/Components/Page/Header/PageHeader.js b/frontend/src/Components/Page/Header/PageHeader.js index 756c50f0a..5d40ce323 100644 --- a/frontend/src/Components/Page/Header/PageHeader.js +++ b/frontend/src/Components/Page/Header/PageHeader.js @@ -4,6 +4,7 @@ import keyboardShortcuts, { shortcuts } from 'Components/keyboardShortcuts'; import IconButton from 'Components/Link/IconButton'; import Link from 'Components/Link/Link'; import { icons } from 'Helpers/Props'; +import translate from 'Utilities/String/translate'; import KeyboardShortcutsModal from './KeyboardShortcutsModal'; import MovieSearchInputConnector from './MovieSearchInputConnector'; import PageHeaderActionsMenuConnector from './PageHeaderActionsMenuConnector'; @@ -79,7 +80,7 @@ class PageHeader extends Component { /> diff --git a/frontend/src/DiscoverMovie/Overview/AddListMovieOverview.js b/frontend/src/DiscoverMovie/Overview/AddListMovieOverview.js index df15c4e47..8fc05e5dc 100644 --- a/frontend/src/DiscoverMovie/Overview/AddListMovieOverview.js +++ b/frontend/src/DiscoverMovie/Overview/AddListMovieOverview.js @@ -13,6 +13,7 @@ import MovieDetailsLinks from 'Movie/Details/MovieDetailsLinks'; import MoviePoster from 'Movie/MoviePoster'; import dimensions from 'Styles/Variables/dimensions'; import fonts from 'Styles/Variables/fonts'; +import translate from 'Utilities/String/translate'; import styles from './AddListMovieOverview.css'; const columnPadding = parseInt(dimensions.movieIndexColumnPadding); @@ -163,7 +164,7 @@ class AddListMovieOverview extends Component { size={12} /> } - title="Links" + title={translate('Links')} body={ - Poster Size + {translate('PosterSize')} - Show Studio + {translate('ShowStudio')} } - title="Links" + title={translate('Links')} body={ } diff --git a/frontend/src/DiscoverMovie/Posters/Options/AddListMoviePosterOptionsModalContent.js b/frontend/src/DiscoverMovie/Posters/Options/AddListMoviePosterOptionsModalContent.js index 73f156258..6accf5a21 100644 --- a/frontend/src/DiscoverMovie/Posters/Options/AddListMoviePosterOptionsModalContent.js +++ b/frontend/src/DiscoverMovie/Posters/Options/AddListMoviePosterOptionsModalContent.js @@ -87,7 +87,7 @@ class AddListMoviePosterOptionsModalContent extends Component { - Poster Size + {translate('PosterSize')} - Show Title + {translate('ShowTitle')} diff --git a/frontend/src/DiscoverMovie/Table/AddListMovieRow.js b/frontend/src/DiscoverMovie/Table/AddListMovieRow.js index 9b00c55ba..77816d217 100644 --- a/frontend/src/DiscoverMovie/Table/AddListMovieRow.js +++ b/frontend/src/DiscoverMovie/Table/AddListMovieRow.js @@ -12,6 +12,7 @@ import AddNewDiscoverMovieModal from 'DiscoverMovie/AddNewDiscoverMovieModal'; import ExcludeMovieModal from 'DiscoverMovie/Exclusion/ExcludeMovieModal'; import { icons } from 'Helpers/Props'; import MovieDetailsLinks from 'Movie/Details/MovieDetailsLinks'; +import translate from 'Utilities/String/translate'; import ListMovieStatusCell from './ListMovieStatusCell'; import styles from './AddListMovieRow.css'; @@ -218,7 +219,7 @@ class AddListMovieRow extends Component { size={12} /> } - title="Links" + title={translate('Links')} body={ diff --git a/frontend/src/InteractiveImport/Interactive/InteractiveImportRow.js b/frontend/src/InteractiveImport/Interactive/InteractiveImportRow.js index c6d43921c..7737aba73 100644 --- a/frontend/src/InteractiveImport/Interactive/InteractiveImportRow.js +++ b/frontend/src/InteractiveImport/Interactive/InteractiveImportRow.js @@ -14,6 +14,7 @@ import SelectQualityModal from 'InteractiveImport/Quality/SelectQualityModal'; import MovieLanguage from 'Movie/MovieLanguage'; import MovieQuality from 'Movie/MovieQuality'; import formatBytes from 'Utilities/Number/formatBytes'; +import translate from 'Utilities/String/translate'; import InteractiveImportRowCellPlaceholder from './InteractiveImportRowCellPlaceholder'; import styles from './InteractiveImportRow.css'; @@ -182,7 +183,7 @@ class InteractiveImportRow extends Component { { @@ -201,7 +202,7 @@ class InteractiveImportRow extends Component { { @@ -241,7 +242,7 @@ class InteractiveImportRow extends Component { kind={kinds.DANGER} /> } - title="Release Rejected" + title={translate('ReleaseRejected')} body={
    { diff --git a/frontend/src/InteractiveImport/Quality/SelectQualityModalContent.js b/frontend/src/InteractiveImport/Quality/SelectQualityModalContent.js index eeca16ae9..122cacb09 100644 --- a/frontend/src/InteractiveImport/Quality/SelectQualityModalContent.js +++ b/frontend/src/InteractiveImport/Quality/SelectQualityModalContent.js @@ -99,7 +99,7 @@ class SelectQualityModalContent extends Component { isPopulated && !error && - Quality + {translate('Quality')} - Proper + {translate('Proper')} - Real + {translate('Real')} } - title="Indexer Flags" + title={translate('IndexerFlags')} body={
      { @@ -232,7 +233,7 @@ class InteractiveSearchRow extends Component { kind={kinds.DANGER} /> } - title="Release Rejected" + title={translate('ReleaseRejected')} body={
        { @@ -265,9 +266,9 @@ class InteractiveSearchRow extends Component { diff --git a/frontend/src/Movie/Details/Credits/Cast/MovieCastPoster.js b/frontend/src/Movie/Details/Credits/Cast/MovieCastPoster.js index 7f278900e..dfce45d39 100644 --- a/frontend/src/Movie/Details/Credits/Cast/MovieCastPoster.js +++ b/frontend/src/Movie/Details/Credits/Cast/MovieCastPoster.js @@ -5,6 +5,7 @@ import IconButton from 'Components/Link/IconButton'; import { icons } from 'Helpers/Props'; import MovieHeadshot from 'Movie/MovieHeadshot'; import EditNetImportModalConnector from 'Settings/NetImport/NetImport/EditNetImportModalConnector'; +import translate from 'Utilities/String/translate'; import styles from '../MovieCreditPoster.css'; class MovieCastPoster extends Component { @@ -87,13 +88,13 @@ class MovieCastPoster extends Component { : } diff --git a/frontend/src/Movie/Details/Credits/Crew/MovieCrewPoster.js b/frontend/src/Movie/Details/Credits/Crew/MovieCrewPoster.js index e570084cb..56d5a93b8 100644 --- a/frontend/src/Movie/Details/Credits/Crew/MovieCrewPoster.js +++ b/frontend/src/Movie/Details/Credits/Crew/MovieCrewPoster.js @@ -5,6 +5,7 @@ import IconButton from 'Components/Link/IconButton'; import { icons } from 'Helpers/Props'; import MovieHeadshot from 'Movie/MovieHeadshot'; import EditNetImportModalConnector from 'Settings/NetImport/NetImport/EditNetImportModalConnector'; +import translate from 'Utilities/String/translate'; import styles from '../MovieCreditPoster.css'; class MovieCrewPoster extends Component { @@ -87,13 +88,13 @@ class MovieCrewPoster extends Component { : } diff --git a/frontend/src/Movie/Details/MovieDetails.js b/frontend/src/Movie/Details/MovieDetails.js index 3de323f32..751a7e543 100644 --- a/frontend/src/Movie/Details/MovieDetails.js +++ b/frontend/src/Movie/Details/MovieDetails.js @@ -291,7 +291,7 @@ class MovieDetails extends Component { label={translate('RefreshAndScan')} iconName={icons.REFRESH} spinningName={icons.REFRESH} - title="Refresh information and scan disk" + title={translate('RefreshInformationAndScanDisk')} isSpinning={isRefreshing} onPress={onRefreshPress} /> @@ -410,7 +410,7 @@ class MovieDetails extends Component { anchor={ year } - title="Release Dates" + title={translate('ReleaseDates')} body={ } - title="Links" + title={translate('Links')} body={ } - title="Tags" + title={translate('Tags')} body={ } diff --git a/frontend/src/Movie/Details/MovieDetailsPageConnector.js b/frontend/src/Movie/Details/MovieDetailsPageConnector.js index e66505178..7a3ba0d29 100644 --- a/frontend/src/Movie/Details/MovieDetailsPageConnector.js +++ b/frontend/src/Movie/Details/MovieDetailsPageConnector.js @@ -9,6 +9,7 @@ import NotFound from 'Components/NotFound'; import PageContent from 'Components/Page/PageContent'; import PageContentBody from 'Components/Page/PageContentBody'; import getErrorMessage from 'Utilities/Object/getErrorMessage'; +import translate from 'Utilities/String/translate'; import MovieDetailsConnector from './MovieDetailsConnector'; import styles from './MovieDetails.css'; @@ -92,7 +93,7 @@ class MovieDetailsPageConnector extends Component { if (!titleSlug) { return ( ); } diff --git a/frontend/src/Movie/Edit/EditMovieModalContent.js b/frontend/src/Movie/Edit/EditMovieModalContent.js index 3ee73c593..f356ee213 100644 --- a/frontend/src/Movie/Edit/EditMovieModalContent.js +++ b/frontend/src/Movie/Edit/EditMovieModalContent.js @@ -92,7 +92,7 @@ class EditMovieModalContent extends Component { diff --git a/frontend/src/Movie/Editor/Delete/DeleteMovieModalContent.js b/frontend/src/Movie/Editor/Delete/DeleteMovieModalContent.js index 74209303d..6d63202ec 100644 --- a/frontend/src/Movie/Editor/Delete/DeleteMovieModalContent.js +++ b/frontend/src/Movie/Editor/Delete/DeleteMovieModalContent.js @@ -79,13 +79,13 @@ class DeleteMovieModalContent extends Component { - Add List Exclusion + {translate('AddListExclusion')} diff --git a/frontend/src/Movie/Editor/Tags/TagsModalContent.js b/frontend/src/Movie/Editor/Tags/TagsModalContent.js index 920a99a10..d4f0fd891 100644 --- a/frontend/src/Movie/Editor/Tags/TagsModalContent.js +++ b/frontend/src/Movie/Editor/Tags/TagsModalContent.js @@ -75,7 +75,7 @@ class TagsModalContent extends Component { - Tags + {translate('Tags')} - Apply Tags + {translate('ApplyTags')} - Result + {translate('Result')}
        { diff --git a/frontend/src/Movie/History/MovieHistoryRow.js b/frontend/src/Movie/History/MovieHistoryRow.js index 5c1e05547..d762a1971 100644 --- a/frontend/src/Movie/History/MovieHistoryRow.js +++ b/frontend/src/Movie/History/MovieHistoryRow.js @@ -11,6 +11,7 @@ import { icons, kinds } from 'Helpers/Props'; import MovieFormats from 'Movie/MovieFormats'; import MovieLanguage from 'Movie/MovieLanguage'; import MovieQuality from 'Movie/MovieQuality'; +import translate from 'Utilities/String/translate'; import styles from './MovieHistoryRow.css'; class MovieHistoryRow extends Component { @@ -117,7 +118,7 @@ class MovieHistoryRow extends Component { { eventType === 'grabbed' && @@ -127,9 +128,9 @@ class MovieHistoryRow extends Component { diff --git a/frontend/src/Movie/Index/MovieIndexFooter.js b/frontend/src/Movie/Index/MovieIndexFooter.js index 5e87a4cbe..91858e2c2 100644 --- a/frontend/src/Movie/Index/MovieIndexFooter.js +++ b/frontend/src/Movie/Index/MovieIndexFooter.js @@ -4,6 +4,7 @@ import React, { PureComponent } from 'react'; import DescriptionList from 'Components/DescriptionList/DescriptionList'; import DescriptionListItem from 'Components/DescriptionList/DescriptionListItem'; import formatBytes from 'Utilities/Number/formatBytes'; +import translate from 'Utilities/String/translate'; import styles from './MovieIndexFooter.css'; class MovieIndexFooter extends PureComponent { @@ -78,31 +79,31 @@ class MovieIndexFooter extends PureComponent {
        diff --git a/frontend/src/Movie/Index/Overview/MovieIndexOverview.js b/frontend/src/Movie/Index/Overview/MovieIndexOverview.js index 0ed3f4279..83bf1257d 100644 --- a/frontend/src/Movie/Index/Overview/MovieIndexOverview.js +++ b/frontend/src/Movie/Index/Overview/MovieIndexOverview.js @@ -15,6 +15,7 @@ import MovieIndexProgressBar from 'Movie/Index/ProgressBar/MovieIndexProgressBar import MoviePoster from 'Movie/MoviePoster'; import dimensions from 'Styles/Variables/dimensions'; import fonts from 'Styles/Variables/fonts'; +import translate from 'Utilities/String/translate'; import MovieIndexOverviewInfo from './MovieIndexOverviewInfo'; import styles from './MovieIndexOverview.css'; @@ -190,7 +191,7 @@ class MovieIndexOverview extends Component { size={12} /> } - title="Links" + title={translate('Links')} body={ @@ -213,7 +214,7 @@ class MovieIndexOverview extends Component { @@ -221,7 +222,7 @@ class MovieIndexOverview extends Component {
        diff --git a/frontend/src/Movie/Index/Posters/MovieIndexPoster.js b/frontend/src/Movie/Index/Posters/MovieIndexPoster.js index 9f6a618d1..d4dfbf6dc 100644 --- a/frontend/src/Movie/Index/Posters/MovieIndexPoster.js +++ b/frontend/src/Movie/Index/Posters/MovieIndexPoster.js @@ -13,6 +13,7 @@ import MovieDetailsLinks from 'Movie/Details/MovieDetailsLinks'; import EditMovieModalConnector from 'Movie/Edit/EditMovieModalConnector'; import MovieIndexProgressBar from 'Movie/Index/ProgressBar/MovieIndexProgressBar'; import MoviePoster from 'Movie/MoviePoster'; +import translate from 'Utilities/String/translate'; import MovieIndexPosterInfo from './MovieIndexPosterInfo'; import styles from './MovieIndexPoster.css'; @@ -141,7 +142,7 @@ class MovieIndexPoster extends Component { @@ -151,7 +152,7 @@ class MovieIndexPoster extends Component { @@ -160,7 +161,7 @@ class MovieIndexPoster extends Component { @@ -172,7 +173,7 @@ class MovieIndexPoster extends Component { size={12} /> } - title="Links" + title={translate('Links')} body={ } diff --git a/frontend/src/Movie/Index/Posters/Options/MovieIndexPosterOptionsModalContent.js b/frontend/src/Movie/Index/Posters/Options/MovieIndexPosterOptionsModalContent.js index f8bcf869f..d673e493d 100644 --- a/frontend/src/Movie/Index/Posters/Options/MovieIndexPosterOptionsModalContent.js +++ b/frontend/src/Movie/Index/Posters/Options/MovieIndexPosterOptionsModalContent.js @@ -145,7 +145,7 @@ class MovieIndexPosterOptionsModalContent extends Component { type={inputTypes.CHECK} name="showTitle" value={showTitle} - helpText="Show movie title under poster" + helpText={translate('ShowTitleHelpText')} onChange={this.onChangePosterOption} /> @@ -157,7 +157,7 @@ class MovieIndexPosterOptionsModalContent extends Component { type={inputTypes.CHECK} name="showMonitored" value={showMonitored} - helpText="Show monitored status under poster" + helpText={translate('ShowMonitoredHelpText')} onChange={this.onChangePosterOption} /> @@ -169,7 +169,7 @@ class MovieIndexPosterOptionsModalContent extends Component { type={inputTypes.CHECK} name="showQualityProfile" value={showQualityProfile} - helpText="Show quality profile under poster" + helpText={translate('ShowQualityProfileHelpText')} onChange={this.onChangePosterOption} /> diff --git a/frontend/src/Movie/Index/Table/MovieIndexActionsCell.js b/frontend/src/Movie/Index/Table/MovieIndexActionsCell.js index afccd7c73..47c937536 100644 --- a/frontend/src/Movie/Index/Table/MovieIndexActionsCell.js +++ b/frontend/src/Movie/Index/Table/MovieIndexActionsCell.js @@ -6,6 +6,7 @@ import VirtualTableRowCell from 'Components/Table/Cells/VirtualTableRowCell'; import { icons } from 'Helpers/Props'; import DeleteMovieModal from 'Movie/Delete/DeleteMovieModal'; import EditMovieModalConnector from 'Movie/Edit/EditMovieModalConnector'; +import translate from 'Utilities/String/translate'; class MovieIndexActionsCell extends Component { @@ -65,14 +66,14 @@ class MovieIndexActionsCell extends Component { > diff --git a/frontend/src/Movie/Index/Table/MovieIndexRow.js b/frontend/src/Movie/Index/Table/MovieIndexRow.js index ae341df96..e5fae7080 100644 --- a/frontend/src/Movie/Index/Table/MovieIndexRow.js +++ b/frontend/src/Movie/Index/Table/MovieIndexRow.js @@ -18,6 +18,7 @@ import MovieTitleLink from 'Movie/MovieTitleLink'; import formatRuntime from 'Utilities/Date/formatRuntime'; import formatBytes from 'Utilities/Number/formatBytes'; import titleCase from 'Utilities/String/titleCase'; +import translate from 'Utilities/String/translate'; import MovieStatusCell from './MovieStatusCell'; import styles from './MovieIndexRow.css'; @@ -369,7 +370,7 @@ class MovieIndexRow extends Component { size={12} /> } - title="Links" + title={translate('Links')} body={ @@ -392,7 +393,7 @@ class MovieIndexRow extends Component { @@ -400,7 +401,7 @@ class MovieIndexRow extends Component { diff --git a/frontend/src/Movie/MovieFileStatus.js b/frontend/src/Movie/MovieFileStatus.js index 1d6438af1..4f8e67b6a 100644 --- a/frontend/src/Movie/MovieFileStatus.js +++ b/frontend/src/Movie/MovieFileStatus.js @@ -6,6 +6,7 @@ import Label from 'Components/Label'; import ProgressBar from 'Components/ProgressBar'; import { icons, kinds, sizes } from 'Helpers/Props'; import MovieQuality from 'Movie/MovieQuality'; +import translate from 'Utilities/String/translate'; import styles from './MovieFileStatus.css'; function MovieFileStatus(props) { @@ -51,7 +52,7 @@ function MovieFileStatus(props) {
        ); @@ -77,7 +78,7 @@ function MovieFileStatus(props) { return (