diff options
Diffstat (limited to 'client/src/app/+videos/video-list')
5 files changed, 10 insertions, 25 deletions
diff --git a/client/src/app/+videos/video-list/video-local.component.ts b/client/src/app/+videos/video-list/video-local.component.ts index b4c71ac49..07063d4d4 100644 --- a/client/src/app/+videos/video-list/video-local.component.ts +++ b/client/src/app/+videos/video-list/video-local.component.ts | |||
@@ -5,7 +5,6 @@ import { HooksService } from '@app/core/plugins/hooks.service' | |||
5 | import { immutableAssign } from '@app/helpers' | 5 | import { immutableAssign } from '@app/helpers' |
6 | import { VideoService } from '@app/shared/shared-main' | 6 | import { VideoService } from '@app/shared/shared-main' |
7 | import { AbstractVideoList } from '@app/shared/shared-video-miniature' | 7 | import { AbstractVideoList } from '@app/shared/shared-video-miniature' |
8 | import { I18n } from '@ngx-translate/i18n-polyfill' | ||
9 | import { UserRight, VideoFilter, VideoSortField } from '@shared/models' | 8 | import { UserRight, VideoFilter, VideoSortField } from '@shared/models' |
10 | 9 | ||
11 | @Component({ | 10 | @Component({ |
@@ -21,7 +20,6 @@ export class VideoLocalComponent extends AbstractVideoList implements OnInit, On | |||
21 | useUserVideoPreferences = true | 20 | useUserVideoPreferences = true |
22 | 21 | ||
23 | constructor ( | 22 | constructor ( |
24 | protected i18n: I18n, | ||
25 | protected router: Router, | 23 | protected router: Router, |
26 | protected serverService: ServerService, | 24 | protected serverService: ServerService, |
27 | protected route: ActivatedRoute, | 25 | protected route: ActivatedRoute, |
@@ -35,7 +33,7 @@ export class VideoLocalComponent extends AbstractVideoList implements OnInit, On | |||
35 | ) { | 33 | ) { |
36 | super() | 34 | super() |
37 | 35 | ||
38 | this.titlePage = i18n('Local videos') | 36 | this.titlePage = $localize`Local videos` |
39 | } | 37 | } |
40 | 38 | ||
41 | ngOnInit () { | 39 | ngOnInit () { |
diff --git a/client/src/app/+videos/video-list/video-most-liked.component.ts b/client/src/app/+videos/video-list/video-most-liked.component.ts index ca14851bb..e5f7bd152 100644 --- a/client/src/app/+videos/video-list/video-most-liked.component.ts +++ b/client/src/app/+videos/video-list/video-most-liked.component.ts | |||
@@ -5,7 +5,6 @@ import { HooksService } from '@app/core/plugins/hooks.service' | |||
5 | import { immutableAssign } from '@app/helpers' | 5 | import { immutableAssign } from '@app/helpers' |
6 | import { VideoService } from '@app/shared/shared-main' | 6 | import { VideoService } from '@app/shared/shared-main' |
7 | import { AbstractVideoList } from '@app/shared/shared-video-miniature' | 7 | import { AbstractVideoList } from '@app/shared/shared-video-miniature' |
8 | import { I18n } from '@ngx-translate/i18n-polyfill' | ||
9 | import { VideoSortField } from '@shared/models' | 8 | import { VideoSortField } from '@shared/models' |
10 | 9 | ||
11 | @Component({ | 10 | @Component({ |
@@ -20,7 +19,6 @@ export class VideoMostLikedComponent extends AbstractVideoList implements OnInit | |||
20 | useUserVideoPreferences = true | 19 | useUserVideoPreferences = true |
21 | 20 | ||
22 | constructor ( | 21 | constructor ( |
23 | protected i18n: I18n, | ||
24 | protected router: Router, | 22 | protected router: Router, |
25 | protected serverService: ServerService, | 23 | protected serverService: ServerService, |
26 | protected route: ActivatedRoute, | 24 | protected route: ActivatedRoute, |
@@ -40,8 +38,8 @@ export class VideoMostLikedComponent extends AbstractVideoList implements OnInit | |||
40 | 38 | ||
41 | this.generateSyndicationList() | 39 | this.generateSyndicationList() |
42 | 40 | ||
43 | this.titlePage = this.i18n('Most liked videos') | 41 | this.titlePage = $localize`Most liked videos` |
44 | this.titleTooltip = this.i18n('Videos that have the higher number of likes.') | 42 | this.titleTooltip = $localize`Videos that have the higher number of likes.` |
45 | } | 43 | } |
46 | 44 | ||
47 | getVideosObservable (page: number) { | 45 | getVideosObservable (page: number) { |
diff --git a/client/src/app/+videos/video-list/video-recently-added.component.ts b/client/src/app/+videos/video-list/video-recently-added.component.ts index c9395133f..34db6aabd 100644 --- a/client/src/app/+videos/video-list/video-recently-added.component.ts +++ b/client/src/app/+videos/video-list/video-recently-added.component.ts | |||
@@ -5,7 +5,6 @@ import { HooksService } from '@app/core/plugins/hooks.service' | |||
5 | import { immutableAssign } from '@app/helpers' | 5 | import { immutableAssign } from '@app/helpers' |
6 | import { VideoService } from '@app/shared/shared-main' | 6 | import { VideoService } from '@app/shared/shared-main' |
7 | import { AbstractVideoList } from '@app/shared/shared-video-miniature' | 7 | import { AbstractVideoList } from '@app/shared/shared-video-miniature' |
8 | import { I18n } from '@ngx-translate/i18n-polyfill' | ||
9 | import { VideoSortField } from '@shared/models' | 8 | import { VideoSortField } from '@shared/models' |
10 | 9 | ||
11 | @Component({ | 10 | @Component({ |
@@ -21,7 +20,6 @@ export class VideoRecentlyAddedComponent extends AbstractVideoList implements On | |||
21 | useUserVideoPreferences = true | 20 | useUserVideoPreferences = true |
22 | 21 | ||
23 | constructor ( | 22 | constructor ( |
24 | protected i18n: I18n, | ||
25 | protected route: ActivatedRoute, | 23 | protected route: ActivatedRoute, |
26 | protected serverService: ServerService, | 24 | protected serverService: ServerService, |
27 | protected router: Router, | 25 | protected router: Router, |
@@ -35,7 +33,7 @@ export class VideoRecentlyAddedComponent extends AbstractVideoList implements On | |||
35 | ) { | 33 | ) { |
36 | super() | 34 | super() |
37 | 35 | ||
38 | this.titlePage = i18n('Recently added') | 36 | this.titlePage = $localize`Recently added` |
39 | } | 37 | } |
40 | 38 | ||
41 | ngOnInit () { | 39 | ngOnInit () { |
diff --git a/client/src/app/+videos/video-list/video-trending.component.ts b/client/src/app/+videos/video-list/video-trending.component.ts index 10eab18de..babcb9067 100644 --- a/client/src/app/+videos/video-list/video-trending.component.ts +++ b/client/src/app/+videos/video-list/video-trending.component.ts | |||
@@ -5,7 +5,6 @@ import { HooksService } from '@app/core/plugins/hooks.service' | |||
5 | import { immutableAssign } from '@app/helpers' | 5 | import { immutableAssign } from '@app/helpers' |
6 | import { VideoService } from '@app/shared/shared-main' | 6 | import { VideoService } from '@app/shared/shared-main' |
7 | import { AbstractVideoList } from '@app/shared/shared-video-miniature' | 7 | import { AbstractVideoList } from '@app/shared/shared-video-miniature' |
8 | import { I18n } from '@ngx-translate/i18n-polyfill' | ||
9 | import { VideoSortField } from '@shared/models' | 8 | import { VideoSortField } from '@shared/models' |
10 | 9 | ||
11 | @Component({ | 10 | @Component({ |
@@ -20,7 +19,6 @@ export class VideoTrendingComponent extends AbstractVideoList implements OnInit, | |||
20 | useUserVideoPreferences = true | 19 | useUserVideoPreferences = true |
21 | 20 | ||
22 | constructor ( | 21 | constructor ( |
23 | protected i18n: I18n, | ||
24 | protected router: Router, | 22 | protected router: Router, |
25 | protected serverService: ServerService, | 23 | protected serverService: ServerService, |
26 | protected route: ActivatedRoute, | 24 | protected route: ActivatedRoute, |
@@ -45,14 +43,11 @@ export class VideoTrendingComponent extends AbstractVideoList implements OnInit, | |||
45 | const trendingDays = config.trending.videos.intervalDays | 43 | const trendingDays = config.trending.videos.intervalDays |
46 | 44 | ||
47 | if (trendingDays === 1) { | 45 | if (trendingDays === 1) { |
48 | this.titlePage = this.i18n('Trending for the last 24 hours') | 46 | this.titlePage = $localize`Trending for the last 24 hours` |
49 | this.titleTooltip = this.i18n('Trending videos are those totalizing the greatest number of views during the last 24 hours') | 47 | this.titleTooltip = $localize`Trending videos are those totalizing the greatest number of views during the last 24 hours` |
50 | } else { | 48 | } else { |
51 | this.titlePage = this.i18n('Trending for the last {{days}} days', { days: trendingDays }) | 49 | this.titlePage = `Trending for the last ${trendingDays} days` |
52 | this.titleTooltip = this.i18n( | 50 | this.titleTooltip = `Trending videos are those totalizing the greatest number of views during the last ${trendingDays} days` |
53 | 'Trending videos are those totalizing the greatest number of views during the last {{days}} days', | ||
54 | { days: trendingDays } | ||
55 | ) | ||
56 | } | 51 | } |
57 | }) | 52 | }) |
58 | } | 53 | } |
diff --git a/client/src/app/+videos/video-list/video-user-subscriptions.component.ts b/client/src/app/+videos/video-list/video-user-subscriptions.component.ts index 41ad9b277..b02988169 100644 --- a/client/src/app/+videos/video-list/video-user-subscriptions.component.ts +++ b/client/src/app/+videos/video-list/video-user-subscriptions.component.ts | |||
@@ -3,10 +3,8 @@ import { ActivatedRoute, Router } from '@angular/router' | |||
3 | import { AuthService, LocalStorageService, Notifier, ScreenService, ServerService, UserService } from '@app/core' | 3 | import { AuthService, LocalStorageService, Notifier, ScreenService, ServerService, UserService } from '@app/core' |
4 | import { HooksService } from '@app/core/plugins/hooks.service' | 4 | import { HooksService } from '@app/core/plugins/hooks.service' |
5 | import { immutableAssign } from '@app/helpers' | 5 | import { immutableAssign } from '@app/helpers' |
6 | import { VideoService } from '@app/shared/shared-main' | ||
7 | import { UserSubscriptionService } from '@app/shared/shared-user-subscription' | 6 | import { UserSubscriptionService } from '@app/shared/shared-user-subscription' |
8 | import { AbstractVideoList, OwnerDisplayType } from '@app/shared/shared-video-miniature' | 7 | import { AbstractVideoList, OwnerDisplayType } from '@app/shared/shared-video-miniature' |
9 | import { I18n } from '@ngx-translate/i18n-polyfill' | ||
10 | import { VideoSortField } from '@shared/models' | 8 | import { VideoSortField } from '@shared/models' |
11 | 9 | ||
12 | @Component({ | 10 | @Component({ |
@@ -21,7 +19,6 @@ export class VideoUserSubscriptionsComponent extends AbstractVideoList implement | |||
21 | groupByDate = true | 19 | groupByDate = true |
22 | 20 | ||
23 | constructor ( | 21 | constructor ( |
24 | protected i18n: I18n, | ||
25 | protected router: Router, | 22 | protected router: Router, |
26 | protected serverService: ServerService, | 23 | protected serverService: ServerService, |
27 | protected route: ActivatedRoute, | 24 | protected route: ActivatedRoute, |
@@ -31,15 +28,14 @@ export class VideoUserSubscriptionsComponent extends AbstractVideoList implement | |||
31 | protected screenService: ScreenService, | 28 | protected screenService: ScreenService, |
32 | protected storageService: LocalStorageService, | 29 | protected storageService: LocalStorageService, |
33 | private userSubscription: UserSubscriptionService, | 30 | private userSubscription: UserSubscriptionService, |
34 | private videoService: VideoService, | ||
35 | private hooks: HooksService | 31 | private hooks: HooksService |
36 | ) { | 32 | ) { |
37 | super() | 33 | super() |
38 | 34 | ||
39 | this.titlePage = i18n('Videos from your subscriptions') | 35 | this.titlePage = $localize`Videos from your subscriptions` |
40 | this.actions.push({ | 36 | this.actions.push({ |
41 | routerLink: '/my-account/subscriptions', | 37 | routerLink: '/my-account/subscriptions', |
42 | label: i18n('Subscriptions'), | 38 | label: $localize`Subscriptions`, |
43 | iconName: 'cog' | 39 | iconName: 'cog' |
44 | }) | 40 | }) |
45 | } | 41 | } |