Translations for Discover list

This commit is contained in:
Bogdan 2024-02-15 00:11:12 +02:00
parent 9620207503
commit 2ecc57cd31
3 changed files with 31 additions and 19 deletions

View File

@ -7,6 +7,7 @@ import VirtualTableHeader from 'Components/Table/VirtualTableHeader';
import VirtualTableHeaderCell from 'Components/Table/VirtualTableHeaderCell'; import VirtualTableHeaderCell from 'Components/Table/VirtualTableHeaderCell';
import VirtualTableSelectAllHeaderCell from 'Components/Table/VirtualTableSelectAllHeaderCell'; import VirtualTableSelectAllHeaderCell from 'Components/Table/VirtualTableSelectAllHeaderCell';
import { icons } from 'Helpers/Props'; import { icons } from 'Helpers/Props';
import translate from 'Utilities/String/translate';
import DiscoverMovieTableOptionsConnector from './DiscoverMovieTableOptionsConnector'; import DiscoverMovieTableOptionsConnector from './DiscoverMovieTableOptionsConnector';
import styles from './DiscoverMovieHeader.css'; import styles from './DiscoverMovieHeader.css';
@ -98,6 +99,7 @@ class DiscoverMovieHeader extends Component {
<Icon <Icon
name={icons.RECOMMENDED} name={icons.RECOMMENDED}
size={12} size={12}
title={translate('Recommendation')}
/> />
</VirtualTableHeaderCell> </VirtualTableHeaderCell>
); );
@ -115,6 +117,7 @@ class DiscoverMovieHeader extends Component {
<Icon <Icon
name={icons.TRENDING} name={icons.TRENDING}
size={12} size={12}
title={translate('Trending')}
/> />
</VirtualTableHeaderCell> </VirtualTableHeaderCell>
); );
@ -132,6 +135,7 @@ class DiscoverMovieHeader extends Component {
<Icon <Icon
name={icons.POPULAR} name={icons.POPULAR}
size={12} size={12}
title={translate('Popular')}
/> />
</VirtualTableHeaderCell> </VirtualTableHeaderCell>
); );

View File

