diff --git a/frontend/src/Activity/Blacklist/BlacklistDetailsModal.js b/frontend/src/Activity/Blacklist/BlacklistDetailsModal.js
index 75b963955..1fbb4b6dc 100644
--- a/frontend/src/Activity/Blacklist/BlacklistDetailsModal.js
+++ b/frontend/src/Activity/Blacklist/BlacklistDetailsModal.js
@@ -8,6 +8,7 @@ import ModalBody from 'Components/Modal/ModalBody';
import ModalContent from 'Components/Modal/ModalContent';
import ModalFooter from 'Components/Modal/ModalFooter';
import ModalHeader from 'Components/Modal/ModalHeader';
+import translate from 'Utilities/String/translate';
class BlacklistDetailsModal extends Component {
@@ -68,7 +69,7 @@ class BlacklistDetailsModal extends Component {
diff --git a/frontend/src/Activity/History/Details/HistoryDetailsModal.js b/frontend/src/Activity/History/Details/HistoryDetailsModal.js
index 68f49dedf..b5e5c0622 100644
--- a/frontend/src/Activity/History/Details/HistoryDetailsModal.js
+++ b/frontend/src/Activity/History/Details/HistoryDetailsModal.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';
import HistoryDetails from './HistoryDetails';
import styles from './HistoryDetailsModal.css';
@@ -79,7 +80,7 @@ function HistoryDetailsModal(props) {
diff --git a/frontend/src/Activity/Queue/RemoveQueueItemModal.js b/frontend/src/Activity/Queue/RemoveQueueItemModal.js
index ed6c12bb4..971fed74b 100644
--- a/frontend/src/Activity/Queue/RemoveQueueItemModal.js
+++ b/frontend/src/Activity/Queue/RemoveQueueItemModal.js
@@ -10,6 +10,7 @@ import ModalContent from 'Components/Modal/ModalContent';
import ModalFooter from 'Components/Modal/ModalFooter';
import ModalHeader from 'Components/Modal/ModalHeader';
import { inputTypes, kinds, sizes } from 'Helpers/Props';
+import translate from 'Utilities/String/translate';
class RemoveQueueItemModal extends Component {
@@ -116,7 +117,7 @@ class RemoveQueueItemModal extends Component {
diff --git a/frontend/src/Calendar/Options/CalendarOptionsModalContent.js b/frontend/src/Calendar/Options/CalendarOptionsModalContent.js
index 363709c58..3ca303deb 100644
--- a/frontend/src/Calendar/Options/CalendarOptionsModalContent.js
+++ b/frontend/src/Calendar/Options/CalendarOptionsModalContent.js
@@ -12,6 +12,7 @@ import ModalFooter from 'Components/Modal/ModalFooter';
import ModalHeader from 'Components/Modal/ModalHeader';
import { inputTypes } from 'Helpers/Props';
import { firstDayOfWeekOptions, timeFormatOptions, weekColumnOptions } from 'Settings/UI/UISettings';
+import translate from 'Utilities/String/translate';
class CalendarOptionsModalContent extends Component {
@@ -193,7 +194,7 @@ class CalendarOptionsModalContent extends Component {
- Close
+ {translate('Close')}
diff --git a/frontend/src/Calendar/iCal/CalendarLinkModalContent.js b/frontend/src/Calendar/iCal/CalendarLinkModalContent.js
index 9b9e767af..95b4fcbe4 100644
--- a/frontend/src/Calendar/iCal/CalendarLinkModalContent.js
+++ b/frontend/src/Calendar/iCal/CalendarLinkModalContent.js
@@ -13,6 +13,7 @@ import ModalContent from 'Components/Modal/ModalContent';
import ModalFooter from 'Components/Modal/ModalFooter';
import ModalHeader from 'Components/Modal/ModalHeader';
import { icons, inputTypes, kinds, sizes } from 'Helpers/Props';
+import translate from 'Utilities/String/translate';
function getUrls(state) {
const {
@@ -186,7 +187,7 @@ class CalendarLinkModalContent extends Component {
- Close
+ {translate('Close')}
diff --git a/frontend/src/Components/FileBrowser/FileBrowserModalContent.js b/frontend/src/Components/FileBrowser/FileBrowserModalContent.js
index da0657e8e..5e3bd0dc0 100644
--- a/frontend/src/Components/FileBrowser/FileBrowserModalContent.js
+++ b/frontend/src/Components/FileBrowser/FileBrowserModalContent.js
@@ -14,18 +14,19 @@ import Scroller from 'Components/Scroller/Scroller';
import Table from 'Components/Table/Table';
import TableBody from 'Components/Table/TableBody';
import { kinds, scrollDirections } from 'Helpers/Props';
+import translate from 'Utilities/String/translate';
import FileBrowserRow from './FileBrowserRow';
import styles from './FileBrowserModalContent.css';
const columns = [
{
name: 'type',
- label: 'Type',
+ label: translate('Type'),
isVisible: true
},
{
name: 'name',
- label: 'Name',
+ label: translate('Name'),
isVisible: true
}
];
@@ -223,13 +224,13 @@ class FileBrowserModalContent extends Component {
- Cancel
+ {translate('Cancel')}
- Ok
+ {translate('Ok')}
diff --git a/frontend/src/Components/Filter/Builder/FilterBuilderModalContent.js b/frontend/src/Components/Filter/Builder/FilterBuilderModalContent.js
index b1fa35d09..10250e2dd 100644
--- a/frontend/src/Components/Filter/Builder/FilterBuilderModalContent.js
+++ b/frontend/src/Components/Filter/Builder/FilterBuilderModalContent.js
@@ -8,6 +8,7 @@ import ModalContent from 'Components/Modal/ModalContent';
import ModalFooter from 'Components/Modal/ModalFooter';
import ModalHeader from 'Components/Modal/ModalHeader';
import { inputTypes } from 'Helpers/Props';
+import translate from 'Utilities/String/translate';
import FilterBuilderRow from './FilterBuilderRow';
import styles from './FilterBuilderModalContent.css';
@@ -192,7 +193,7 @@ class FilterBuilderModalContent extends Component {
- Cancel
+ {translate('Cancel')}
- Save
+ {translate('Save')}
diff --git a/frontend/src/Components/Filter/CustomFilters/CustomFiltersModalContent.js b/frontend/src/Components/Filter/CustomFilters/CustomFiltersModalContent.js
index 116bd3e8b..e517f5008 100644
--- a/frontend/src/Components/Filter/CustomFilters/CustomFiltersModalContent.js
+++ b/frontend/src/Components/Filter/CustomFilters/CustomFiltersModalContent.js
@@ -59,7 +59,7 @@ function CustomFiltersModalContent(props) {
- Close
+ {translate('Close')}
diff --git a/frontend/src/Components/Modal/ModalError.js b/frontend/src/Components/Modal/ModalError.js
index af8ea1a87..daf39bac4 100644
--- a/frontend/src/Components/Modal/ModalError.js
+++ b/frontend/src/Components/Modal/ModalError.js
@@ -6,6 +6,7 @@ import ModalBody from 'Components/Modal/ModalBody';
import ModalContent from 'Components/Modal/ModalContent';
import ModalFooter from 'Components/Modal/ModalFooter';
import ModalHeader from 'Components/Modal/ModalHeader';
+import translate from 'Utilities/String/translate';
import styles from './ModalError.css';
function ModalError(props) {
@@ -33,7 +34,7 @@ function ModalError(props) {
- Close
+ {translate('Close')}
);
diff --git a/frontend/src/Components/Page/Header/KeyboardShortcutsModalContent.js b/frontend/src/Components/Page/Header/KeyboardShortcutsModalContent.js
index e1a0e19e7..5918479e8 100644
--- a/frontend/src/Components/Page/Header/KeyboardShortcutsModalContent.js
+++ b/frontend/src/Components/Page/Header/KeyboardShortcutsModalContent.js
@@ -6,6 +6,7 @@ import ModalBody from 'Components/Modal/ModalBody';
import ModalContent from 'Components/Modal/ModalContent';
import ModalFooter from 'Components/Modal/ModalFooter';
import ModalHeader from 'Components/Modal/ModalHeader';
+import translate from 'Utilities/String/translate';
import styles from './KeyboardShortcutsModalContent.css';
function getShortcuts() {
@@ -75,7 +76,7 @@ function KeyboardShortcutsModalContent(props) {
- Close
+ {translate('Close')}
diff --git a/frontend/src/Components/Page/Header/MovieSearchInput.js b/frontend/src/Components/Page/Header/MovieSearchInput.js
index a304d3a28..783f28acd 100644
--- a/frontend/src/Components/Page/Header/MovieSearchInput.js
+++ b/frontend/src/Components/Page/Header/MovieSearchInput.js
@@ -214,7 +214,7 @@ class MovieSearchInput extends Component {
}
suggestionGroups.push({
- title: 'Add New Movie',
+ title: translate('AddNewMovie'),
suggestions: [
{
type: ADD_NEW_TYPE,
diff --git a/frontend/src/Components/Page/Header/PageHeader.css b/frontend/src/Components/Page/Header/PageHeader.css
index e5cf50c0f..354ae73a1 100644
--- a/frontend/src/Components/Page/Header/PageHeader.css
+++ b/frontend/src/Components/Page/Header/PageHeader.css
@@ -12,7 +12,7 @@
display: flex;
align-items: center;
flex: 0 0 $sidebarWidth;
- padding-left: 20px;
+ padding-left: 35px;
}
.logoFull,
@@ -21,8 +21,8 @@
}
.logoFull {
- width: 144px;
- height: 48px;
+ width: 120px;
+ height: 40px;
}
.logo {
diff --git a/frontend/src/Components/Page/Header/PageHeaderActionsMenu.js b/frontend/src/Components/Page/Header/PageHeaderActionsMenu.js
index d03fb8d79..1ea9450f1 100644
--- a/frontend/src/Components/Page/Header/PageHeaderActionsMenu.js
+++ b/frontend/src/Components/Page/Header/PageHeaderActionsMenu.js
@@ -7,6 +7,7 @@ import MenuContent from 'Components/Menu/MenuContent';
import MenuItem from 'Components/Menu/MenuItem';
import MenuItemSeparator from 'Components/Menu/MenuItemSeparator';
import { align, icons, kinds } from 'Helpers/Props';
+import translate from 'Utilities/String/translate';
import styles from './PageHeaderActionsMenu.css';
function PageHeaderActionsMenu(props) {
@@ -32,7 +33,7 @@ function PageHeaderActionsMenu(props) {
className={styles.itemIcon}
name={icons.KEYBOARD}
/>
- Keyboard Shortcuts
+ {translate('KeyboardShortcuts')}
@@ -42,7 +43,7 @@ function PageHeaderActionsMenu(props) {
className={styles.itemIcon}
name={icons.RESTART}
/>
- Restart
+ {translate('Restart')}
{
diff --git a/frontend/src/Components/Table/TableOptions/TableOptionsModal.js b/frontend/src/Components/Table/TableOptions/TableOptionsModal.js
index 29de7502b..e05cf1fe8 100644
--- a/frontend/src/Components/Table/TableOptions/TableOptionsModal.js
+++ b/frontend/src/Components/Table/TableOptions/TableOptionsModal.js
@@ -15,6 +15,7 @@ import ModalContent from 'Components/Modal/ModalContent';
import ModalFooter from 'Components/Modal/ModalFooter';
import ModalHeader from 'Components/Modal/ModalHeader';
import { inputTypes } from 'Helpers/Props';
+import translate from 'Utilities/String/translate';
import TableOptionsColumn from './TableOptionsColumn';
import TableOptionsColumnDragPreview from './TableOptionsColumnDragPreview';
import TableOptionsColumnDragSource from './TableOptionsColumnDragSource';
@@ -136,7 +137,7 @@ class TableOptionsModal extends Component {
isOpen ?
- Table Options
+ {translate('TableOptions')}
@@ -144,7 +145,7 @@ class TableOptionsModal extends Component {
{
hasPageSize ?
- Page Size
+ {translate('PageSize')}
- Columns
+ {translate('Columns')}
@@ -231,7 +232,7 @@ class TableOptionsModal extends Component {
- Close
+ {translate('Close')}
:
diff --git a/frontend/src/DiscoverMovie/Exclusion/ExcludeMovieModalContent.js b/frontend/src/DiscoverMovie/Exclusion/ExcludeMovieModalContent.js
index b065c3d02..4eb4577b1 100644
--- a/frontend/src/DiscoverMovie/Exclusion/ExcludeMovieModalContent.js
+++ b/frontend/src/DiscoverMovie/Exclusion/ExcludeMovieModalContent.js
@@ -6,6 +6,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';
import styles from './ExcludeMovieModalContent.css';
class ExcludeMovieModalContent extends Component {
@@ -44,7 +45,7 @@ class ExcludeMovieModalContent extends Component {
- Close
+ {translate('Close')}
- All movies are hidden due to the applied filter.
+ {translate('AllMoviesHiddenDueToFilter')}
);
@@ -28,7 +29,7 @@ function NoDiscoverMovie(props) {
to="/add/import"
kind={kinds.PRIMARY}
>
- Import Existing Movies
+ {translate('ImportExistingMovies')}
@@ -37,7 +38,7 @@ function NoDiscoverMovie(props) {
to="/add/new"
kind={kinds.PRIMARY}
>
- Add New Movie
+ {translate('AddNewMovie')}
@@ -46,7 +47,7 @@ function NoDiscoverMovie(props) {
to="/settings/netimports"
kind={kinds.PRIMARY}
>
- Add List
+ {translate('AddList')}
diff --git a/frontend/src/DiscoverMovie/Overview/Options/AddListMovieOverviewOptionsModalContent.js b/frontend/src/DiscoverMovie/Overview/Options/AddListMovieOverviewOptionsModalContent.js
index d02cf9c4e..9397fb57b 100644
--- a/frontend/src/DiscoverMovie/Overview/Options/AddListMovieOverviewOptionsModalContent.js
+++ b/frontend/src/DiscoverMovie/Overview/Options/AddListMovieOverviewOptionsModalContent.js
@@ -11,6 +11,7 @@ import ModalContent from 'Components/Modal/ModalContent';
import ModalFooter from 'Components/Modal/ModalFooter';
import ModalHeader from 'Components/Modal/ModalHeader';
import { inputTypes } from 'Helpers/Props';
+import translate from 'Utilities/String/translate';
const posterSizeOptions = [
{ key: 'small', value: 'Small' },
@@ -114,7 +115,7 @@ class AddListMovieOverviewOptionsModalContent extends Component {
- Close
+ {translate('Close')}
diff --git a/frontend/src/DiscoverMovie/Posters/Options/AddListMoviePosterOptionsModalContent.js b/frontend/src/DiscoverMovie/Posters/Options/AddListMoviePosterOptionsModalContent.js
index 7e0ebb0e5..73f156258 100644
--- a/frontend/src/DiscoverMovie/Posters/Options/AddListMoviePosterOptionsModalContent.js
+++ b/frontend/src/DiscoverMovie/Posters/Options/AddListMoviePosterOptionsModalContent.js
@@ -11,6 +11,7 @@ import ModalContent from 'Components/Modal/ModalContent';
import ModalFooter from 'Components/Modal/ModalFooter';
import ModalHeader from 'Components/Modal/ModalHeader';
import { inputTypes } from 'Helpers/Props';
+import translate from 'Utilities/String/translate';
const posterSizeOptions = [
{ key: 'small', value: 'Small' },
@@ -115,7 +116,7 @@ class AddListMoviePosterOptionsModalContent extends Component {
- Close
+ {translate('Close')}
diff --git a/frontend/src/InteractiveImport/Folder/InteractiveImportSelectFolderModalContent.js b/frontend/src/InteractiveImport/Folder/InteractiveImportSelectFolderModalContent.js
index 882af7610..2fe50bc10 100644
--- a/frontend/src/InteractiveImport/Folder/InteractiveImportSelectFolderModalContent.js
+++ b/frontend/src/InteractiveImport/Folder/InteractiveImportSelectFolderModalContent.js
@@ -10,6 +10,7 @@ import ModalHeader from 'Components/Modal/ModalHeader';
import Table from 'Components/Table/Table';
import TableBody from 'Components/Table/TableBody';
import { icons, kinds, sizes } from 'Helpers/Props';
+import translate from 'Utilities/String/translate';
import RecentFolderRow from './RecentFolderRow';
import styles from './InteractiveImportSelectFolderModalContent.css';
@@ -149,7 +150,7 @@ class InteractiveImportSelectFolderModalContent extends Component {
- Cancel
+ {translate('Cancel')}
diff --git a/frontend/src/InteractiveImport/Interactive/InteractiveImportModalContent.js b/frontend/src/InteractiveImport/Interactive/InteractiveImportModalContent.js
index f0385f2b9..1aab8f6dc 100644
--- a/frontend/src/InteractiveImport/Interactive/InteractiveImportModalContent.js
+++ b/frontend/src/InteractiveImport/Interactive/InteractiveImportModalContent.js
@@ -20,6 +20,7 @@ import SelectLanguageModal from 'InteractiveImport/Language/SelectLanguageModal'
import SelectMovieModal from 'InteractiveImport/Movie/SelectMovieModal';
import SelectQualityModal from 'InteractiveImport/Quality/SelectQualityModal';
import getErrorMessage from 'Utilities/Object/getErrorMessage';
+import translate from 'Utilities/String/translate';
import getSelectedIds from 'Utilities/Table/getSelectedIds';
import selectAll from 'Utilities/Table/selectAll';
import toggleSelected from 'Utilities/Table/toggleSelected';
@@ -29,31 +30,31 @@ import styles from './InteractiveImportModalContent.css';
const columns = [
{
name: 'relativePath',
- label: 'Relative Path',
+ label: translate('RelativePath'),
isSortable: true,
isVisible: true
},
{
name: 'movie',
- label: 'Movie',
+ label: translate('Movie'),
isSortable: true,
isVisible: true
},
{
name: 'quality',
- label: 'Quality',
+ label: translate('Quality'),
isSortable: true,
isVisible: true
},
{
name: 'languages',
- label: 'Languages',
+ label: translate('Languages'),
isSortable: true,
isVisible: true
},
{
name: 'size',
- label: 'Size',
+ label: translate('Size'),
isSortable: true,
isVisible: true
},
@@ -73,8 +74,8 @@ const filterExistingFilesOptions = {
};
const importModeOptions = [
- { key: 'move', value: 'Move Files' },
- { key: 'copy', value: 'Hardlink/Copy Files' }
+ { key: 'move', value: translate('MoveFiles') },
+ { key: 'copy', value: translate('HardlinkCopyFiles') }
];
const SELECT = 'select';
@@ -331,7 +332,7 @@ class InteractiveImportModalContent extends Component {
- Cancel
+ {translate('Cancel')}
{
diff --git a/frontend/src/InteractiveImport/Language/SelectLanguageModalContent.js b/frontend/src/InteractiveImport/Language/SelectLanguageModalContent.js
index f63bb40a3..08bf61e4d 100644
--- a/frontend/src/InteractiveImport/Language/SelectLanguageModalContent.js
+++ b/frontend/src/InteractiveImport/Language/SelectLanguageModalContent.js
@@ -11,6 +11,7 @@ import ModalContent from 'Components/Modal/ModalContent';
import ModalFooter from 'Components/Modal/ModalFooter';
import ModalHeader from 'Components/Modal/ModalHeader';
import { inputTypes, kinds, sizes } from 'Helpers/Props';
+import translate from 'Utilities/String/translate';
import styles from './SelectLanguageModalContent.css';
class SelectLanguageModalContent extends Component {
@@ -118,7 +119,7 @@ class SelectLanguageModalContent extends Component {
- Cancel
+ {translate('Cancel')}
{relativePath}
- Cancel
+ {translate('Cancel')}
diff --git a/frontend/src/InteractiveImport/Quality/SelectQualityModalContent.js b/frontend/src/InteractiveImport/Quality/SelectQualityModalContent.js
index 2ca5ca3e9..eeca16ae9 100644
--- a/frontend/src/InteractiveImport/Quality/SelectQualityModalContent.js
+++ b/frontend/src/InteractiveImport/Quality/SelectQualityModalContent.js
@@ -11,6 +11,7 @@ import ModalContent from 'Components/Modal/ModalContent';
import ModalFooter from 'Components/Modal/ModalFooter';
import ModalHeader from 'Components/Modal/ModalHeader';
import { inputTypes, kinds } from 'Helpers/Props';
+import translate from 'Utilities/String/translate';
class SelectQualityModalContent extends Component {
@@ -136,7 +137,7 @@ class SelectQualityModalContent extends Component {
- Cancel
+ {translate('Cancel')}
- Close
+ {translate('Close')}
- Edit - {title}
+ {translate('Edit')} - {title}
@@ -87,7 +87,7 @@ class EditMovieModalContent extends Component {
{...otherProps}
>
- Monitored
+ {translate('Monitored')}
- Minimum Availability
+ {translate('MinimumAvailability')}
- Quality Profile
+ {translate('QualityProfile')}
- Path
+ {translate('Path')}
- Tags
+ {translate('Tags')}
- Cancel
+ {translate('Cancel')}
- Save
+ {translate('Save')}
diff --git a/frontend/src/Movie/Editor/Delete/DeleteMovieModalContent.js b/frontend/src/Movie/Editor/Delete/DeleteMovieModalContent.js
index cd9f6c4f0..74209303d 100644
--- a/frontend/src/Movie/Editor/Delete/DeleteMovieModalContent.js
+++ b/frontend/src/Movie/Editor/Delete/DeleteMovieModalContent.js
@@ -121,7 +121,7 @@ class DeleteMovieModalContent extends Component {
- Cancel
+ {translate('Cancel')}
- Cancel
+ {translate('Cancel')}
- Cancel
+ {translate('Cancel')}
- Apply
+ {translate('Apply')}
diff --git a/frontend/src/Movie/History/MovieHistoryTableContent.js b/frontend/src/Movie/History/MovieHistoryTableContent.js
index 4b1c50ab2..b43ae68a9 100644
--- a/frontend/src/Movie/History/MovieHistoryTableContent.js
+++ b/frontend/src/Movie/History/MovieHistoryTableContent.js
@@ -16,17 +16,17 @@ const columns = [
},
{
name: 'sourceTitle',
- label: 'Source Title',
+ label: translate('SourceTitle'),
isVisible: true
},
{
name: 'languages',
- label: 'Languages',
+ label: translate('Languages'),
isVisible: true
},
{
name: 'quality',
- label: 'Quality',
+ label: translate('Quality'),
isVisible: true
},
{
diff --git a/frontend/src/Movie/Index/Menus/MovieIndexSortMenu.js b/frontend/src/Movie/Index/Menus/MovieIndexSortMenu.js
index 6b30d38ca..fe006f414 100644
--- a/frontend/src/Movie/Index/Menus/MovieIndexSortMenu.js
+++ b/frontend/src/Movie/Index/Menus/MovieIndexSortMenu.js
@@ -4,6 +4,7 @@ import MenuContent from 'Components/Menu/MenuContent';
import SortMenu from 'Components/Menu/SortMenu';
import SortMenuItem from 'Components/Menu/SortMenuItem';
import { align, sortDirections } from 'Helpers/Props';
+import translate from 'Utilities/String/translate';
function MovieIndexSortMenu(props) {
const {
@@ -34,7 +35,7 @@ function MovieIndexSortMenu(props) {
sortDirection={sortDirection}
onPress={onSortSelect}
>
- Title
+ {translate('Title')}
- Studio
+ {translate('Studio')}
- Quality Profile
+ {translate('QualityProfile')}
- Added
+ {translate('Added')}
- Year
+ {translate('Year')}
- In Cinemas
+ {translate('InCinemas')}
- Physical Release
+ {translate('PhysicalRelease')}
- Digital Release
+ {translate('DigitalRelease')}
- Path
+ {translate('Path')}
- Size on Disk
+ {translate('SizeOnDisk')}
- Certification
+ {translate('Certification')}
diff --git a/frontend/src/Movie/Index/Overview/Options/MovieIndexOverviewOptionsModalContent.js b/frontend/src/Movie/Index/Overview/Options/MovieIndexOverviewOptionsModalContent.js
index ddab3f4e5..2ca54734c 100644
--- a/frontend/src/Movie/Index/Overview/Options/MovieIndexOverviewOptionsModalContent.js
+++ b/frontend/src/Movie/Index/Overview/Options/MovieIndexOverviewOptionsModalContent.js
@@ -11,6 +11,7 @@ import ModalContent from 'Components/Modal/ModalContent';
import ModalFooter from 'Components/Modal/ModalFooter';
import ModalHeader from 'Components/Modal/ModalHeader';
import { inputTypes } from 'Helpers/Props';
+import translate from 'Utilities/String/translate';
const posterSizeOptions = [
{ key: 'small', value: 'Small' },
@@ -242,7 +243,7 @@ class MovieIndexOverviewOptionsModalContent extends Component {
- Close
+ {translate('Close')}
diff --git a/frontend/src/Movie/Index/Posters/Options/MovieIndexPosterOptionsModalContent.js b/frontend/src/Movie/Index/Posters/Options/MovieIndexPosterOptionsModalContent.js
index b75bc606a..2a64f40b7 100644
--- a/frontend/src/Movie/Index/Posters/Options/MovieIndexPosterOptionsModalContent.js
+++ b/frontend/src/Movie/Index/Posters/Options/MovieIndexPosterOptionsModalContent.js
@@ -11,6 +11,7 @@ import ModalContent from 'Components/Modal/ModalContent';
import ModalFooter from 'Components/Modal/ModalFooter';
import ModalHeader from 'Components/Modal/ModalHeader';
import { inputTypes } from 'Helpers/Props';
+import translate from 'Utilities/String/translate';
const posterSizeOptions = [
{ key: 'small', value: 'Small' },
@@ -191,7 +192,7 @@ class MovieIndexPosterOptionsModalContent extends Component {
- Close
+ {translate('Close')}
diff --git a/frontend/src/Movie/NoMovie.js b/frontend/src/Movie/NoMovie.js
index 580417955..fc9108836 100644
--- a/frontend/src/Movie/NoMovie.js
+++ b/frontend/src/Movie/NoMovie.js
@@ -2,6 +2,7 @@ import PropTypes from 'prop-types';
import React from 'react';
import Button from 'Components/Link/Button';
import { kinds } from 'Helpers/Props';
+import translate from 'Utilities/String/translate';
import styles from './NoMovie.css';
function NoMovie(props) {
@@ -11,7 +12,7 @@ function NoMovie(props) {
return (
- All movies are hidden due to the applied filter.
+ {translate('AllMoviesHiddenDueToFilter')}
);
@@ -28,7 +29,7 @@ function NoMovie(props) {
to="/add/import"
kind={kinds.PRIMARY}
>
- Import Existing Movies
+ {translate('ImportExistingMovies')}
@@ -37,7 +38,7 @@ function NoMovie(props) {
to="/add/new"
kind={kinds.PRIMARY}
>
- Add New Movie
+ {translate('AddNewMovie')}
diff --git a/frontend/src/MovieFile/Editor/MovieFileEditorTableContent.js b/frontend/src/MovieFile/Editor/MovieFileEditorTableContent.js
index 92e8247f2..98c29482e 100644
--- a/frontend/src/MovieFile/Editor/MovieFileEditorTableContent.js
+++ b/frontend/src/MovieFile/Editor/MovieFileEditorTableContent.js
@@ -4,6 +4,7 @@ import IconButton from 'Components/Link/IconButton';
import Table from 'Components/Table/Table';
import TableBody from 'Components/Table/TableBody';
import { icons } from 'Helpers/Props';
+import translate from 'Utilities/String/translate';
import MovieFileEditorRow from './MovieFileEditorRow';
import styles from './MovieFileEditorTableContent.css';
@@ -15,32 +16,32 @@ const columns = [
},
{
name: 'videoCodec',
- label: 'Video Codec',
+ label: translate('VideoCodec'),
isVisible: true
},
{
name: 'audioInfo',
- label: 'Audio Info',
+ label: translate('AudioInfo'),
isVisible: true
},
{
name: 'size',
- label: 'Size',
+ label: translate('Size'),
isVisible: true
},
{
name: 'languages',
- label: 'Languages',
+ label: translate('Languages'),
isVisible: true
},
{
name: 'quality',
- label: 'Quality',
+ label: translate('Quality'),
isVisible: true
},
{
name: 'quality.customFormats',
- label: 'Formats',
+ label: translate('Formats'),
isVisible: true
},
{
diff --git a/frontend/src/MovieFile/Extras/ExtraFileTableContent.js b/frontend/src/MovieFile/Extras/ExtraFileTableContent.js
index d9a3a345e..829c0323d 100644
--- a/frontend/src/MovieFile/Extras/ExtraFileTableContent.js
+++ b/frontend/src/MovieFile/Extras/ExtraFileTableContent.js
@@ -4,23 +4,24 @@ import IconButton from 'Components/Link/IconButton';
import Table from 'Components/Table/Table';
import TableBody from 'Components/Table/TableBody';
import { icons } from 'Helpers/Props';
+import translate from 'Utilities/String/translate';
import ExtraFileRow from './ExtraFileRow';
import styles from './ExtraFileTableContent.css';
const columns = [
{
name: 'relativePath',
- label: 'Extra File',
+ label: translate('RelativePath'),
isVisible: true
},
{
name: 'extension',
- label: 'Extension',
+ label: translate('Extension'),
isVisible: true
},
{
name: 'type',
- label: 'Type',
+ label: translate('Type'),
isVisible: true
},
{
diff --git a/frontend/src/MovieFile/FileDetailsModal.js b/frontend/src/MovieFile/FileDetailsModal.js
index 5c729b346..7e6e3bf76 100644
--- a/frontend/src/MovieFile/FileDetailsModal.js
+++ b/frontend/src/MovieFile/FileDetailsModal.js
@@ -7,6 +7,7 @@ import ModalContent from 'Components/Modal/ModalContent';
import ModalFooter from 'Components/Modal/ModalFooter';
import ModalHeader from 'Components/Modal/ModalHeader';
import { sizes } from 'Helpers/Props';
+import translate from 'Utilities/String/translate';
import MediaInfoPopover from './Editor/MediaInfoPopover';
function FileDetailsModal(props) {
@@ -26,7 +27,7 @@ function FileDetailsModal(props) {
onModalClose={onModalClose}
>
- Details
+ {translate('Details')}
@@ -35,7 +36,7 @@ function FileDetailsModal(props) {
- Close
+ {translate('Close')}
diff --git a/frontend/src/MovieFile/MovieFileLanguageConnector.js b/frontend/src/MovieFile/MovieFileLanguageConnector.js
index 5b541326f..b7e8b8c0d 100644
--- a/frontend/src/MovieFile/MovieFileLanguageConnector.js
+++ b/frontend/src/MovieFile/MovieFileLanguageConnector.js
@@ -6,9 +6,9 @@ import createMovieFileSelector from 'Store/Selectors/createMovieFileSelector';
function createMapStateToProps() {
return createSelector(
createMovieFileSelector(),
- (episodeFile) => {
+ (movieFile) => {
return {
- language: episodeFile ? episodeFile.language : undefined
+ language: movieFile ? movieFile.language : undefined
};
}
);
diff --git a/frontend/src/MovieFile/Quality/SelectQualityModalContent.js b/frontend/src/MovieFile/Quality/SelectQualityModalContent.js
index 2ca5ca3e9..eeca16ae9 100644
--- a/frontend/src/MovieFile/Quality/SelectQualityModalContent.js
+++ b/frontend/src/MovieFile/Quality/SelectQualityModalContent.js
@@ -11,6 +11,7 @@ import ModalContent from 'Components/Modal/ModalContent';
import ModalFooter from 'Components/Modal/ModalFooter';
import ModalHeader from 'Components/Modal/ModalHeader';
import { inputTypes, kinds } from 'Helpers/Props';
+import translate from 'Utilities/String/translate';
class SelectQualityModalContent extends Component {
@@ -136,7 +137,7 @@ class SelectQualityModalContent extends Component {
- Cancel
+ {translate('Cancel')}
- Organize & Rename
+ {translate('OrganizeAndRename')}
@@ -110,8 +111,8 @@ class OrganizePreviewModalContent extends Component {
{
renameMovies ?
-
Success! My work is done, no files to rename.
:
-
Renaming is disabled, nothing to rename
+
{translate('OrganizeModalSuccess')}
:
+
{translate('OrganizeModalDisabled')}
}
}
@@ -121,14 +122,14 @@ class OrganizePreviewModalContent extends Component {
- All paths are relative to:
+ {translate('OrganizeModalAllPathsRelative')}
{path}
- Naming pattern:
+ {translate('OrganizeModalNamingPattern')}
{standardMovieFormat}
@@ -170,14 +171,14 @@ class OrganizePreviewModalContent extends Component {
- Cancel
+ {translate('Cancel')}
- Organize
+ {translate('Organize')}
diff --git a/frontend/src/RootFolder/RootFolderRow.js b/frontend/src/RootFolder/RootFolderRow.js
index f3550b12e..3a6551955 100644
--- a/frontend/src/RootFolder/RootFolderRow.js
+++ b/frontend/src/RootFolder/RootFolderRow.js
@@ -7,6 +7,7 @@ import TableRowCell from 'Components/Table/Cells/TableRowCell';
import TableRow from 'Components/Table/TableRow';
import { icons, kinds } from 'Helpers/Props';
import formatBytes from 'Utilities/Number/formatBytes';
+import translate from 'Utilities/String/translate';
import styles from './RootFolderRow.css';
function RootFolderRow(props) {
@@ -33,7 +34,7 @@ function RootFolderRow(props) {
className={styles.unavailableLabel}
kind={kinds.DANGER}
>
- Unavailable
+ {translate('Unavailable')}
:
@@ -56,7 +57,7 @@ function RootFolderRow(props) {
diff --git a/frontend/src/RootFolder/RootFolders.js b/frontend/src/RootFolder/RootFolders.js
index a07209ecc..639a364a9 100644
--- a/frontend/src/RootFolder/RootFolders.js
+++ b/frontend/src/RootFolder/RootFolders.js
@@ -3,22 +3,23 @@ import React from 'react';
import LoadingIndicator from 'Components/Loading/LoadingIndicator';
import Table from 'Components/Table/Table';
import TableBody from 'Components/Table/TableBody';
+import translate from 'Utilities/String/translate';
import RootFolderRowConnector from './RootFolderRowConnector';
const rootFolderColumns = [
{
name: 'path',
- label: 'Path',
+ label: translate('Path'),
isVisible: true
},
{
name: 'freeSpace',
- label: 'Free Space',
+ label: translate('FreeSpace'),
isVisible: true
},
{
name: 'unmappedFolders',
- label: 'Unmapped Folders',
+ label: translate('UnmappedFolders'),
isVisible: true
},
{
diff --git a/frontend/src/Settings/CustomFormats/CustomFormats/EditCustomFormatModalContent.js b/frontend/src/Settings/CustomFormats/CustomFormats/EditCustomFormatModalContent.js
index cdba50029..cb094234d 100644
--- a/frontend/src/Settings/CustomFormats/CustomFormats/EditCustomFormatModalContent.js
+++ b/frontend/src/Settings/CustomFormats/CustomFormats/EditCustomFormatModalContent.js
@@ -193,7 +193,7 @@ class EditCustomFormatModalContent extends Component {
- Cancel
+ {translate('Cancel')}
- Save
+ {translate('Save')}
diff --git a/frontend/src/Settings/CustomFormats/CustomFormats/Specifications/AddSpecificationItem.js b/frontend/src/Settings/CustomFormats/CustomFormats/Specifications/AddSpecificationItem.js
index dc5d428c6..15bba5468 100644
--- a/frontend/src/Settings/CustomFormats/CustomFormats/Specifications/AddSpecificationItem.js
+++ b/frontend/src/Settings/CustomFormats/CustomFormats/Specifications/AddSpecificationItem.js
@@ -5,6 +5,7 @@ import Link from 'Components/Link/Link';
import Menu from 'Components/Menu/Menu';
import MenuContent from 'Components/Menu/MenuContent';
import { sizes } from 'Helpers/Props';
+import translate from 'Utilities/String/translate';
import AddSpecificationPresetMenuItem from './AddSpecificationPresetMenuItem';
import styles from './AddSpecificationItem.css';
@@ -90,7 +91,7 @@ class AddSpecificationItem extends Component {
to={infoLink}
size={sizes.SMALL}
>
- More info
+ {translate('MoreInfo')}
diff --git a/frontend/src/Settings/CustomFormats/CustomFormats/Specifications/AddSpecificationModalContent.js b/frontend/src/Settings/CustomFormats/CustomFormats/Specifications/AddSpecificationModalContent.js
index 68911699e..145117fca 100644
--- a/frontend/src/Settings/CustomFormats/CustomFormats/Specifications/AddSpecificationModalContent.js
+++ b/frontend/src/Settings/CustomFormats/CustomFormats/Specifications/AddSpecificationModalContent.js
@@ -9,6 +9,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';
import AddSpecificationItem from './AddSpecificationItem';
import styles from './AddSpecificationModalContent.css';
@@ -74,7 +75,7 @@ class AddSpecificationModalContent extends Component {
- Close
+ {translate('Close')}
diff --git a/frontend/src/Settings/CustomFormats/CustomFormats/Specifications/EditSpecificationModalContent.js b/frontend/src/Settings/CustomFormats/CustomFormats/Specifications/EditSpecificationModalContent.js
index e8d7804b2..da24ffcdb 100644
--- a/frontend/src/Settings/CustomFormats/CustomFormats/Specifications/EditSpecificationModalContent.js
+++ b/frontend/src/Settings/CustomFormats/CustomFormats/Specifications/EditSpecificationModalContent.js
@@ -128,14 +128,14 @@ function EditSpecificationModalContent(props) {
- Cancel
+ {translate('Cancel')}
- Save
+ {translate('Save')}
diff --git a/frontend/src/Settings/DownloadClients/DownloadClients/AddDownloadClientItem.js b/frontend/src/Settings/DownloadClients/DownloadClients/AddDownloadClientItem.js
index 2ab7b01ac..f85201a46 100644
--- a/frontend/src/Settings/DownloadClients/DownloadClients/AddDownloadClientItem.js
+++ b/frontend/src/Settings/DownloadClients/DownloadClients/AddDownloadClientItem.js
@@ -5,6 +5,7 @@ import Link from 'Components/Link/Link';
import Menu from 'Components/Menu/Menu';
import MenuContent from 'Components/Menu/MenuContent';
import { sizes } from 'Helpers/Props';
+import translate from 'Utilities/String/translate';
import AddDownloadClientPresetMenuItem from './AddDownloadClientPresetMenuItem';
import styles from './AddDownloadClientItem.css';
@@ -90,7 +91,7 @@ class AddDownloadClientItem extends Component {
to={infoLink}
size={sizes.SMALL}
>
- More info
+ {translate('MoreInfo')}
diff --git a/frontend/src/Settings/DownloadClients/DownloadClients/AddDownloadClientModalContent.js b/frontend/src/Settings/DownloadClients/DownloadClients/AddDownloadClientModalContent.js
index d3069369a..59088617e 100644
--- a/frontend/src/Settings/DownloadClients/DownloadClients/AddDownloadClientModalContent.js
+++ b/frontend/src/Settings/DownloadClients/DownloadClients/AddDownloadClientModalContent.js
@@ -9,6 +9,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';
import AddDownloadClientItem from './AddDownloadClientItem';
import styles from './AddDownloadClientModalContent.css';
@@ -94,7 +95,7 @@ class AddDownloadClientModalContent extends Component {
- Close
+ {translate('Close')}
diff --git a/frontend/src/Settings/DownloadClients/DownloadClients/EditDownloadClientModalContent.js b/frontend/src/Settings/DownloadClients/DownloadClients/EditDownloadClientModalContent.js
index 6039e75dc..23b9cb388 100644
--- a/frontend/src/Settings/DownloadClients/DownloadClients/EditDownloadClientModalContent.js
+++ b/frontend/src/Settings/DownloadClients/DownloadClients/EditDownloadClientModalContent.js
@@ -154,13 +154,13 @@ class EditDownloadClientModalContent extends Component {
error={saveError}
onPress={onTestPress}
>
- Test
+ {translate('Test')}
- Cancel
+ {translate('Cancel')}
- Save
+ {translate('Save')}
diff --git a/frontend/src/Settings/DownloadClients/RemotePathMappings/EditRemotePathMappingModalContent.js b/frontend/src/Settings/DownloadClients/RemotePathMappings/EditRemotePathMappingModalContent.js
index 01f86736d..0724ee5c4 100644
--- a/frontend/src/Settings/DownloadClients/RemotePathMappings/EditRemotePathMappingModalContent.js
+++ b/frontend/src/Settings/DownloadClients/RemotePathMappings/EditRemotePathMappingModalContent.js
@@ -113,7 +113,7 @@ function EditRemotePathMappingModalContent(props) {
- Cancel
+ {translate('Cancel')}
- Save
+ {translate('Save')}
diff --git a/frontend/src/Settings/Indexers/Indexers/AddIndexerItem.js b/frontend/src/Settings/Indexers/Indexers/AddIndexerItem.js
index ad3c0003f..6d8e9fadc 100644
--- a/frontend/src/Settings/Indexers/Indexers/AddIndexerItem.js
+++ b/frontend/src/Settings/Indexers/Indexers/AddIndexerItem.js
@@ -5,6 +5,7 @@ import Link from 'Components/Link/Link';
import Menu from 'Components/Menu/Menu';
import MenuContent from 'Components/Menu/MenuContent';
import { sizes } from 'Helpers/Props';
+import translate from 'Utilities/String/translate';
import AddIndexerPresetMenuItem from './AddIndexerPresetMenuItem';
import styles from './AddIndexerItem.css';
@@ -90,7 +91,7 @@ class AddIndexerItem extends Component {
to={infoLink}
size={sizes.SMALL}
>
- More info
+ {translate('MoreInfo')}
diff --git a/frontend/src/Settings/Indexers/Indexers/AddIndexerModalContent.js b/frontend/src/Settings/Indexers/Indexers/AddIndexerModalContent.js
index d0ab36164..7b1dafeb1 100644
--- a/frontend/src/Settings/Indexers/Indexers/AddIndexerModalContent.js
+++ b/frontend/src/Settings/Indexers/Indexers/AddIndexerModalContent.js
@@ -9,6 +9,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';
import AddIndexerItem from './AddIndexerItem';
import styles from './AddIndexerModalContent.css';
@@ -94,7 +95,7 @@ class AddIndexerModalContent extends Component {
- Close
+ {translate('Close')}
diff --git a/frontend/src/Settings/Indexers/Indexers/EditIndexerModalContent.js b/frontend/src/Settings/Indexers/Indexers/EditIndexerModalContent.js
index 9dc977c5b..089611590 100644
--- a/frontend/src/Settings/Indexers/Indexers/EditIndexerModalContent.js
+++ b/frontend/src/Settings/Indexers/Indexers/EditIndexerModalContent.js
@@ -153,13 +153,13 @@ function EditIndexerModalContent(props) {
error={saveError}
onPress={onTestPress}
>
- Test
+ {translate('Test')}
- Cancel
+ {translate('Cancel')}
- Save
+ {translate('Save')}
diff --git a/frontend/src/Settings/Indexers/Restrictions/EditRestrictionModalContent.js b/frontend/src/Settings/Indexers/Restrictions/EditRestrictionModalContent.js
index 9eecc79d7..c2152a813 100644
--- a/frontend/src/Settings/Indexers/Restrictions/EditRestrictionModalContent.js
+++ b/frontend/src/Settings/Indexers/Restrictions/EditRestrictionModalContent.js
@@ -99,7 +99,7 @@ function EditRestrictionModalContent(props) {
- Cancel
+ {translate('Cancel')}
- Save
+ {translate('Save')}
diff --git a/frontend/src/Settings/MediaManagement/Naming/NamingModal.js b/frontend/src/Settings/MediaManagement/Naming/NamingModal.js
index 1909104f0..747ddede0 100644
--- a/frontend/src/Settings/MediaManagement/Naming/NamingModal.js
+++ b/frontend/src/Settings/MediaManagement/Naming/NamingModal.js
@@ -411,7 +411,7 @@ class NamingModal extends Component {
onSelectionChange={this.onInputSelectionChange}
/>
- Close
+ {translate('Close')}
diff --git a/frontend/src/Settings/Metadata/Metadata/EditMetadataModalContent.js b/frontend/src/Settings/Metadata/Metadata/EditMetadataModalContent.js
index 65f0da061..21e95b8be 100644
--- a/frontend/src/Settings/Metadata/Metadata/EditMetadataModalContent.js
+++ b/frontend/src/Settings/Metadata/Metadata/EditMetadataModalContent.js
@@ -12,6 +12,7 @@ import ModalContent from 'Components/Modal/ModalContent';
import ModalFooter from 'Components/Modal/ModalFooter';
import ModalHeader from 'Components/Modal/ModalHeader';
import { inputTypes } from 'Helpers/Props';
+import translate from 'Utilities/String/translate';
function EditMetadataModalContent(props) {
const {
@@ -74,7 +75,7 @@ function EditMetadataModalContent(props) {
- Cancel
+ {translate('Cancel')}
- Save
+ {translate('Save')}
diff --git a/frontend/src/Settings/NetImport/NetImport/AddNetImportItem.js b/frontend/src/Settings/NetImport/NetImport/AddNetImportItem.js
index de354a57c..8a26e0013 100644
--- a/frontend/src/Settings/NetImport/NetImport/AddNetImportItem.js
+++ b/frontend/src/Settings/NetImport/NetImport/AddNetImportItem.js
@@ -5,6 +5,7 @@ import Link from 'Components/Link/Link';
import Menu from 'Components/Menu/Menu';
import MenuContent from 'Components/Menu/MenuContent';
import { sizes } from 'Helpers/Props';
+import translate from 'Utilities/String/translate';
import AddNetImportPresetMenuItem from './AddNetImportPresetMenuItem';
import styles from './AddNetImportItem.css';
@@ -90,7 +91,7 @@ class AddNetImportItem extends Component {
to={infoLink}
size={sizes.SMALL}
>
- More info
+ {translate('MoreInfo')}
diff --git a/frontend/src/Settings/NetImport/NetImport/AddNetImportModalContent.js b/frontend/src/Settings/NetImport/NetImport/AddNetImportModalContent.js
index f614dcc65..4ea541d6c 100644
--- a/frontend/src/Settings/NetImport/NetImport/AddNetImportModalContent.js
+++ b/frontend/src/Settings/NetImport/NetImport/AddNetImportModalContent.js
@@ -10,6 +10,7 @@ import ModalFooter from 'Components/Modal/ModalFooter';
import ModalHeader from 'Components/Modal/ModalHeader';
import { kinds } from 'Helpers/Props';
import titleCase from 'Utilities/String/titleCase';
+import translate from 'Utilities/String/translate';
import AddNetImportItem from './AddNetImportItem';
import styles from './AddNetImportModalContent.css';
@@ -31,7 +32,7 @@ class AddNetImportModalContent extends Component {
return (
- Add List
+ {translate('AddList')}
@@ -83,7 +84,7 @@ class AddNetImportModalContent extends Component {
- Close
+ {translate('Close')}
diff --git a/frontend/src/Settings/NetImport/NetImport/EditNetImportModalContent.js b/frontend/src/Settings/NetImport/NetImport/EditNetImportModalContent.js
index 370f7996d..ea7cb02b5 100644
--- a/frontend/src/Settings/NetImport/NetImport/EditNetImportModalContent.js
+++ b/frontend/src/Settings/NetImport/NetImport/EditNetImportModalContent.js
@@ -196,13 +196,13 @@ function EditNetImportModalContent(props) {
error={saveError}
onPress={onTestPress}
>
- Test
+ {translate('Test')}
- Cancel
+ {translate('Cancel')}
- Save
+ {translate('Save')}
diff --git a/frontend/src/Settings/NetImport/NetImportExclusions/EditNetImportExclusionModalContent.js b/frontend/src/Settings/NetImport/NetImportExclusions/EditNetImportExclusionModalContent.js
index e7943946b..6b3e6bd4c 100644
--- a/frontend/src/Settings/NetImport/NetImportExclusions/EditNetImportExclusionModalContent.js
+++ b/frontend/src/Settings/NetImport/NetImportExclusions/EditNetImportExclusionModalContent.js
@@ -113,7 +113,7 @@ function EditNetImportExclusionModalContent(props) {
- Cancel
+ {translate('Cancel')}
- Save
+ {translate('Save')}
diff --git a/frontend/src/Settings/Notifications/Notifications/AddNotificationItem.js b/frontend/src/Settings/Notifications/Notifications/AddNotificationItem.js
index 88586b293..0ac3d6634 100644
--- a/frontend/src/Settings/Notifications/Notifications/AddNotificationItem.js
+++ b/frontend/src/Settings/Notifications/Notifications/AddNotificationItem.js
@@ -5,6 +5,7 @@ import Link from 'Components/Link/Link';
import Menu from 'Components/Menu/Menu';
import MenuContent from 'Components/Menu/MenuContent';
import { sizes } from 'Helpers/Props';
+import translate from 'Utilities/String/translate';
import AddNotificationPresetMenuItem from './AddNotificationPresetMenuItem';
import styles from './AddNotificationItem.css';
@@ -90,7 +91,7 @@ class AddNotificationItem extends Component {
to={infoLink}
size={sizes.SMALL}
>
- More info
+ {translate('MoreInfo')}
diff --git a/frontend/src/Settings/Notifications/Notifications/AddNotificationModalContent.js b/frontend/src/Settings/Notifications/Notifications/AddNotificationModalContent.js
index ae1d5de7d..da292cce6 100644
--- a/frontend/src/Settings/Notifications/Notifications/AddNotificationModalContent.js
+++ b/frontend/src/Settings/Notifications/Notifications/AddNotificationModalContent.js
@@ -6,6 +6,7 @@ import ModalBody from 'Components/Modal/ModalBody';
import ModalContent from 'Components/Modal/ModalContent';
import ModalFooter from 'Components/Modal/ModalFooter';
import ModalHeader from 'Components/Modal/ModalHeader';
+import translate from 'Utilities/String/translate';
import AddNotificationItem from './AddNotificationItem';
import styles from './AddNotificationModalContent.css';
@@ -65,7 +66,7 @@ class AddNotificationModalContent extends Component {
- Close
+ {translate('Close')}
diff --git a/frontend/src/Settings/Notifications/Notifications/EditNotificationModalContent.js b/frontend/src/Settings/Notifications/Notifications/EditNotificationModalContent.js
index 6fd131387..b36360b91 100644
--- a/frontend/src/Settings/Notifications/Notifications/EditNotificationModalContent.js
+++ b/frontend/src/Settings/Notifications/Notifications/EditNotificationModalContent.js
@@ -228,13 +228,13 @@ function EditNotificationModalContent(props) {
error={saveError}
onPress={onTestPress}
>
- Test
+ {translate('Test')}
- Cancel
+ {translate('Cancel')}
- Save
+ {translate('Save')}
diff --git a/frontend/src/Settings/Profiles/Delay/EditDelayProfileModalContent.js b/frontend/src/Settings/Profiles/Delay/EditDelayProfileModalContent.js
index b0d227b34..973d00b72 100644
--- a/frontend/src/Settings/Profiles/Delay/EditDelayProfileModalContent.js
+++ b/frontend/src/Settings/Profiles/Delay/EditDelayProfileModalContent.js
@@ -144,7 +144,7 @@ function EditDelayProfileModalContent(props) {
- Cancel
+ {translate('Cancel')}
- Save
+ {translate('Save')}
diff --git a/frontend/src/Settings/Profiles/Quality/EditQualityProfileModalContent.js b/frontend/src/Settings/Profiles/Quality/EditQualityProfileModalContent.js
index c5ba912f3..a3125daef 100644
--- a/frontend/src/Settings/Profiles/Quality/EditQualityProfileModalContent.js
+++ b/frontend/src/Settings/Profiles/Quality/EditQualityProfileModalContent.js
@@ -307,7 +307,7 @@ class EditQualityProfileModalContent extends Component {
- Cancel
+ {translate('Cancel')}
- Save
+ {translate('Save')}
diff --git a/frontend/src/Settings/SettingsToolbar.js b/frontend/src/Settings/SettingsToolbar.js
index a7934f5fa..62692ca76 100644
--- a/frontend/src/Settings/SettingsToolbar.js
+++ b/frontend/src/Settings/SettingsToolbar.js
@@ -5,6 +5,7 @@ import PageToolbar from 'Components/Page/Toolbar/PageToolbar';
import PageToolbarButton from 'Components/Page/Toolbar/PageToolbarButton';
import PageToolbarSection from 'Components/Page/Toolbar/PageToolbarSection';
import { icons } from 'Helpers/Props';
+import translate from 'Utilities/String/translate';
import AdvancedSettingsButton from './AdvancedSettingsButton';
import PendingChangesModal from './PendingChangesModal';
@@ -61,7 +62,7 @@ class SettingsToolbar extends Component {
{
showSave &&
- Close
+ {translate('Close')}
diff --git a/frontend/src/Store/Actions/movieIndexActions.js b/frontend/src/Store/Actions/movieIndexActions.js
index 76afd6745..d42e14afb 100644
--- a/frontend/src/Store/Actions/movieIndexActions.js
+++ b/frontend/src/Store/Actions/movieIndexActions.js
@@ -219,24 +219,24 @@ export const defaultState = {
filterBuilderProps: [
{
name: 'monitored',
- label: 'Monitored',
+ label: translate('Monitored'),
type: filterBuilderTypes.EXACT,
valueType: filterBuilderValueTypes.BOOL
},
{
name: 'title',
- label: 'Title',
+ label: translate('Title'),
type: filterBuilderTypes.STRING
},
{
name: 'status',
- label: 'Status',
+ label: translate('Status'),
type: filterBuilderTypes.EXACT,
valueType: filterBuilderValueTypes.MOVIE_STATUS
},
{
name: 'studio',
- label: 'Studio',
+ label: translate('Studio'),
type: filterBuilderTypes.EXACT,
optionsSelector: function(items) {
const tagList = items.reduce((acc, movie) => {
@@ -255,7 +255,7 @@ export const defaultState = {
},
{
name: 'collection',
- label: 'Collection',
+ label: translate('Collection'),
type: filterBuilderTypes.ARRAY,
optionsSelector: function(items) {
const collectionList = items.reduce((acc, movie) => {
@@ -274,58 +274,58 @@ export const defaultState = {
},
{
name: 'qualityProfileId',
- label: 'Quality Profile',
+ label: translate('QualityProfile'),
type: filterBuilderTypes.EXACT,
valueType: filterBuilderValueTypes.QUALITY_PROFILE
},
{
name: 'added',
- label: 'Added',
+ label: translate('Added'),
type: filterBuilderTypes.DATE,
valueType: filterBuilderValueTypes.DATE
},
{
name: 'year',
- label: 'Year',
+ label: translate('Year'),
type: filterBuilderTypes.NUMBER
},
{
name: 'inCinemas',
- label: 'In Cinemas',
+ label: translate('InCinemas'),
type: filterBuilderTypes.DATE,
valueType: filterBuilderValueTypes.DATE
},
{
name: 'physicalRelease',
- label: 'Physical Release',
+ label: translate('PhysicalRelease'),
type: filterBuilderTypes.DATE,
valueType: filterBuilderValueTypes.DATE
},
{
name: 'digitalRelease',
- label: 'Digital Release',
+ label: translate('DigitalRelease'),
type: filterBuilderTypes.DATE,
valueType: filterBuilderValueTypes.DATE
},
{
name: 'runtime',
- label: 'Runtime',
+ label: translate('Runtime'),
type: filterBuilderTypes.NUMBER
},
{
name: 'path',
- label: 'Path',
+ label: translate('Path'),
type: filterBuilderTypes.STRING
},
{
name: 'sizeOnDisk',
- label: 'Size on Disk',
+ label: translate('SizeOnDisk'),
type: filterBuilderTypes.NUMBER,
valueType: filterBuilderValueTypes.BYTES
},
{
name: 'genres',
- label: 'Genres',
+ label: translate('Genres'),
type: filterBuilderTypes.ARRAY,
optionsSelector: function(items) {
const genreList = items.reduce((acc, movie) => {
@@ -344,12 +344,12 @@ export const defaultState = {
},
{
name: 'ratings',
- label: 'Rating',
+ label: translate('Ratings'),
type: filterBuilderTypes.NUMBER
},
{
name: 'certification',
- label: 'Certification',
+ label: translate('Certification'),
type: filterBuilderTypes.EXACT,
optionsSelector: function(items) {
const certificationList = items.reduce((acc, movie) => {
@@ -368,7 +368,7 @@ export const defaultState = {
},
{
name: 'tags',
- label: 'Tags',
+ label: translate('Tags'),
type: filterBuilderTypes.ARRAY,
valueType: filterBuilderValueTypes.TAG
}
diff --git a/frontend/src/Store/Actions/oAuthActions.js b/frontend/src/Store/Actions/oAuthActions.js
index 76721ebf8..94a4a655c 100644
--- a/frontend/src/Store/Actions/oAuthActions.js
+++ b/frontend/src/Store/Actions/oAuthActions.js
@@ -7,6 +7,7 @@ import createAjaxRequest from 'Utilities/createAjaxRequest';
import requestAction from 'Utilities/requestAction';
import getSectionState from 'Utilities/State/getSectionState';
import updateSectionState from 'Utilities/State/updateSectionState';
+import translate from 'Utilities/String/translate';
import createHandleActions from './Creators/createHandleActions';
//
@@ -59,7 +60,7 @@ function showOAuthWindow(url, payload) {
responseJSON: [
{
propertyName: payload.name,
- errorMessage: 'Pop-ups are being blocked by your browser'
+ errorMessage: translate('OAuthPopupMessage')
}
]
};
diff --git a/frontend/src/Store/Actions/releaseActions.js b/frontend/src/Store/Actions/releaseActions.js
index ac98f4fd7..a7ee93b41 100644
--- a/frontend/src/Store/Actions/releaseActions.js
+++ b/frontend/src/Store/Actions/releaseActions.js
@@ -114,50 +114,50 @@ export const defaultState = {
filterBuilderProps: [
{
name: 'title',
- label: 'Title',
+ label: translate('Title'),
type: filterBuilderTypes.STRING
},
{
name: 'age',
- label: 'Age',
+ label: translate('Age'),
type: filterBuilderTypes.NUMBER
},
{
name: 'protocol',
- label: 'Protocol',
+ label: translate('Protocol'),
type: filterBuilderTypes.EXACT,
valueType: filterBuilderValueTypes.PROTOCOL
},
{
name: 'indexerId',
- label: 'Indexer',
+ label: translate('Indexer'),
type: filterBuilderTypes.EXACT,
valueType: filterBuilderValueTypes.INDEXER
},
{
name: 'size',
- label: 'Size',
+ label: translate('Size'),
type: filterBuilderTypes.NUMBER
},
{
name: 'seeders',
- label: 'Seeders',
+ label: translate('Seeders'),
type: filterBuilderTypes.NUMBER
},
{
name: 'peers',
- label: 'Peers',
+ label: translate('Peers'),
type: filterBuilderTypes.NUMBER
},
{
name: 'quality',
- label: 'Quality',
+ label: translate('Quality'),
type: filterBuilderTypes.EXACT,
valueType: filterBuilderValueTypes.QUALITY
},
{
name: 'rejectionCount',
- label: 'Rejection Count',
+ label: translate('RejectionCount'),
type: filterBuilderTypes.NUMBER
}
],
diff --git a/frontend/src/Store/Actions/systemActions.js b/frontend/src/Store/Actions/systemActions.js
index 96e2d8966..abc12e3d6 100644
--- a/frontend/src/Store/Actions/systemActions.js
+++ b/frontend/src/Store/Actions/systemActions.js
@@ -81,27 +81,27 @@ export const defaultState = {
columns: [
{
name: 'level',
- columnLabel: 'Level',
+ columnLabel: translate('Level'),
isSortable: false,
isVisible: true,
isModifiable: false
},
{
name: 'logger',
- label: 'Component',
+ label: translate('Component'),
isSortable: false,
isVisible: true,
isModifiable: false
},
{
name: 'message',
- label: 'Message',
+ label: translate('Message'),
isVisible: true,
isModifiable: false
},
{
name: 'time',
- label: 'Time',
+ label: translate('Time'),
isSortable: true,
isVisible: true,
isModifiable: false
@@ -125,7 +125,7 @@ export const defaultState = {
},
{
key: 'info',
- label: 'Info',
+ label: translate('Info'),
filters: [
{
key: 'level',
@@ -136,7 +136,7 @@ export const defaultState = {
},
{
key: 'warn',
- label: 'Warn',
+ label: translate('Warn'),
filters: [
{
key: 'level',
@@ -147,7 +147,7 @@ export const defaultState = {
},
{
key: 'error',
- label: 'Error',
+ label: translate('Error'),
filters: [
{
key: 'level',
diff --git a/frontend/src/System/Backup/Backups.js b/frontend/src/System/Backup/Backups.js
index a4d72fef0..309f124be 100644
--- a/frontend/src/System/Backup/Backups.js
+++ b/frontend/src/System/Backup/Backups.js
@@ -20,12 +20,12 @@ const columns = [
},
{
name: 'name',
- label: 'Name',
+ label: translate('Name'),
isVisible: true
},
{
name: 'time',
- label: 'Time',
+ label: translate('Time'),
isVisible: true
},
{
diff --git a/frontend/src/System/Backup/RestoreBackupModalContent.js b/frontend/src/System/Backup/RestoreBackupModalContent.js
index fe36ebfc6..40aec125f 100644
--- a/frontend/src/System/Backup/RestoreBackupModalContent.js
+++ b/frontend/src/System/Backup/RestoreBackupModalContent.js
@@ -9,6 +9,7 @@ import ModalContent from 'Components/Modal/ModalContent';
import ModalFooter from 'Components/Modal/ModalFooter';
import ModalHeader from 'Components/Modal/ModalHeader';
import { icons, kinds } from 'Helpers/Props';
+import translate from 'Utilities/String/translate';
import styles from './RestoreBackupModalContent.css';
function getErrorMessage(error) {
@@ -200,7 +201,7 @@ class RestoreBackupModalContent extends Component {
- Cancel
+ {translate('Cancel')}
- Close
+ {translate('Close')}
diff --git a/frontend/src/System/Status/DiskSpace/DiskSpace.js b/frontend/src/System/Status/DiskSpace/DiskSpace.js
index 20081a119..69ef31f5a 100644
--- a/frontend/src/System/Status/DiskSpace/DiskSpace.js
+++ b/frontend/src/System/Status/DiskSpace/DiskSpace.js
@@ -15,17 +15,17 @@ import styles from './DiskSpace.css';
const columns = [
{
name: 'path',
- label: 'Location',
+ label: translate('Location'),
isVisible: true
},
{
name: 'freeSpace',
- label: 'Free Space',
+ label: translate('FreeSpace'),
isVisible: true
},
{
name: 'totalSpace',
- label: 'Total Space',
+ label: translate('TotalSpace'),
isVisible: true
},
{
diff --git a/frontend/src/System/Status/Health/Health.js b/frontend/src/System/Status/Health/Health.js
index 32bda1089..63382f831 100644
--- a/frontend/src/System/Status/Health/Health.js
+++ b/frontend/src/System/Status/Health/Health.js
@@ -63,7 +63,7 @@ function getTestLink(source, props) {
return (
@@ -73,7 +73,7 @@ function getTestLink(source, props) {
return (
@@ -92,12 +92,12 @@ const columns = [
},
{
name: 'message',
- label: 'Message',
+ label: translate('Message'),
isVisible: true
},
{
name: 'actions',
- label: 'Actions',
+ label: translate('Actions'),
isVisible: true
}
];
@@ -140,7 +140,7 @@ class Health extends Component {
{
!healthIssues &&
- No issues with your configuration
+ {translate('HealthNoIssues')}
}
diff --git a/frontend/src/System/Tasks/Queued/QueuedTaskRow.js b/frontend/src/System/Tasks/Queued/QueuedTaskRow.js
index df3fd4a93..7071481e1 100644
--- a/frontend/src/System/Tasks/Queued/QueuedTaskRow.js
+++ b/frontend/src/System/Tasks/Queued/QueuedTaskRow.js
@@ -11,6 +11,7 @@ import formatDate from 'Utilities/Date/formatDate';
import formatDateTime from 'Utilities/Date/formatDateTime';
import formatTimeSpan from 'Utilities/Date/formatTimeSpan';
import titleCase from 'Utilities/String/titleCase';
+import translate from 'Utilities/String/translate';
import styles from './QueuedTaskRow.css';
function getStatusIconProps(status, message) {
@@ -234,7 +235,7 @@ class QueuedTaskRow extends Component {