From 25acef90a85c1584880dec96aa402f896af8364a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 5 Jun 2018 09:13:26 +0200 Subject: Fix i18n in components --- .../src/app/videos/+video-watch/comment/video-comments.component.ts | 2 +- client/src/app/videos/+video-watch/video-watch.component.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'client/src/app/videos') 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 { async onWantedToDelete (commentToDelete: VideoComment) { let message = 'Do you really want to delete this comment?' if (commentToDelete.totalReplies !== 0) { - message += this.i18n(' {{ totalReplies }} replies will be deleted too.', { totalReplies: commentToDelete.totalReplies }) + message += this.i18n(' {{totalReplies}} replies will be deleted too.', { totalReplies: commentToDelete.totalReplies }) } 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 { status => { this.notificationsService.success( this.i18n('Success'), - this.i18n('Video {{ videoName }} had been blacklisted.', { videoName: this.video.name }) + this.i18n('Video {{videoName}} had been blacklisted.', { videoName: this.video.name }) ) this.redirectService.redirectToHomepage() }, @@ -265,7 +265,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy { status => { this.notificationsService.success( this.i18n('Success'), - this.i18n('Video {{ videoName }} deleted.', { videoName: this.video.name }) + this.i18n('Video {{videoName}} deleted.', { videoName: this.video.name }) ) // Go back to the video-list. @@ -297,7 +297,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy { private setVideoLikesBarTooltipText () { this.likesBarTooltipText = this.i18n( - '{{ likesNumber }} likes / {{ dislikesNumber }} dislikes', + '{{likesNumber}} likes / {{dislikesNumber}} dislikes', { likesNumber: this.video.likes, dislikes: this.video.dislikes } ) } -- cgit v1.2.3