aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--client/src/app/+accounts/account-videos/account-videos.component.ts2
-rw-r--r--client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts6
-rw-r--r--client/src/app/+admin/follows/following-add/following-add.component.ts2
-rw-r--r--client/src/app/+admin/follows/following-list/following-list.component.ts4
-rw-r--r--client/src/app/+admin/users/user-edit/user-create.component.ts2
-rw-r--r--client/src/app/+admin/users/user-edit/user-update.component.ts2
-rw-r--r--client/src/app/+admin/users/user-list/user-list.component.ts2
-rw-r--r--client/src/app/+admin/video-blacklist/video-blacklist-list/video-blacklist-list.component.ts2
-rw-r--r--client/src/app/+my-account/my-account-video-channels/my-account-video-channel-create.component.ts2
-rw-r--r--client/src/app/+my-account/my-account-video-channels/my-account-video-channel-update.component.ts2
-rw-r--r--client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.ts4
-rw-r--r--client/src/app/+video-channels/video-channel-videos/video-channel-videos.component.ts2
-rw-r--r--client/src/app/core/auth/auth.service.ts2
-rw-r--r--client/src/app/shared/misc/from-now.pipe.ts22
-rw-r--r--client/src/app/shared/rest/rest-extractor.service.ts2
-rw-r--r--client/src/app/signup/signup.component.ts8
-rw-r--r--client/src/app/videos/+video-watch/comment/video-comments.component.ts2
-rw-r--r--client/src/app/videos/+video-watch/video-watch.component.ts6
18 files changed, 37 insertions, 37 deletions
diff --git a/client/src/app/+accounts/account-videos/account-videos.component.ts b/client/src/app/+accounts/account-videos/account-videos.component.ts
index 7b7629480..476f04024 100644
--- a/client/src/app/+accounts/account-videos/account-videos.component.ts
+++ b/client/src/app/+accounts/account-videos/account-videos.component.ts
@@ -69,7 +69,7 @@ export class AccountVideosComponent extends AbstractVideoList implements OnInit,
69 .getAccountVideos(this.account, newPagination, this.sort) 69 .getAccountVideos(this.account, newPagination, this.sort)
70 .pipe( 70 .pipe(
71 tap(({ totalVideos }) => { 71 tap(({ totalVideos }) => {
72 this.titlePage = this.i18n('Published {{ totalVideos }} videos', { totalVideos }) 72 this.titlePage = this.i18n('Published {{totalVideos}} videos', { totalVideos })
73 }) 73 })
74 ) 74 )
75 } 75 }
diff --git a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts
index 3ffcc6c31..73ff4b7bb 100644
--- a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts
+++ b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts
@@ -161,14 +161,14 @@ export class EditCustomConfigComponent extends FormReactive implements OnInit {
161 const customizationsText = customizations.join('/') 161 const customizationsText = customizations.join('/')
162 162
163 // FIXME: i18n service does not support string concatenation 163 // FIXME: i18n service does not support string concatenation
164 const message = this.i18n('You set custom {{ customizationsText }}. ', { customizationsText }) + 164 const message = this.i18n('You set custom {{customizationsText}}. ', { customizationsText }) +
165 this.i18n('This could lead to security issues or bugs if you do not understand it. ') + 165 this.i18n('This could lead to security issues or bugs if you do not understand it. ') +
166 this.i18n('Are you sure you want to update the configuration?') 166 this.i18n('Are you sure you want to update the configuration?')
167 const label = this.i18n( 167 const label = this.i18n(
168 'Please type "I understand the {{ customizationsText }} I set" to confirm.', 168 'Please type "I understand the {{customizationsText}} I set" to confirm.',
169 { customizationsText } 169 { customizationsText }
170 ) 170 )
171 const expectedInputValue = this.i18n('I understand the {{ customizationsText }} I set', { customizationsText }) 171 const expectedInputValue = this.i18n('I understand the {{customizationsText}} I set', { customizationsText })
172 172
173 const confirmRes = await this.confirmService.confirmWithInput(message, label, expectedInputValue) 173 const confirmRes = await this.confirmService.confirmWithInput(message, label, expectedInputValue)
174 if (confirmRes === false) return 174 if (confirmRes === false) return
diff --git a/client/src/app/+admin/follows/following-add/following-add.component.ts b/client/src/app/+admin/follows/following-add/following-add.component.ts
index f197c1fe9..bd9cc022b 100644
--- a/client/src/app/+admin/follows/following-add/following-add.component.ts
+++ b/client/src/app/+admin/follows/following-add/following-add.component.ts
@@ -36,7 +36,7 @@ export class FollowingAddComponent {
36 36
37 for (const host of hosts) { 37 for (const host of hosts) {
38 if (validateHost(host) === false) { 38 if (validateHost(host) === false) {
39 newHostsErrors.push(this.i18n('{{ host }} is not valid', { host })) 39 newHostsErrors.push(this.i18n('{{host}} is not valid', { host }))
40 } 40 }
41 } 41 }
42 42
diff --git a/client/src/app/+admin/follows/following-list/following-list.component.ts b/client/src/app/+admin/follows/following-list/following-list.component.ts
index 2fb818c90..06e341e68 100644
--- a/client/src/app/+admin/follows/following-list/following-list.component.ts
+++ b/client/src/app/+admin/follows/following-list/following-list.component.ts
@@ -33,7 +33,7 @@ export class FollowingListComponent extends RestTable implements OnInit {
33 33
34 async removeFollowing (follow: AccountFollow) { 34 async removeFollowing (follow: AccountFollow) {
35 const res = await this.confirmService.confirm( 35 const res = await this.confirmService.confirm(
36 this.i18n('Do you really want to unfollow {{ host }}?', { host: follow.following.host }), 36 this.i18n('Do you really want to unfollow {{host}}?', { host: follow.following.host }),
37 this.i18n('Unfollow') 37 this.i18n('Unfollow')
38 ) 38 )
39 if (res === false) return 39 if (res === false) return
@@ -42,7 +42,7 @@ export class FollowingListComponent extends RestTable implements OnInit {
42 () => { 42 () => {
43 this.notificationsService.success( 43 this.notificationsService.success(
44 this.i18n('Success'), 44 this.i18n('Success'),
45 this.i18n('You are not following {{ host }} anymore.', { host: follow.following.host }) 45 this.i18n('You are not following {{host}} anymore.', { host: follow.following.host })
46 ) 46 )
47 this.loadData() 47 this.loadData()
48 }, 48 },
diff --git a/client/src/app/+admin/users/user-edit/user-create.component.ts b/client/src/app/+admin/users/user-edit/user-create.component.ts
index b91ffa115..8478a7692 100644
--- a/client/src/app/+admin/users/user-edit/user-create.component.ts
+++ b/client/src/app/+admin/users/user-edit/user-create.component.ts
@@ -72,7 +72,7 @@ export class UserCreateComponent extends UserEdit implements OnInit {
72 () => { 72 () => {
73 this.notificationsService.success( 73 this.notificationsService.success(
74 this.i18n('Success'), 74 this.i18n('Success'),
75 this.i18n('User {{ username }} created.', { username: userCreate.username }) 75 this.i18n('User {{username}} created.', { username: userCreate.username })
76 ) 76 )
77 this.router.navigate([ '/admin/users/list' ]) 77 this.router.navigate([ '/admin/users/list' ])
78 }, 78 },
diff --git a/client/src/app/+admin/users/user-edit/user-update.component.ts b/client/src/app/+admin/users/user-edit/user-update.component.ts
index dca555706..5689aab2f 100644
--- a/client/src/app/+admin/users/user-edit/user-update.component.ts
+++ b/client/src/app/+admin/users/user-edit/user-update.component.ts
@@ -85,7 +85,7 @@ export class UserUpdateComponent extends UserEdit implements OnInit, OnDestroy {
85 () => { 85 () => {
86 this.notificationsService.success( 86 this.notificationsService.success(
87 this.i18n('Success'), 87 this.i18n('Success'),
88 this.i18n('User {{ username }} updated.', { username: this.username }) 88 this.i18n('User {{username}} updated.', { username: this.username })
89 ) 89 )
90 this.router.navigate([ '/admin/users/list' ]) 90 this.router.navigate([ '/admin/users/list' ])
91 }, 91 },
diff --git a/client/src/app/+admin/users/user-list/user-list.component.ts b/client/src/app/+admin/users/user-list/user-list.component.ts
index b644fcf71..ab25608c1 100644
--- a/client/src/app/+admin/users/user-list/user-list.component.ts
+++ b/client/src/app/+admin/users/user-list/user-list.component.ts
@@ -44,7 +44,7 @@ export class UserListComponent extends RestTable implements OnInit {
44 () => { 44 () => {
45 this.notificationsService.success( 45 this.notificationsService.success(
46 this.i18n('Success'), 46 this.i18n('Success'),
47 this.i18n('User {{ username }} deleted.', { username: user.username }) 47 this.i18n('User {{username}} deleted.', { username: user.username })
48 ) 48 )
49 this.loadData() 49 this.loadData()
50 }, 50 },
diff --git a/client/src/app/+admin/video-blacklist/video-blacklist-list/video-blacklist-list.component.ts b/client/src/app/+admin/video-blacklist/video-blacklist-list/video-blacklist-list.component.ts
index 1864e5f65..143ec8406 100644
--- a/client/src/app/+admin/video-blacklist/video-blacklist-list/video-blacklist-list.component.ts
+++ b/client/src/app/+admin/video-blacklist/video-blacklist-list/video-blacklist-list.component.ts
@@ -43,7 +43,7 @@ export class VideoBlacklistListComponent extends RestTable implements OnInit {
43 () => { 43 () => {
44 this.notificationsService.success( 44 this.notificationsService.success(
45 this.i18n('Success'), 45 this.i18n('Success'),
46 this.i18n('Video {{ name }} removed from the blacklist.', { name: entry.name }) 46 this.i18n('Video {{name}} removed from the blacklist.', { name: entry.name })
47 ) 47 )
48 this.loadData() 48 this.loadData()
49 }, 49 },
diff --git a/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-create.component.ts b/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-create.component.ts
index 9b5a12d18..a4073728b 100644
--- a/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-create.component.ts
+++ b/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-create.component.ts
@@ -73,7 +73,7 @@ export class MyAccountVideoChannelCreateComponent extends MyAccountVideoChannelE
73 this.authService.refreshUserInformation() 73 this.authService.refreshUserInformation()
74 this.notificationsService.success( 74 this.notificationsService.success(
75 this.i18n('Success'), 75 this.i18n('Success'),
76 this.i18n('Video channel {{ videoChannelName }} created.', { videoChannelName: videoChannelCreate.displayName }) 76 this.i18n('Video channel {{videoChannelName}} created.', { videoChannelName: videoChannelCreate.displayName })
77 ) 77 )
78 this.router.navigate([ '/my-account', 'video-channels' ]) 78 this.router.navigate([ '/my-account', 'video-channels' ])
79 }, 79 },
diff --git a/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-update.component.ts b/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-update.component.ts
index 78c578764..db38c7da9 100644
--- a/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-update.component.ts
+++ b/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-update.component.ts
@@ -101,7 +101,7 @@ export class MyAccountVideoChannelUpdateComponent extends MyAccountVideoChannelE
101 this.authService.refreshUserInformation() 101 this.authService.refreshUserInformation()
102 this.notificationsService.success( 102 this.notificationsService.success(
103 this.i18n('Success'), 103 this.i18n('Success'),
104 this.i18n('Video channel {{ videoChannelName }} updated.', { videoChannelName: videoChannelUpdate.displayName }) 104 this.i18n('Video channel {{videoChannelName}} updated.', { videoChannelName: videoChannelUpdate.displayName })
105 ) 105 )
106 this.router.navigate([ '/my-account', 'video-channels' ]) 106 this.router.navigate([ '/my-account', 'video-channels' ])
107 }, 107 },
diff --git a/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.ts b/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.ts
index cff1041f6..6d1098865 100644
--- a/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.ts
+++ b/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.ts
@@ -35,7 +35,7 @@ export class MyAccountVideoChannelsComponent implements OnInit {
35 async deleteVideoChannel (videoChannel: VideoChannel) { 35 async deleteVideoChannel (videoChannel: VideoChannel) {
36 const res = await this.confirmService.confirmWithInput( 36 const res = await this.confirmService.confirmWithInput(
37 this.i18n( 37 this.i18n(
38 'Do you really want to delete {{ videoChannelName }}? It will delete all videos uploaded in this channel too.', 38 'Do you really want to delete {{videoChannelName}}? It will delete all videos uploaded in this channel too.',
39 { videoChannelName: videoChannel.displayName } 39 { videoChannelName: videoChannel.displayName }
40 ), 40 ),
41 this.i18n('Please type the name of the video channel to confirm'), 41 this.i18n('Please type the name of the video channel to confirm'),
@@ -50,7 +50,7 @@ export class MyAccountVideoChannelsComponent implements OnInit {
50 this.loadVideoChannels() 50 this.loadVideoChannels()
51 this.notificationsService.success( 51 this.notificationsService.success(
52 this.i18n('Success'), 52 this.i18n('Success'),
53 this.i18n('Video channel {{ videoChannelName } deleted.', { videoChannelName: videoChannel.displayName }) 53 this.i18n('Video channel {{videoChannelName}} deleted.', { videoChannelName: videoChannel.displayName })
54 ) 54 )
55 }, 55 },
56 56
diff --git a/client/src/app/+video-channels/video-channel-videos/video-channel-videos.component.ts b/client/src/app/+video-channels/video-channel-videos/video-channel-videos.component.ts
index 22239d75b..28c591039 100644
--- a/client/src/app/+video-channels/video-channel-videos/video-channel-videos.component.ts
+++ b/client/src/app/+video-channels/video-channel-videos/video-channel-videos.component.ts
@@ -69,7 +69,7 @@ export class VideoChannelVideosComponent extends AbstractVideoList implements On
69 .getVideoChannelVideos(this.videoChannel, newPagination, this.sort) 69 .getVideoChannelVideos(this.videoChannel, newPagination, this.sort)
70 .pipe( 70 .pipe(
71 tap(({ totalVideos }) => { 71 tap(({ totalVideos }) => {
72 this.titlePage = this.i18n('Published {{ totalVideos }} videos', { totalVideos }) 72 this.titlePage = this.i18n('Published {{totalVideos}} videos', { totalVideos })
73 }) 73 })
74 ) 74 )
75 } 75 }
diff --git a/client/src/app/core/auth/auth.service.ts b/client/src/app/core/auth/auth.service.ts
index 363f58155..9ec404557 100644
--- a/client/src/app/core/auth/auth.service.ts
+++ b/client/src/app/core/auth/auth.service.ts
@@ -76,7 +76,7 @@ export class AuthService {
76 let errorMessage = error.message 76 let errorMessage = error.message
77 77
78 if (error.status === 403) { 78 if (error.status === 403) {
79 errorMessage = this.i18n('Cannot retrieve OAuth Client credentials: {{ errorText }}.\n', { errorText: error.text }) 79 errorMessage = this.i18n('Cannot retrieve OAuth Client credentials: {{errorText}}.\n', { errorText: error.text })
80 errorMessage += this.i18n( 80 errorMessage += this.i18n(
81 'Ensure you have correctly configured PeerTube (config/ directory), in particular the "webserver" section.' 81 'Ensure you have correctly configured PeerTube (config/ directory), in particular the "webserver" section.'
82 ) 82 )
diff --git a/client/src/app/shared/misc/from-now.pipe.ts b/client/src/app/shared/misc/from-now.pipe.ts
index 3a64a4077..33e6d25fe 100644
--- a/client/src/app/shared/misc/from-now.pipe.ts
+++ b/client/src/app/shared/misc/from-now.pipe.ts
@@ -12,28 +12,28 @@ export class FromNowPipe implements PipeTransform {
12 12
13 let interval = Math.floor(seconds / 31536000) 13 let interval = Math.floor(seconds / 31536000)
14 if (interval > 1) { 14 if (interval > 1) {
15 return this.i18n('{{ interval }} years ago', { interval }) 15 return this.i18n('{{interval}} years ago', { interval })
16 } 16 }
17 17
18 interval = Math.floor(seconds / 2592000) 18 interval = Math.floor(seconds / 2592000)
19 if (interval > 1) return this.i18n('{{ interval }} months ago', { interval }) 19 if (interval > 1) return this.i18n('{{interval}} months ago', { interval })
20 if (interval === 1) return this.i18n('{{ interval }} month ago', { interval }) 20 if (interval === 1) return this.i18n('{{interval}} month ago', { interval })
21 21
22 interval = Math.floor(seconds / 604800) 22 interval = Math.floor(seconds / 604800)
23 if (interval > 1) return this.i18n('{{ interval }} weeks ago', { interval }) 23 if (interval > 1) return this.i18n('{{interval}} weeks ago', { interval })
24 if (interval === 1) return this.i18n('{{ interval }} week ago', { interval }) 24 if (interval === 1) return this.i18n('{{interval}} week ago', { interval })
25 25
26 interval = Math.floor(seconds / 86400) 26 interval = Math.floor(seconds / 86400)
27 if (interval > 1) return this.i18n('{{ interval }} days ago', { interval }) 27 if (interval > 1) return this.i18n('{{interval}} days ago', { interval })
28 if (interval === 1) return this.i18n('{{ interval }} day ago', { interval }) 28 if (interval === 1) return this.i18n('{{interval}} day ago', { interval })
29 29
30 interval = Math.floor(seconds / 3600) 30 interval = Math.floor(seconds / 3600)
31 if (interval > 1) return this.i18n('{{ interval }} hours ago', { interval }) 31 if (interval > 1) return this.i18n('{{interval}} hours ago', { interval })
32 if (interval === 1) return this.i18n('{{ interval }} hour ago', { interval }) 32 if (interval === 1) return this.i18n('{{interval}} hour ago', { interval })
33 33
34 interval = Math.floor(seconds / 60) 34 interval = Math.floor(seconds / 60)
35 if (interval >= 1) return this.i18n('{{ interval }} min ago', { interval }) 35 if (interval >= 1) return this.i18n('{{interval}} min ago', { interval })
36 36
37 return this.i18n('{{ interval }} sec ago', { interval: Math.floor(seconds) }) 37 return this.i18n('{{interval}} sec ago', { interval: Math.floor(seconds) })
38 } 38 }
39} 39}
diff --git a/client/src/app/shared/rest/rest-extractor.service.ts b/client/src/app/shared/rest/rest-extractor.service.ts
index 468ac3e32..0d5b6d6f3 100644
--- a/client/src/app/shared/rest/rest-extractor.service.ts
+++ b/client/src/app/shared/rest/rest-extractor.service.ts
@@ -71,7 +71,7 @@ export class RestExtractor {
71 const secondsLeft = err.headers.get('retry-after') 71 const secondsLeft = err.headers.get('retry-after')
72 if (secondsLeft) { 72 if (secondsLeft) {
73 const minutesLeft = Math.floor(parseInt(secondsLeft, 10) / 60) 73 const minutesLeft = Math.floor(parseInt(secondsLeft, 10) / 60)
74 errorMessage = this.i18n('Too many attempts, please try again after {{ minutesLeft }} minutes.', { minutesLeft }) 74 errorMessage = this.i18n('Too many attempts, please try again after {{minutesLeft}} minutes.', { minutesLeft })
75 } else { 75 } else {
76 errorMessage = this.i18n('Too many attempts, please try again later.') 76 errorMessage = this.i18n('Too many attempts, please try again later.')
77 } 77 }
diff --git a/client/src/app/signup/signup.component.ts b/client/src/app/signup/signup.component.ts
index 72a0c045b..eaed2626d 100644
--- a/client/src/app/signup/signup.component.ts
+++ b/client/src/app/signup/signup.component.ts
@@ -84,7 +84,7 @@ export class SignupComponent extends FormReactive implements OnInit {
84 () => { 84 () => {
85 this.notificationsService.success( 85 this.notificationsService.success(
86 this.i18n('Success'), 86 this.i18n('Success'),
87 this.i18n('Registration for {{ username }} complete.', { username: userCreate.username }) 87 this.i18n('Registration for {{username}} complete.', { username: userCreate.username })
88 ) 88 )
89 this.redirectService.redirectToHomepage() 89 this.redirectService.redirectToHomepage()
90 }, 90 },
@@ -106,9 +106,9 @@ export class SignupComponent extends FormReactive implements OnInit {
106 const normalSeconds = initialUserVideoQuotaBit / (1.5 * 1000 * 1000) 106 const normalSeconds = initialUserVideoQuotaBit / (1.5 * 1000 * 1000)
107 107
108 const lines = [ 108 const lines = [
109 this.i18n('{{ seconds }} of full HD videos', { seconds: SignupComponent.getApproximateTime(fullHdSeconds) }), 109 this.i18n('{{seconds}} of full HD videos', { seconds: SignupComponent.getApproximateTime(fullHdSeconds) }),
110 this.i18n('{{ seconds }} of HD videos', { seconds: SignupComponent.getApproximateTime(hdSeconds) }), 110 this.i18n('{{seconds}} of HD videos', { seconds: SignupComponent.getApproximateTime(hdSeconds) }),
111 this.i18n('{{ seconds }} of average quality videos', { seconds: SignupComponent.getApproximateTime(normalSeconds) }) 111 this.i18n('{{seconds}} of average quality videos', { seconds: SignupComponent.getApproximateTime(normalSeconds) })
112 ] 112 ]
113 113
114 this.quotaHelpIndication = lines.join('<br />') 114 this.quotaHelpIndication = lines.join('<br />')
diff --git a/client/src/app/videos/+video-watch/comment/video-comments.component.ts b/client/src/app/videos/+video-watch/comment/video-comments.component.ts
index 8c6ddb89e..72f66ff09 100644
--- a/client/src/app/videos/+video-watch/comment/video-comments.component.ts
+++ b/client/src/app/videos/+video-watch/comment/video-comments.component.ts
@@ -114,7 +114,7 @@ export class VideoCommentsComponent implements OnInit, OnChanges, OnDestroy {
114 async onWantedToDelete (commentToDelete: VideoComment) { 114 async onWantedToDelete (commentToDelete: VideoComment) {
115 let message = 'Do you really want to delete this comment?' 115 let message = 'Do you really want to delete this comment?'
116 if (commentToDelete.totalReplies !== 0) { 116 if (commentToDelete.totalReplies !== 0) {
117 message += this.i18n(' {{ totalReplies }} replies will be deleted too.', { totalReplies: commentToDelete.totalReplies }) 117 message += this.i18n(' {{totalReplies}} replies will be deleted too.', { totalReplies: commentToDelete.totalReplies })
118 } 118 }
119 119
120 const res = await this.confirmService.confirm(message, this.i18n('Delete')) 120 const res = await this.confirmService.confirm(message, this.i18n('Delete'))
diff --git a/client/src/app/videos/+video-watch/video-watch.component.ts b/client/src/app/videos/+video-watch/video-watch.component.ts
index f3b4f7a2b..23d74494c 100644
--- a/client/src/app/videos/+video-watch/video-watch.component.ts
+++ b/client/src/app/videos/+video-watch/video-watch.component.ts
@@ -163,7 +163,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
163 status => { 163 status => {
164 this.notificationsService.success( 164 this.notificationsService.success(
165 this.i18n('Success'), 165 this.i18n('Success'),
166 this.i18n('Video {{ videoName }} had been blacklisted.', { videoName: this.video.name }) 166 this.i18n('Video {{videoName}} had been blacklisted.', { videoName: this.video.name })
167 ) 167 )
168 this.redirectService.redirectToHomepage() 168 this.redirectService.redirectToHomepage()
169 }, 169 },
@@ -265,7 +265,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
265 status => { 265 status => {
266 this.notificationsService.success( 266 this.notificationsService.success(
267 this.i18n('Success'), 267 this.i18n('Success'),
268 this.i18n('Video {{ videoName }} deleted.', { videoName: this.video.name }) 268 this.i18n('Video {{videoName}} deleted.', { videoName: this.video.name })
269 ) 269 )
270 270
271 // Go back to the video-list. 271 // Go back to the video-list.
@@ -297,7 +297,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
297 297
298 private setVideoLikesBarTooltipText () { 298 private setVideoLikesBarTooltipText () {
299 this.likesBarTooltipText = this.i18n( 299 this.likesBarTooltipText = this.i18n(
300 '{{ likesNumber }} likes / {{ dislikesNumber }} dislikes', 300 '{{likesNumber}} likes / {{dislikesNumber}} dislikes',
301 { likesNumber: this.video.likes, dislikes: this.video.dislikes } 301 { likesNumber: this.video.likes, dislikes: this.video.dislikes }
302 ) 302 )
303 } 303 }