@ -83,21 +83,21 @@ export const defaultState = {
}, },
{ {
name: 'isRecommendation', name: 'isRecommendation',
columnLabel: 'Recommedation', columnLabel: () => translate('Recommendation'),
isSortable: true, isSortable: true,
isVisible: true, isVisible: true,
isModifiable: false isModifiable: false
}, },
{ {
name: 'isTrending', name: 'isTrending',
columnLabel: 'Trending', columnLabel: () => translate('Trending'),
isSortable: true, isSortable: true,
isVisible: true, isVisible: true,
isModifiable: false isModifiable: false
}, },
{ {
name: 'isPopular', name: 'isPopular',
columnLabel: 'Popular', columnLabel: () => translate('Popular'),
isSortable: true, isSortable: true,
isVisible: true, isVisible: true,
isModifiable: false isModifiable: false
@ -177,7 +177,7 @@ export const defaultState = {
}, },
{ {
name: 'lists', name: 'lists',
label: 'Lists', label: () => translate('Lists'),
isSortable: false, isSortable: false,
isVisible: false isVisible: false
}, },
@ -283,7 +283,7 @@ export const defaultState = {
}, },
{ {
key: 'popular', key: 'popular',
label: 'Popular', label: () => translate('Popular'),
filters: [ filters: [
{ {
key: 'isPopular', key: 'isPopular',
@ -294,7 +294,7 @@ export const defaultState = {
}, },
{ {
key: 'trending', key: 'trending',
label: 'Trending', label: () => translate('Trending'),
filters: [ filters: [
{ {
key: 'isTrending', key: 'isTrending',
@ -305,7 +305,7 @@ export const defaultState = {
}, },
{ {
key: 'newNotExcluded', key: 'newNotExcluded',
label: 'New Non-Excluded', label: () => translate('NewNonExcluded'),
filters: [ filters: [
{ {
key: 'isExisting', key: 'isExisting',
@ -332,7 +332,7 @@ export const defaultState = {
}, },
{ {
name: 'studio', name: 'studio',
label: 'Studio', label: () => translate('Studio'),
type: filterBuilderTypes.ARRAY, type: filterBuilderTypes.ARRAY,
optionsSelector: function(items) { optionsSelector: function(items) {
const tagList = items.reduce((acc, movie) => { const tagList = items.reduce((acc, movie) => {
@ -387,19 +387,19 @@ export const defaultState = {
}, },
{ {
name: 'inCinemas', name: 'inCinemas',
label: 'In Cinemas', label: () => translate('InCinemas'),
type: filterBuilderTypes.DATE, type: filterBuilderTypes.DATE,
valueType: filterBuilderValueTypes.DATE valueType: filterBuilderValueTypes.DATE
}, },
{ {
name: 'physicalRelease', name: 'physicalRelease',
label: 'Physical Release', label: () => translate('PhysicalRelease'),
type: filterBuilderTypes.DATE, type: filterBuilderTypes.DATE,
valueType: filterBuilderValueTypes.DATE valueType: filterBuilderValueTypes.DATE
}, },
{ {
name: 'digitalRelease', name: 'digitalRelease',
label: 'Digital Release', label: () => translate('DigitalRelease'),
type: filterBuilderTypes.DATE, type: filterBuilderTypes.DATE,
valueType: filterBuilderValueTypes.DATE valueType: filterBuilderValueTypes.DATE
}, },
@ -410,7 +410,7 @@ export const defaultState = {
}, },
{ {
name: 'genres', name: 'genres',
label: 'Genres', label: () => translate('Genres'),
type: filterBuilderTypes.ARRAY, type: filterBuilderTypes.ARRAY,
optionsSelector: function(items) { optionsSelector: function(items) {
const tagList = items.reduce((acc, movie) => { const tagList = items.reduce((acc, movie) => {
@ -466,42 +466,42 @@ export const defaultState = {
}, },
{ {
name: 'certification', name: 'certification',
label: 'Certification', label: () => translate('Certification'),
type: filterBuilderTypes.EXACT type: filterBuilderTypes.EXACT
}, },
{ {
name: 'lists', name: 'lists',
label: 'Lists', label: () => translate('Lists'),
type: filterBuilderTypes.ARRAY, type: filterBuilderTypes.ARRAY,
valueType: filterBuilderValueTypes.IMPORTLIST valueType: filterBuilderValueTypes.IMPORTLIST
}, },
{ {
name: 'isExcluded', name: 'isExcluded',
label: 'On Excluded List', label: () => translate('OnExcludedList'),
type: filterBuilderTypes.EXACT, type: filterBuilderTypes.EXACT,
valueType: filterBuilderValueTypes.BOOL valueType: filterBuilderValueTypes.BOOL
}, },
{ {
name: 'isExisting', name: 'isExisting',
label: 'Exists in Library', label: () => translate('ExistsInLibrary'),
type: filterBuilderTypes.EXACT, type: filterBuilderTypes.EXACT,
valueType: filterBuilderValueTypes.BOOL valueType: filterBuilderValueTypes.BOOL
}, },
{ {
name: 'isRecommendation', name: 'isRecommendation',
label: 'Recommended', label: () => translate('Recommended'),
type: filterBuilderTypes.EXACT, type: filterBuilderTypes.EXACT,
valueType: filterBuilderValueTypes.BOOL valueType: filterBuilderValueTypes.BOOL
}, },
{ {
name: 'isTrending', name: 'isTrending',
label: 'Trending', label: () => translate('Trending'),
type: filterBuilderTypes.EXACT, type: filterBuilderTypes.EXACT,
valueType: filterBuilderValueTypes.BOOL valueType: filterBuilderValueTypes.BOOL
}, },
{ {
name: 'isPopular', name: 'isPopular',
label: 'Popular', label: () => translate('Popular'),
type: filterBuilderTypes.EXACT, type: filterBuilderTypes.EXACT,
valueType: filterBuilderValueTypes.BOOL valueType: filterBuilderValueTypes.BOOL
} }

View File

@ -577,6 +577,7 @@
"Existing": "Existing", "Existing": "Existing",
"ExistingMovies": "Existing Movie(s)", "ExistingMovies": "Existing Movie(s)",
"ExistingTag": "Existing tag", "ExistingTag": "Existing tag",
"ExistsInLibrary": "Exists in Library",
"ExportCustomFormat": "Export Custom Format", "ExportCustomFormat": "Export Custom Format",
"Extension": "Extension", "Extension": "Extension",
"ExternalUpdater": "{appName} is configured to use an external update mechanism", "ExternalUpdater": "{appName} is configured to use an external update mechanism",
@ -789,6 +790,7 @@
"ListSyncLevelHelpTextWarning": "Movie files will be permanently deleted, this can result in wiping your library if your lists are empty", "ListSyncLevelHelpTextWarning": "Movie files will be permanently deleted, this can result in wiping your library if your lists are empty",
"ListTagsHelpText": "Tags list items will be added with", "ListTagsHelpText": "Tags list items will be added with",
"ListWillRefreshEveryInterval": "List will refresh every {refreshInterval}", "ListWillRefreshEveryInterval": "List will refresh every {refreshInterval}",
"Lists": "Lists",
"Loading": "Loading", "Loading": "Loading",
"LoadingMovieCreditsFailed": "Loading movie credits failed", "LoadingMovieCreditsFailed": "Loading movie credits failed",
"LoadingMovieExtraFilesFailed": "Loading movie extra files failed", "LoadingMovieExtraFilesFailed": "Loading movie extra files failed",
@ -948,6 +950,7 @@
"NetCore": ".NET", "NetCore": ".NET",
"Never": "Never", "Never": "Never",
"New": "New", "New": "New",
"NewNonExcluded": "New Non-Excluded",
"NextExecution": "Next Execution", "NextExecution": "Next Execution",
"No": "No", "No": "No",
"NoAltTitle": "No alternative titles.", "NoAltTitle": "No alternative titles.",
@ -1161,6 +1164,7 @@
"OAuthPopupMessage": "Pop-ups are being blocked by your browser", "OAuthPopupMessage": "Pop-ups are being blocked by your browser",
"Ok": "Ok", "Ok": "Ok",
"OnApplicationUpdate": "On Application Update", "OnApplicationUpdate": "On Application Update",
"OnExcludedList": "On Excluded List",
"OnGrab": "On Grab", "OnGrab": "On Grab",
"OnHealthIssue": "On Health Issue", "OnHealthIssue": "On Health Issue",
"OnHealthRestored": "On Health Restored", "OnHealthRestored": "On Health Restored",
@ -1223,6 +1227,7 @@
"Permissions": "Permissions", "Permissions": "Permissions",
"PhysicalRelease": "Physical Release", "PhysicalRelease": "Physical Release",
"PhysicalReleaseDate": "Physical Release Date", "PhysicalReleaseDate": "Physical Release Date",
"Popular": "Popular",
"Popularity": "Popularity", "Popularity": "Popularity",
"PopularityIndex": "Current Popularity Index", "PopularityIndex": "Current Popularity Index",
"Port": "Port", "Port": "Port",
@ -1292,6 +1297,8 @@
"Reason": "Reason", "Reason": "Reason",
"RecentChanges": "Recent Changes", "RecentChanges": "Recent Changes",
"RecentFolders": "Recent Folders", "RecentFolders": "Recent Folders",
"Recommendation": "Recommendation",
"Recommended": "Recommended",
"RecycleBinUnableToWriteHealthCheck": "Unable to write to configured recycling bin folder: {path}. Ensure this path exists and is writable by the user running {appName}", "RecycleBinUnableToWriteHealthCheck": "Unable to write to configured recycling bin folder: {path}. Ensure this path exists and is writable by the user running {appName}",
"RecyclingBin": "Recycling Bin", "RecyclingBin": "Recycling Bin",
"RecyclingBinCleanup": "Recycling Bin Cleanup", "RecyclingBinCleanup": "Recycling Bin Cleanup",
@ -1632,6 +1639,7 @@
"Trace": "Trace", "Trace": "Trace",
"Trailer": "Trailer", "Trailer": "Trailer",
"Trakt": "Trakt", "Trakt": "Trakt",
"Trending": "Trending",
"Trigger": "Trigger", "Trigger": "Trigger",
"True": "True", "True": "True",
"Type": "Type", "Type": "Type",