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

View File

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

View File

@ -577,6 +577,7 @@
"Existing": "Existing",
"ExistingMovies": "Existing Movie(s)",
"ExistingTag": "Existing tag",
"ExistsInLibrary": "Exists in Library",
"ExportCustomFormat": "Export Custom Format",
"Extension": "Extension",
"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",
"ListTagsHelpText": "Tags list items will be added with",
"ListWillRefreshEveryInterval": "List will refresh every {refreshInterval}",
"Lists": "Lists",
"Loading": "Loading",
"LoadingMovieCreditsFailed": "Loading movie credits failed",
"LoadingMovieExtraFilesFailed": "Loading movie extra files failed",
@ -948,6 +950,7 @@
"NetCore": ".NET",
"Never": "Never",
"New": "New",
"NewNonExcluded": "New Non-Excluded",
"NextExecution": "Next Execution",
"No": "No",
"NoAltTitle": "No alternative titles.",
@ -1161,6 +1164,7 @@
"OAuthPopupMessage": "Pop-ups are being blocked by your browser",
"Ok": "Ok",
"OnApplicationUpdate": "On Application Update",
"OnExcludedList": "On Excluded List",
"OnGrab": "On Grab",
"OnHealthIssue": "On Health Issue",
"OnHealthRestored": "On Health Restored",
@ -1223,6 +1227,7 @@
"Permissions": "Permissions",
"PhysicalRelease": "Physical Release",
"PhysicalReleaseDate": "Physical Release Date",
"Popular": "Popular",
"Popularity": "Popularity",
"PopularityIndex": "Current Popularity Index",
"Port": "Port",
@ -1292,6 +1297,8 @@
"Reason": "Reason",
"RecentChanges": "Recent Changes",
"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}",
"RecyclingBin": "Recycling Bin",
"RecyclingBinCleanup": "Recycling Bin Cleanup",
@ -1632,6 +1639,7 @@
"Trace": "Trace",
"Trailer": "Trailer",
"Trakt": "Trakt",
"Trending": "Trending",
"Trigger": "Trigger",
"True": "True",
"Type": "Type",