diff options
Diffstat (limited to 'client/src/app/+videos/video-list/video-trending.component.ts')
-rw-r--r-- | client/src/app/+videos/video-list/video-trending.component.ts | 13 |
1 files changed, 4 insertions, 9 deletions
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 | } |