aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-06-04 16:21:17 +0200
committerChocobozzz <me@florianbigard.com>2018-06-05 08:43:01 +0200
commitb1d40cff89f7cff565a98cdbcea9a624196a169a (patch)
treed24746c1cc69f50471a9eba0dfb1c1bae06a1870
parent989e526abf0c0dd7958deb630df009608561bb67 (diff)
downloadPeerTube-b1d40cff89f7cff565a98cdbcea9a624196a169a.tar.gz
PeerTube-b1d40cff89f7cff565a98cdbcea9a624196a169a.tar.zst
PeerTube-b1d40cff89f7cff565a98cdbcea9a624196a169a.zip
Add i18n attributes
-rw-r--r--client/src/app/+accounts/account-about/account-about.component.html6
-rw-r--r--client/src/app/+accounts/account-about/account-about.component.ts6
-rw-r--r--client/src/app/+accounts/account-video-channels/account-video-channels.component.html4
-rw-r--r--client/src/app/+accounts/account-videos/account-videos.component.ts12
-rw-r--r--client/src/app/+accounts/accounts.component.html8
-rw-r--r--client/src/app/+admin/admin.component.html12
-rw-r--r--client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html140
-rw-r--r--client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts28
-rw-r--r--client/src/app/+admin/follows/followers-list/followers-list.component.html12
-rw-r--r--client/src/app/+admin/follows/followers-list/followers-list.component.ts6
-rw-r--r--client/src/app/+admin/follows/following-add/following-add.component.html6
-rw-r--r--client/src/app/+admin/follows/following-add/following-add.component.ts22
-rw-r--r--client/src/app/+admin/follows/following-list/following-list.component.html8
-rw-r--r--client/src/app/+admin/follows/following-list/following-list.component.ts18
-rw-r--r--client/src/app/+admin/follows/follows.component.html2
-rw-r--r--client/src/app/+admin/jobs/index.ts5
-rw-r--r--client/src/app/+admin/jobs/jobs-list/jobs-list.component.html12
-rw-r--r--client/src/app/+admin/jobs/jobs-list/jobs-list.component.ts6
-rw-r--r--client/src/app/+admin/users/shared/user.service.ts7
-rw-r--r--client/src/app/+admin/users/user-edit/user-create.component.ts21
-rw-r--r--client/src/app/+admin/users/user-edit/user-edit.component.html20
-rw-r--r--client/src/app/+admin/users/user-edit/user-update.component.ts11
-rw-r--r--client/src/app/+admin/users/user-list/user-list.component.html14
-rw-r--r--client/src/app/+admin/users/user-list/user-list.component.ts19
-rw-r--r--client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.html14
-rw-r--r--client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.ts6
-rw-r--r--client/src/app/+admin/video-blacklist/video-blacklist-list/video-blacklist-list.component.html16
-rw-r--r--client/src/app/+admin/video-blacklist/video-blacklist-list/video-blacklist-list.component.ts23
-rw-r--r--client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.html8
-rw-r--r--client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.ts8
-rw-r--r--client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.html6
-rw-r--r--client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.ts6
-rw-r--r--client/src/app/+my-account/my-account-settings/my-account-settings.component.html14
-rw-r--r--client/src/app/+my-account/my-account-settings/my-account-settings.component.ts10
-rw-r--r--client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.html17
-rw-r--r--client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.ts8
-rw-r--r--client/src/app/+my-account/my-account-video-channels/my-account-video-channel-create.component.ts11
-rw-r--r--client/src/app/+my-account/my-account-video-channels/my-account-video-channel-edit.component.html10
-rw-r--r--client/src/app/+my-account/my-account-video-channels/my-account-video-channel-update.component.ts11
-rw-r--r--client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.html6
-rw-r--r--client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.ts20
-rw-r--r--client/src/app/+my-account/my-account-videos/my-account-videos.component.html8
-rw-r--r--client/src/app/+my-account/my-account-videos/my-account-videos.component.ts22
-rw-r--r--client/src/app/+my-account/my-account.component.html6
-rw-r--r--client/src/app/+page-not-found/page-not-found.component.html2
-rw-r--r--client/src/app/+video-channels/video-channel-about/video-channel-about.component.html8
-rw-r--r--client/src/app/+video-channels/video-channel-about/video-channel-about.component.ts6
-rw-r--r--client/src/app/+video-channels/video-channel-videos/video-channel-videos.component.ts12
-rw-r--r--client/src/app/+video-channels/video-channels.component.html10
-rw-r--r--client/src/app/about/about.component.html24
-rw-r--r--client/src/app/about/about.component.ts6
-rw-r--r--client/src/app/core/auth/auth.service.ts17
-rw-r--r--client/src/app/core/confirm/confirm.component.html2
-rw-r--r--client/src/app/core/confirm/confirm.component.ts8
-rw-r--r--client/src/app/header/header.component.html4
-rw-r--r--client/src/app/login/login.component.html28
-rw-r--r--client/src/app/login/login.component.ts25
-rw-r--r--client/src/app/menu/menu.component.html20
-rw-r--r--client/src/app/menu/menu.component.ts6
-rw-r--r--client/src/app/reset-password/reset-password.component.html12
-rw-r--r--client/src/app/reset-password/reset-password.component.ts8
-rw-r--r--client/src/app/shared/forms/markdown-textarea.component.html4
-rw-r--r--client/src/app/shared/forms/markdown-textarea.component.ts2
-rw-r--r--client/src/app/shared/guards/can-deactivate-guard.service.ts10
-rw-r--r--client/src/app/shared/misc/edit-button.component.html2
-rw-r--r--client/src/app/shared/misc/from-now.pipe.ts25
-rw-r--r--client/src/app/shared/misc/help.component.html1
-rw-r--r--client/src/app/shared/rest/rest-extractor.service.ts16
-rw-r--r--client/src/app/shared/video/abstract-video-list.html2
-rw-r--r--client/src/app/shared/video/abstract-video-list.ts4
-rw-r--r--client/src/app/shared/video/video-miniature.component.html2
-rw-r--r--client/src/app/shared/video/video-thumbnail.component.html2
-rw-r--r--client/src/app/signup/signup.component.html22
-rw-r--r--client/src/app/signup/signup.component.ts19
-rw-r--r--client/src/app/videos/+video-edit/shared/video-edit.component.html36
-rw-r--r--client/src/app/videos/+video-edit/shared/video-image.component.html2
-rw-r--r--client/src/app/videos/+video-edit/video-add.component.html14
-rw-r--r--client/src/app/videos/+video-edit/video-add.component.ts37
-rw-r--r--client/src/app/videos/+video-edit/video-update.component.html4
-rw-r--r--client/src/app/videos/+video-edit/video-update.component.ts10
-rw-r--r--client/src/app/videos/+video-watch/comment/video-comment-add.component.html4
-rw-r--r--client/src/app/videos/+video-watch/comment/video-comment-add.component.ts6
-rw-r--r--client/src/app/videos/+video-watch/comment/video-comment.component.html6
-rw-r--r--client/src/app/videos/+video-watch/comment/video-comments.component.html29
-rw-r--r--client/src/app/videos/+video-watch/comment/video-comments.component.ts16
-rw-r--r--client/src/app/videos/+video-watch/modal/video-download.component.html10
-rw-r--r--client/src/app/videos/+video-watch/modal/video-report.component.html8
-rw-r--r--client/src/app/videos/+video-watch/modal/video-report.component.ts10
-rw-r--r--client/src/app/videos/+video-watch/modal/video-share.component.html10
-rw-r--r--client/src/app/videos/+video-watch/modal/video-share.component.ts8
-rw-r--r--client/src/app/videos/+video-watch/modal/video-support.component.html4
-rw-r--r--client/src/app/videos/video-list/video-local.component.ts4
-rw-r--r--client/src/app/videos/video-list/video-recently-added.component.ts4
-rw-r--r--client/src/app/videos/video-list/video-search.component.ts4
-rw-r--r--client/src/app/videos/video-list/video-trending.component.ts4
-rw-r--r--client/src/locale/source/messages_en_US.xml2463
96 files changed, 3079 insertions, 558 deletions
diff --git a/client/src/app/+accounts/account-about/account-about.component.html b/client/src/app/+accounts/account-about/account-about.component.html
index eae1cb509..b178f5cc8 100644
--- a/client/src/app/+accounts/account-about/account-about.component.html
+++ b/client/src/app/+accounts/account-about/account-about.component.html
@@ -1,12 +1,12 @@
1<div *ngIf="account" class="row"> 1<div *ngIf="account" class="row">
2 <div class="block col-md-6 col-sm-12"> 2 <div class="block col-md-6 col-sm-12">
3 <div class="small-title">Description</div> 3 <div i18n class="small-title">Description</div>
4 <div class="content">{{ getAccountDescription() }}</div> 4 <div class="content">{{ getAccountDescription() }}</div>
5 </div> 5 </div>
6 6
7 <div class="block col-md-6 col-sm-12"> 7 <div class="block col-md-6 col-sm-12">
8 <div class="small-title">Stats</div> 8 <div i18n class="small-title">Stats</div>
9 9
10 <div class="content">Joined {{ account.createdAt | date }}</div> 10 <div i18n class="content">Joined {{ account.createdAt | date }}</div>
11 </div> 11 </div>
12</div> \ No newline at end of file 12</div> \ No newline at end of file
diff --git a/client/src/app/+accounts/account-about/account-about.component.ts b/client/src/app/+accounts/account-about/account-about.component.ts
index f063df392..4086510ba 100644
--- a/client/src/app/+accounts/account-about/account-about.component.ts
+++ b/client/src/app/+accounts/account-about/account-about.component.ts
@@ -2,6 +2,7 @@ import { Component, OnInit } from '@angular/core'
2import { ActivatedRoute } from '@angular/router' 2import { ActivatedRoute } from '@angular/router'
3import { Account } from '@app/shared/account/account.model' 3import { Account } from '@app/shared/account/account.model'
4import { AccountService } from '@app/shared/account/account.service' 4import { AccountService } from '@app/shared/account/account.service'
5import { I18n } from '@ngx-translate/i18n-polyfill'
5 6
6@Component({ 7@Component({
7 selector: 'my-account-about', 8 selector: 'my-account-about',
@@ -12,7 +13,8 @@ export class AccountAboutComponent implements OnInit {
12 account: Account 13 account: Account
13 14
14 constructor ( 15 constructor (
15 protected route: ActivatedRoute, 16 private route: ActivatedRoute,
17 private i18n: I18n,
16 private accountService: AccountService 18 private accountService: AccountService
17 ) { } 19 ) { }
18 20
@@ -25,6 +27,6 @@ export class AccountAboutComponent implements OnInit {
25 getAccountDescription () { 27 getAccountDescription () {
26 if (this.account.description) return this.account.description 28 if (this.account.description) return this.account.description
27 29
28 return 'No description' 30 return this.i18n('No description')
29 } 31 }
30} 32}
diff --git a/client/src/app/+accounts/account-video-channels/account-video-channels.component.html b/client/src/app/+accounts/account-video-channels/account-video-channels.component.html
index d20b40c60..bcd3beaf0 100644
--- a/client/src/app/+accounts/account-video-channels/account-video-channels.component.html
+++ b/client/src/app/+accounts/account-video-channels/account-video-channels.component.html
@@ -1,11 +1,11 @@
1<div *ngIf="account" class="row"> 1<div *ngIf="account" class="row">
2 <a 2 <a
3 *ngFor="let videoChannel of videoChannels" [routerLink]="[ '/video-channels', videoChannel.uuid ]" 3 *ngFor="let videoChannel of videoChannels" [routerLink]="[ '/video-channels', videoChannel.uuid ]"
4 class="video-channel" title="See this video channel" 4 class="video-channel" i18n-title title="See this video channel"
5 > 5 >
6 <img [src]="videoChannel.avatarUrl" alt="Avatar" /> 6 <img [src]="videoChannel.avatarUrl" alt="Avatar" />
7 7
8 <div class="video-channel-display-name">{{ videoChannel.displayName }}</div> 8 <div class="video-channel-display-name">{{ videoChannel.displayName }}</div>
9 <div class="video-channel-followers">{{ videoChannel.followersCount }} subscribers</div> 9 <div i18n class="video-channel-followers">{{ videoChannel.followersCount }} subscribers</div>
10 </a> 10 </a>
11</div> \ No newline at end of file 11</div> \ No newline at end of file
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 eca9fb6b7..7b7629480 100644
--- a/client/src/app/+accounts/account-videos/account-videos.component.ts
+++ b/client/src/app/+accounts/account-videos/account-videos.component.ts
@@ -10,6 +10,7 @@ import { VideoService } from '../../shared/video/video.service'
10import { Account } from '@app/shared/account/account.model' 10import { Account } from '@app/shared/account/account.model'
11import { AccountService } from '@app/shared/account/account.service' 11import { AccountService } from '@app/shared/account/account.service'
12import { tap } from 'rxjs/operators' 12import { tap } from 'rxjs/operators'
13import { I18n } from '@ngx-translate/i18n-polyfill'
13 14
14@Component({ 15@Component({
15 selector: 'my-account-videos', 16 selector: 'my-account-videos',
@@ -20,7 +21,7 @@ import { tap } from 'rxjs/operators'
20 ] 21 ]
21}) 22})
22export class AccountVideosComponent extends AbstractVideoList implements OnInit, OnDestroy { 23export class AccountVideosComponent extends AbstractVideoList implements OnInit, OnDestroy {
23 titlePage = 'Published videos' 24 titlePage: string
24 marginContent = false // Disable margin 25 marginContent = false // Disable margin
25 currentRoute = '/account/videos' 26 currentRoute = '/account/videos'
26 loadOnInit = false 27 loadOnInit = false
@@ -34,10 +35,13 @@ export class AccountVideosComponent extends AbstractVideoList implements OnInit,
34 protected notificationsService: NotificationsService, 35 protected notificationsService: NotificationsService,
35 protected confirmService: ConfirmService, 36 protected confirmService: ConfirmService,
36 protected location: Location, 37 protected location: Location,
38 protected i18n: I18n,
37 private accountService: AccountService, 39 private accountService: AccountService,
38 private videoService: VideoService 40 private videoService: VideoService
39 ) { 41 ) {
40 super() 42 super()
43
44 this.titlePage = this.i18n('Published videos')
41 } 45 }
42 46
43 ngOnInit () { 47 ngOnInit () {
@@ -63,7 +67,11 @@ export class AccountVideosComponent extends AbstractVideoList implements OnInit,
63 67
64 return this.videoService 68 return this.videoService
65 .getAccountVideos(this.account, newPagination, this.sort) 69 .getAccountVideos(this.account, newPagination, this.sort)
66 .pipe(tap(({ totalVideos }) => this.titlePage = `Published ${totalVideos} videos`)) 70 .pipe(
71 tap(({ totalVideos }) => {
72 this.titlePage = this.i18n('Published {{ totalVideos }} videos', { totalVideos })
73 })
74 )
67 } 75 }
68 76
69 generateSyndicationList () { 77 generateSyndicationList () {
diff --git a/client/src/app/+accounts/accounts.component.html b/client/src/app/+accounts/accounts.component.html
index e872bda03..69f648269 100644
--- a/client/src/app/+accounts/accounts.component.html
+++ b/client/src/app/+accounts/accounts.component.html
@@ -9,16 +9,16 @@
9 <div class="actor-display-name">{{ account.displayName }}</div> 9 <div class="actor-display-name">{{ account.displayName }}</div>
10 <div class="actor-name">{{ account.nameWithHost }}</div> 10 <div class="actor-name">{{ account.nameWithHost }}</div>
11 </div> 11 </div>
12 <div class="actor-followers">{{ account.followersCount }} subscribers</div> 12 <div i18n class="actor-followers">{{ account.followersCount }} subscribers</div>
13 </div> 13 </div>
14 </div> 14 </div>
15 15
16 <div class="links"> 16 <div class="links">
17 <a routerLink="videos" routerLinkActive="active" class="title-page">Videos</a> 17 <a i18n routerLink="videos" routerLinkActive="active" class="title-page">Videos</a>
18 18
19 <a routerLink="video-channels" routerLinkActive="active" class="title-page">Video channels</a> 19 <a i18n routerLink="video-channels" routerLinkActive="active" class="title-page">Video channels</a>
20 20
21 <a routerLink="about" routerLinkActive="active" class="title-page">About</a> 21 <a i18n routerLink="about" routerLinkActive="active" class="title-page">About</a>
22 </div> 22 </div>
23 </div> 23 </div>
24 24
diff --git a/client/src/app/+admin/admin.component.html b/client/src/app/+admin/admin.component.html
index e4644498b..1b2b89c3a 100644
--- a/client/src/app/+admin/admin.component.html
+++ b/client/src/app/+admin/admin.component.html
@@ -1,26 +1,26 @@
1<div class="row"> 1<div class="row">
2 <div class="sub-menu"> 2 <div class="sub-menu">
3 <a *ngIf="hasUsersRight()" routerLink="/admin/users" routerLinkActive="active" class="title-page"> 3 <a i18n *ngIf="hasUsersRight()" routerLink="/admin/users" routerLinkActive="active" class="title-page">
4 Users 4 Users
5 </a> 5 </a>
6 6
7 <a *ngIf="hasServerFollowRight()" routerLink="/admin/follows" routerLinkActive="active" class="title-page"> 7 <a i18n *ngIf="hasServerFollowRight()" routerLink="/admin/follows" routerLinkActive="active" class="title-page">
8 Manage follows 8 Manage follows
9 </a> 9 </a>
10 10
11 <a *ngIf="hasVideoAbusesRight()" routerLink="/admin/video-abuses" routerLinkActive="active" class="title-page"> 11 <a i18n *ngIf="hasVideoAbusesRight()" routerLink="/admin/video-abuses" routerLinkActive="active" class="title-page">
12 Video abuses 12 Video abuses
13 </a> 13 </a>
14 14
15 <a *ngIf="hasVideoBlacklistRight()" routerLink="/admin/video-blacklist" routerLinkActive="active" class="title-page"> 15 <a i18n *ngIf="hasVideoBlacklistRight()" routerLink="/admin/video-blacklist" routerLinkActive="active" class="title-page">
16 Video blacklist 16 Video blacklist
17 </a> 17 </a>
18 18
19 <a *ngIf="hasJobsRight()" routerLink="/admin/jobs" routerLinkActive="active" class="title-page"> 19 <a i18n *ngIf="hasJobsRight()" routerLink="/admin/jobs" routerLinkActive="active" class="title-page">
20 Jobs 20 Jobs
21 </a> 21 </a>
22 22
23 <a *ngIf="hasConfigRight()" routerLink="/admin/config" routerLinkActive="active" class="title-page"> 23 <a i18n *ngIf="hasConfigRight()" routerLink="/admin/config" routerLinkActive="active" class="title-page">
24 Configuration 24 Configuration
25 </a> 25 </a>
26 </div> 26 </div>
diff --git a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html
index 8a1e33c56..4263b7b5f 100644
--- a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html
+++ b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html
@@ -4,13 +4,13 @@
4 4
5 <tab heading="Basic configuration"> 5 <tab heading="Basic configuration">
6 6
7 <div class="inner-form-title">Instance</div> 7 <div i18n class="inner-form-title">Instance</div>
8 8
9 <div class="form-group"> 9 <div class="form-group">
10 <label for="instanceName">Name</label> 10 <label i18n for="instanceName">Name</label>
11 <input 11 <input
12 type="text" id="instanceName" 12 type="text" id="instanceName"
13 formControlName="instanceName" [ngClass]="{ 'input-error': formErrors['instanceName'] }" 13 formControlName="instanceName" [ngClass]="{ 'input-error': formErrors['instanceName'] }"
14 > 14 >
15 <div *ngIf="formErrors.instanceName" class="form-error"> 15 <div *ngIf="formErrors.instanceName" class="form-error">
16 {{ formErrors.instanceName }} 16 {{ formErrors.instanceName }}
@@ -18,10 +18,10 @@
18 </div> 18 </div>
19 19
20 <div class="form-group"> 20 <div class="form-group">
21 <label for="instanceShortDescription">Short description</label> 21 <label i18n for="instanceShortDescription">Short description</label>
22 <textarea 22 <textarea
23 id="instanceShortDescription" formControlName="instanceShortDescription" 23 id="instanceShortDescription" formControlName="instanceShortDescription"
24 [ngClass]="{ 'input-error': formErrors['instanceShortDescription'] }" 24 [ngClass]="{ 'input-error': formErrors['instanceShortDescription'] }"
25 ></textarea> 25 ></textarea>
26 <div *ngIf="formErrors.instanceShortDescription" class="form-error"> 26 <div *ngIf="formErrors.instanceShortDescription" class="form-error">
27 {{ formErrors.instanceShortDescription }} 27 {{ formErrors.instanceShortDescription }}
@@ -29,10 +29,10 @@
29 </div> 29 </div>
30 30
31 <div class="form-group"> 31 <div class="form-group">
32 <label for="instanceDescription">Description</label><my-help helpType="markdownText"></my-help> 32 <label i18n for="instanceDescription">Description</label><my-help helpType="markdownText"></my-help>
33 <my-markdown-textarea 33 <my-markdown-textarea
34 id="instanceDescription" formControlName="instanceDescription" textareaWidth="500px" [previewColumn]="true" 34 id="instanceDescription" formControlName="instanceDescription" textareaWidth="500px" [previewColumn]="true"
35 [classes]="{ 'input-error': formErrors['instanceDescription'] }" 35 [classes]="{ 'input-error': formErrors['instanceDescription'] }"
36 ></my-markdown-textarea> 36 ></my-markdown-textarea>
37 <div *ngIf="formErrors.instanceDescription" class="form-error"> 37 <div *ngIf="formErrors.instanceDescription" class="form-error">
38 {{ formErrors.instanceDescription }} 38 {{ formErrors.instanceDescription }}
@@ -40,10 +40,10 @@
40 </div> 40 </div>
41 41
42 <div class="form-group"> 42 <div class="form-group">
43 <label for="instanceTerms">Terms</label><my-help helpType="markdownText"></my-help> 43 <label i18n for="instanceTerms">Terms</label><my-help helpType="markdownText"></my-help>
44 <my-markdown-textarea 44 <my-markdown-textarea
45 id="instanceTerms" formControlName="instanceTerms" textareaWidth="500px" [previewColumn]="true" 45 id="instanceTerms" formControlName="instanceTerms" textareaWidth="500px" [previewColumn]="true"
46 [ngClass]="{ 'input-error': formErrors['instanceTerms'] }" 46 [ngClass]="{ 'input-error': formErrors['instanceTerms'] }"
47 ></my-markdown-textarea> 47 ></my-markdown-textarea>
48 <div *ngIf="formErrors.instanceTerms" class="form-error"> 48 <div *ngIf="formErrors.instanceTerms" class="form-error">
49 {{ formErrors.instanceTerms }} 49 {{ formErrors.instanceTerms }}
@@ -51,12 +51,12 @@
51 </div> 51 </div>
52 52
53 <div class="form-group"> 53 <div class="form-group">
54 <label for="instanceDefaultClientRoute">Default client route</label> 54 <label i18n for="instanceDefaultClientRoute">Default client route</label>
55 <div class="peertube-select-container"> 55 <div class="peertube-select-container">
56 <select id="instanceDefaultClientRoute" formControlName="instanceDefaultClientRoute"> 56 <select id="instanceDefaultClientRoute" formControlName="instanceDefaultClientRoute">
57 <option value="/videos/trending">Videos Trending</option> 57 <option i18n value="/videos/trending">Videos Trending</option>
58 <option value="/videos/recently-added">Videos Recently Added</option> 58 <option i18n value="/videos/recently-added">Videos Recently Added</option>
59 <option value="/videos/local">Local videos</option> 59 <option i18n value="/videos/local">Local videos</option>
60 </select> 60 </select>
61 </div> 61 </div>
62 <div *ngIf="formErrors.instanceDefaultClientRoute" class="form-error"> 62 <div *ngIf="formErrors.instanceDefaultClientRoute" class="form-error">
@@ -65,14 +65,17 @@
65 </div> 65 </div>
66 66
67 <div class="form-group"> 67 <div class="form-group">
68 <label for="instanceDefaultNSFWPolicy">Policy on videos containing sensitive content</label> 68 <label i18n for="instanceDefaultNSFWPolicy">Policy on videos containing sensitive content</label>
69 <my-help helpType="custom" customHtml="With <strong>Do not list</strong> or <strong>Blur thumbnails</strong>, a confirmation will be requested to watch the video."></my-help> 69 <my-help
70 helpType="custom" i18n-customHtml
71 customHtml="With <strong>Do not list</strong> or <strong>Blur thumbnails</strong>, a confirmation will be requested to watch the video."
72 ></my-help>
70 73
71 <div class="peertube-select-container"> 74 <div class="peertube-select-container">
72 <select id="instanceDefaultNSFWPolicy" formControlName="instanceDefaultNSFWPolicy"> 75 <select id="instanceDefaultNSFWPolicy" formControlName="instanceDefaultNSFWPolicy">
73 <option value="do_not_list">Do not list</option> 76 <option i18n value="do_not_list">Do not list</option>
74 <option value="blur">Blur thumbnails</option> 77 <option i18n value="blur">Blur thumbnails</option>
75 <option value="display">Display</option> 78 <option i18n value="display">Display</option>
76 </select> 79 </select>
77 </div> 80 </div>
78 <div *ngIf="formErrors.instanceDefaultNSFWPolicy" class="form-error"> 81 <div *ngIf="formErrors.instanceDefaultNSFWPolicy" class="form-error">
@@ -80,43 +83,43 @@
80 </div> 83 </div>
81 </div> 84 </div>
82 85
83 <div class="inner-form-title">Signup</div> 86 <div i18n class="inner-form-title">Signup</div>
84 87
85 <div class="form-group"> 88 <div class="form-group">
86 <input type="checkbox" id="signupEnabled" formControlName="signupEnabled"> 89 <input type="checkbox" id="signupEnabled" formControlName="signupEnabled">
87 90
88 <label for="signupEnabled"></label> 91 <label for="signupEnabled"></label>
89 <label for="signupEnabled">Signup enabled</label> 92 <label i18n for="signupEnabled">Signup enabled</label>
90 </div> 93 </div>
91 94
92 <div *ngIf="isSignupEnabled()" class="form-group"> 95 <div *ngIf="isSignupEnabled()" class="form-group">
93 <label for="signupLimit">Signup limit</label> 96 <label i18n for="signupLimit">Signup limit</label>
94 <input 97 <input
95 type="text" id="signupLimit" 98 type="text" id="signupLimit"
96 formControlName="signupLimit" [ngClass]="{ 'input-error': formErrors['signupLimit'] }" 99 formControlName="signupLimit" [ngClass]="{ 'input-error': formErrors['signupLimit'] }"
97 > 100 >
98 <div *ngIf="formErrors.signupLimit" class="form-error"> 101 <div *ngIf="formErrors.signupLimit" class="form-error">
99 {{ formErrors.signupLimit }} 102 {{ formErrors.signupLimit }}
100 </div> 103 </div>
101 </div> 104 </div>
102 105
103 <div class="inner-form-title">Administrator</div> 106 <div i18n class="inner-form-title">Administrator</div>
104 107
105 <div class="form-group"> 108 <div class="form-group">
106 <label for="adminEmail">Admin email</label> 109 <label i18n for="adminEmail">Admin email</label>
107 <input 110 <input
108 type="text" id="adminEmail" 111 type="text" id="adminEmail"
109 formControlName="adminEmail" [ngClass]="{ 'input-error': formErrors['adminEmail'] }" 112 formControlName="adminEmail" [ngClass]="{ 'input-error': formErrors['adminEmail'] }"
110 > 113 >
111 <div *ngIf="formErrors.adminEmail" class="form-error"> 114 <div *ngIf="formErrors.adminEmail" class="form-error">
112 {{ formErrors.adminEmail }} 115 {{ formErrors.adminEmail }}
113 </div> 116 </div>
114 </div> 117 </div>
115 118
116 <div class="inner-form-title">Users</div> 119 <div i18n class="inner-form-title">Users</div>
117 120
118 <div class="form-group"> 121 <div class="form-group">
119 <label for="userVideoQuota">User default video quota</label> 122 <label i18n for="userVideoQuota">User default video quota</label>
120 <div class="peertube-select-container"> 123 <div class="peertube-select-container">
121 <select id="userVideoQuota" formControlName="userVideoQuota"> 124 <select id="userVideoQuota" formControlName="userVideoQuota">
122 <option *ngFor="let videoQuotaOption of videoQuotaOptions" [value]="videoQuotaOption.value"> 125 <option *ngFor="let videoQuotaOption of videoQuotaOptions" [value]="videoQuotaOption.value">
@@ -132,14 +135,17 @@
132 135
133 <tab heading="Services"> 136 <tab heading="Services">
134 137
135 <div class="inner-form-title">Twitter</div> 138 <div i18n class="inner-form-title">Twitter</div>
136 139
137 <div class="form-group"> 140 <div class="form-group">
138 <label for="signupLimit">Your Twitter username</label> 141 <label i18n for="signupLimit">Your Twitter username</label>
139 <my-help helpType="custom" customHtml="Indicates the Twitter account for the website or platform on which the content was published."></my-help> 142 <my-help
143 helpType="custom" i18n-customHtml
144 customHtml="Indicates the Twitter account for the website or platform on which the content was published."
145 ></my-help>
140 <input 146 <input
141 type="text" id="servicesTwitterUsername" 147 type="text" id="servicesTwitterUsername"
142 formControlName="servicesTwitterUsername" [ngClass]="{ 'input-error': formErrors['servicesTwitterUsername'] }" 148 formControlName="servicesTwitterUsername" [ngClass]="{ 'input-error': formErrors['servicesTwitterUsername'] }"
143 > 149 >
144 <div *ngIf="formErrors.servicesTwitterUsername" class="form-error"> 150 <div *ngIf="formErrors.servicesTwitterUsername" class="form-error">
145 {{ formErrors.servicesTwitterUsername }} 151 {{ formErrors.servicesTwitterUsername }}
@@ -150,29 +156,32 @@
150 <input type="checkbox" id="servicesTwitterWhitelisted" formControlName="servicesTwitterWhitelisted"> 156 <input type="checkbox" id="servicesTwitterWhitelisted" formControlName="servicesTwitterWhitelisted">
151 157
152 <label for="servicesTwitterWhitelisted"></label> 158 <label for="servicesTwitterWhitelisted"></label>
153 <label for="servicesTwitterWhitelisted">Instance whitelisted by Twitter</label> 159 <label i18n for="servicesTwitterWhitelisted">Instance whitelisted by Twitter</label>
154 <my-help helpType="custom" customHtml="If your instance is whitelisted by Twitter, a video player will be embedded in the Twitter feed on PeerTube video share.<br /> 160 <my-help
161 helpType="custom" i18n-customHtml
162 customHtml="If your instance is whitelisted by Twitter, a video player will be embedded in the Twitter feed on PeerTube video share.<br />
155If the instance is not whitelisted, we use an image link card that will redirect on your PeerTube instance.<br /><br /> 163If the instance is not whitelisted, we use an image link card that will redirect on your PeerTube instance.<br /><br />
156Check this checkbox, save the configuration and test with a video URL of your instance (https://example.com/videos/watch/blabla) on <a target='_blank' rel='noopener noreferrer' href='https://cards-dev.twitter.com/validator'>https://cards-dev.twitter.com/validator</a> to see if you instance is whitelisted."></my-help> 164Check this checkbox, save the configuration and test with a video URL of your instance (https://example.com/videos/watch/blabla) on <a target='_blank' rel='noopener noreferrer' href='https://cards-dev.twitter.com/validator'>https://cards-dev.twitter.com/validator</a> to see if you instance is whitelisted."
165 ></my-help>
157 166
158 </div> 167 </div>
159 </tab> 168 </tab>
160 169
161 <tab heading="Advanced configuration"> 170 <tab heading="Advanced configuration">
162 171
163 <div class="inner-form-title">Transcoding</div> 172 <div i18n class="inner-form-title">Transcoding</div>
164 173
165 <div class="form-group"> 174 <div class="form-group">
166 <input type="checkbox" id="transcodingEnabled" formControlName="transcodingEnabled"> 175 <input type="checkbox" id="transcodingEnabled" formControlName="transcodingEnabled">
167 176
168 <label for="transcodingEnabled"></label> 177 <label for="transcodingEnabled"></label>
169 <label for="transcodingEnabled">Transcoding enabled</label> 178 <label i18n for="transcodingEnabled">Transcoding enabled</label>
170 </div> 179 </div>
171 180
172 <ng-template [ngIf]="isTranscodingEnabled()"> 181 <ng-template [ngIf]="isTranscodingEnabled()">
173 182
174 <div class="form-group"> 183 <div class="form-group">
175 <label for="transcodingThreads">Transcoding threads</label> 184 <label i18n for="transcodingThreads">Transcoding threads</label>
176 <div class="peertube-select-container"> 185 <div class="peertube-select-container">
177 <select id="transcodingThreads" formControlName="transcodingThreads"> 186 <select id="transcodingThreads" formControlName="transcodingThreads">
178 <option *ngFor="let transcodingThreadOption of transcodingThreadOptions" [value]="transcodingThreadOption.value"> 187 <option *ngFor="let transcodingThreadOption of transcodingThreadOptions" [value]="transcodingThreadOption.value">
@@ -191,33 +200,39 @@ Check this checkbox, save the configuration and test with a video URL of your in
191 [formControlName]="getResolutionKey(resolution)" 200 [formControlName]="getResolutionKey(resolution)"
192 > 201 >
193 <label [for]="getResolutionKey(resolution)"></label> 202 <label [for]="getResolutionKey(resolution)"></label>
194 <label [for]="getResolutionKey(resolution)">Resolution {{ resolution }} enabled</label> 203 <label i18n [for]="getResolutionKey(resolution)">Resolution {{ resolution }} enabled</label>
195 </div> 204 </div>
196 </ng-template> 205 </ng-template>
197 206
198 <div class="inner-form-title">Cache</div> 207 <div i18n class="inner-form-title">Cache</div>
199 208
200 <div class="form-group"> 209 <div class="form-group">
201 <label for="cachePreviewsSize">Preview cache size</label> 210 <label i18n for="cachePreviewsSize">Preview cache size</label>
202 <my-help helpType="custom" customHtml="Previews are not federated. We fetch them directly from the origin instance and cache them."></my-help> 211 <my-help
212 helpType="custom" i18n-customHtml
213 customHtml="Previews are not federated. We fetch them directly from the origin instance and cache them."
214 ></my-help>
203 215
204 <input 216 <input
205 type="text" id="cachePreviewsSize" 217 type="text" id="cachePreviewsSize"
206 formControlName="cachePreviewsSize" [ngClass]="{ 'input-error': formErrors['cachePreviewsSize'] }" 218 formControlName="cachePreviewsSize" [ngClass]="{ 'input-error': formErrors['cachePreviewsSize'] }"
207 > 219 >
208 <div *ngIf="formErrors.cachePreviewsSize" class="form-error"> 220 <div *ngIf="formErrors.cachePreviewsSize" class="form-error">
209 {{ formErrors.cachePreviewsSize }} 221 {{ formErrors.cachePreviewsSize }}
210 </div> 222 </div>
211 </div> 223 </div>
212 224
213 <div class="inner-form-title">Customizations</div> 225 <div i18n class="inner-form-title">Customizations</div>
214 226
215 <div class="form-group"> 227 <div class="form-group">
216 <label for="customizationJavascript">JavaScript</label> 228 <label i18n for="customizationJavascript">JavaScript</label>
217 <my-help helpType="custom" customHtml="Write directly JavaScript code.<br />Example: <pre>console.log('my instance is amazing');</pre>"></my-help> 229 <my-help
230 helpType="custom" i18n-customHtml
231 customHtml="Write directly JavaScript code.<br />Example: <pre>console.log('my instance is amazing');</pre>"
232 ></my-help>
218 <textarea 233 <textarea
219 id="customizationJavascript" formControlName="customizationJavascript" 234 id="customizationJavascript" formControlName="customizationJavascript"
220 [ngClass]="{ 'input-error': formErrors['customizationJavascript'] }" 235 [ngClass]="{ 'input-error': formErrors['customizationJavascript'] }"
221 ></textarea> 236 ></textarea>
222 <div *ngIf="formErrors.customizationJavascript" class="form-error"> 237 <div *ngIf="formErrors.customizationJavascript" class="form-error">
223 {{ formErrors.customizationJavascript }} 238 {{ formErrors.customizationJavascript }}
@@ -228,25 +243,26 @@ Check this checkbox, save the configuration and test with a video URL of your in
228 <label for="customizationCSS">CSS</label> 243 <label for="customizationCSS">CSS</label>
229 <my-help 244 <my-help
230 helpType="custom" 245 helpType="custom"
246 i18n-customHtml
231 customHtml=" 247 customHtml="
232 Write directly CSS code. Example:<br /> 248 Write directly CSS code. Example:<br />
233 <pre> 249 <pre>
234 body { 250 body {{ '{' }}
235 background-color: red; 251 background-color: red;
236 } 252 {{ '}' }}
237 </pre> 253 </pre>
238 254
239 Prepend with <em>#custom-css</em> to override styles. Example: 255 Prepend with <em>#custom-css</em> to override styles. Example:
240 <pre> 256 <pre>
241 #custom-css .logged-in-email { 257 #custom-css .logged-in-email {{ '{' }}
242 color: red; 258 color: red;
243 } 259 {{ '}' }}
244 </pre> 260 </pre>
245 " 261 "
246 ></my-help> 262 ></my-help>
247 <textarea 263 <textarea
248 id="customizationCSS" formControlName="customizationCSS" 264 id="customizationCSS" formControlName="customizationCSS"
249 [ngClass]="{ 'input-error': formErrors['customizationCSS'] }" 265 [ngClass]="{ 'input-error': formErrors['customizationCSS'] }"
250 ></textarea> 266 ></textarea>
251 <div *ngIf="formErrors.customizationCSS" class="form-error"> 267 <div *ngIf="formErrors.customizationCSS" class="form-error">
252 {{ formErrors.customizationCSS }} 268 {{ formErrors.customizationCSS }}
@@ -255,5 +271,5 @@ Check this checkbox, save the configuration and test with a video URL of your in
255 </tab> 271 </tab>
256 </tabset> 272 </tabset>
257 273
258 <input (click)="formValidated()" type="submit" value="Update configuration" [disabled]="!form.valid"> 274 <input (click)="formValidated()" type="submit" i18n-value value="Update configuration" [disabled]="!form.valid">
259</form> 275</form>
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 a1e334a74..3f9205460 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
@@ -8,12 +8,15 @@ import { FormReactive, USER_VIDEO_QUOTA } from '@app/shared'
8import { 8import {
9 ADMIN_EMAIL, 9 ADMIN_EMAIL,
10 CACHE_PREVIEWS_SIZE, 10 CACHE_PREVIEWS_SIZE,
11 INSTANCE_NAME, INSTANCE_SHORT_DESCRIPTION, SERVICES_TWITTER_USERNAME, 11 INSTANCE_NAME,
12 INSTANCE_SHORT_DESCRIPTION,
13 SERVICES_TWITTER_USERNAME,
12 SIGNUP_LIMIT, 14 SIGNUP_LIMIT,
13 TRANSCODING_THREADS 15 TRANSCODING_THREADS
14} from '@app/shared/forms/form-validators/custom-config' 16} from '@app/shared/forms/form-validators/custom-config'
15import { NotificationsService } from 'angular2-notifications' 17import { NotificationsService } from 'angular2-notifications'
16import { CustomConfig } from '../../../../../../shared/models/server/custom-config.model' 18import { CustomConfig } from '../../../../../../shared/models/server/custom-config.model'
19import { I18n } from '@ngx-translate/i18n-polyfill'
17 20
18@Component({ 21@Component({
19 selector: 'my-edit-custom-config', 22 selector: 'my-edit-custom-config',
@@ -77,7 +80,8 @@ export class EditCustomConfigComponent extends FormReactive implements OnInit {
77 private notificationsService: NotificationsService, 80 private notificationsService: NotificationsService,
78 private configService: ConfigService, 81 private configService: ConfigService,
79 private serverService: ServerService, 82 private serverService: ServerService,
80 private confirmService: ConfirmService 83 private confirmService: ConfirmService,
84 private i18n: I18n
81 ) { 85 ) {
82 super() 86 super()
83 } 87 }
@@ -133,7 +137,7 @@ export class EditCustomConfigComponent extends FormReactive implements OnInit {
133 this.forceCheck() 137 this.forceCheck()
134 }, 138 },
135 139
136 err => this.notificationsService.error('Error', err.message) 140 err => this.notificationsService.error(this.i18n('Error'), err.message)
137 ) 141 )
138 } 142 }
139 143
@@ -156,11 +160,15 @@ export class EditCustomConfigComponent extends FormReactive implements OnInit {
156 if (customizations.length !== 0) { 160 if (customizations.length !== 0) {
157 const customizationsText = customizations.join('/') 161 const customizationsText = customizations.join('/')
158 162
159 const message = `You set custom ${customizationsText}. ` + 163 // FIXME: i18n service does not support string concatenation
160 'This could lead to security issues or bugs if you do not understand it. ' + 164 const message = this.i18n('You set custom {{ customizationsText }}. ', { customizationsText }) +
161 'Are you sure you want to update the configuration?' 165 this.i18n('This could lead to security issues or bugs if you do not understand it. ') +
162 const label = `Please type "I understand the ${customizationsText} I set" to confirm.` 166 this.i18n('Are you sure you want to update the configuration?')
163 const expectedInputValue = `I understand the ${customizationsText} I set` 167 const label = this.i18n(
168 'Please type "I understand the {{ customizationsText }} I set" to confirm.',
169 { customizationsText }
170 )
171 const expectedInputValue = this.i18n('I understand the {{ customizationsText }} I set', { customizationsText})
164 172
165 const confirmRes = await this.confirmService.confirmWithInput(message, label, expectedInputValue) 173 const confirmRes = await this.confirmService.confirmWithInput(message, label, expectedInputValue)
166 if (confirmRes === false) return 174 if (confirmRes === false) return
@@ -223,10 +231,10 @@ export class EditCustomConfigComponent extends FormReactive implements OnInit {
223 231
224 this.updateForm() 232 this.updateForm()
225 233
226 this.notificationsService.success('Success', 'Configuration updated.') 234 this.notificationsService.success(this.i18n('Success'), this.i18n('Configuration updated.'))
227 }, 235 },
228 236
229 err => this.notificationsService.error('Error', err.message) 237 err => this.notificationsService.error(this.i18n('Error'), err.message)
230 ) 238 )
231 } 239 }
232 240
diff --git a/client/src/app/+admin/follows/followers-list/followers-list.component.html b/client/src/app/+admin/follows/followers-list/followers-list.component.html
index 85d2a2cf6..1a6ed616a 100644
--- a/client/src/app/+admin/follows/followers-list/followers-list.component.html
+++ b/client/src/app/+admin/follows/followers-list/followers-list.component.html
@@ -4,12 +4,12 @@
4> 4>
5 <ng-template pTemplate="header"> 5 <ng-template pTemplate="header">
6 <tr> 6 <tr>
7 <th style="width: 60px">ID</th> 7 <th i18n style="width: 60px">ID</th>
8 <th>Score</th> 8 <th i18n>Score</th>
9 <th>Name</th> 9 <th i18n>Name</th>
10 <th>Host</th> 10 <th i18n>Host</th>
11 <th>State</th> 11 <th i18n>State</th>
12 <th pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th> 12 <th i18n pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th>
13 </tr> 13 </tr>
14 </ng-template> 14 </ng-template>
15 15
diff --git a/client/src/app/+admin/follows/followers-list/followers-list.component.ts b/client/src/app/+admin/follows/followers-list/followers-list.component.ts
index 69b3e5e58..96fb67588 100644
--- a/client/src/app/+admin/follows/followers-list/followers-list.component.ts
+++ b/client/src/app/+admin/follows/followers-list/followers-list.component.ts
@@ -5,6 +5,7 @@ import { SortMeta } from 'primeng/primeng'
5import { AccountFollow } from '../../../../../../shared/models/actors/follow.model' 5import { AccountFollow } from '../../../../../../shared/models/actors/follow.model'
6import { RestPagination, RestTable } from '../../../shared' 6import { RestPagination, RestTable } from '../../../shared'
7import { FollowService } from '../shared' 7import { FollowService } from '../shared'
8import { I18n } from '@ngx-translate/i18n-polyfill'
8 9
9@Component({ 10@Component({
10 selector: 'my-followers-list', 11 selector: 'my-followers-list',
@@ -20,7 +21,8 @@ export class FollowersListComponent extends RestTable implements OnInit {
20 21
21 constructor ( 22 constructor (
22 private notificationsService: NotificationsService, 23 private notificationsService: NotificationsService,
23 private followService: FollowService 24 private followService: FollowService,
25 private i18n: I18n
24 ) { 26 ) {
25 super() 27 super()
26 } 28 }
@@ -37,7 +39,7 @@ export class FollowersListComponent extends RestTable implements OnInit {
37 this.totalRecords = resultList.total 39 this.totalRecords = resultList.total
38 }, 40 },
39 41
40 err => this.notificationsService.error('Error', err.message) 42 err => this.notificationsService.error(this.i18n('Error'), err.message)
41 ) 43 )
42 } 44 }
43} 45}
diff --git a/client/src/app/+admin/follows/following-add/following-add.component.html b/client/src/app/+admin/follows/following-add/following-add.component.html
index 25bab9d0d..72635048c 100644
--- a/client/src/app/+admin/follows/following-add/following-add.component.html
+++ b/client/src/app/+admin/follows/following-add/following-add.component.html
@@ -2,7 +2,7 @@
2 2
3<form (ngSubmit)="addFollowing()"> 3<form (ngSubmit)="addFollowing()">
4 <div class="form-group"> 4 <div class="form-group">
5 <label for="hosts">1 host (without "http://") per line</label> 5 <label i18n for="hosts">1 host (without "http://") per line</label>
6 6
7 <textarea 7 <textarea
8 type="text" class="form-control" placeholder="example.com" id="hosts" name="hosts" 8 type="text" class="form-control" placeholder="example.com" id="hosts" name="hosts"
@@ -14,9 +14,9 @@
14 </div> 14 </div>
15 </div> 15 </div>
16 16
17 <div *ngIf="httpEnabled() === false" class="alert alert-warning"> 17 <div i18n *ngIf="httpEnabled() === false" class="alert alert-warning">
18 It seems that you are not on a HTTPS server. Your webserver needs to have TLS activated in order to follow servers. 18 It seems that you are not on a HTTPS server. Your webserver needs to have TLS activated in order to follow servers.
19 </div> 19 </div>
20 20
21 <input type="submit" value="Add following" [disabled]="hostsError || !hostsString" class="btn btn-default"> 21 <input type="submit" i18n-value value="Add following" [disabled]="hostsError || !hostsString" class="btn btn-default">
22</form> 22</form>
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 c296c8852..f197c1fe9 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
@@ -4,6 +4,7 @@ import { NotificationsService } from 'angular2-notifications'
4import { ConfirmService } from '../../../core' 4import { ConfirmService } from '../../../core'
5import { validateHost } from '../../../shared' 5import { validateHost } from '../../../shared'
6import { FollowService } from '../shared' 6import { FollowService } from '../shared'
7import { I18n } from '@ngx-translate/i18n-polyfill'
7 8
8@Component({ 9@Component({
9 selector: 'my-following-add', 10 selector: 'my-following-add',
@@ -19,7 +20,8 @@ export class FollowingAddComponent {
19 private router: Router, 20 private router: Router,
20 private notificationsService: NotificationsService, 21 private notificationsService: NotificationsService,
21 private confirmService: ConfirmService, 22 private confirmService: ConfirmService,
22 private followService: FollowService 23 private followService: FollowService,
24 private i18n: I18n
23 ) {} 25 ) {}
24 26
25 httpEnabled () { 27 httpEnabled () {
@@ -34,7 +36,7 @@ export class FollowingAddComponent {
34 36
35 for (const host of hosts) { 37 for (const host of hosts) {
36 if (validateHost(host) === false) { 38 if (validateHost(host) === false) {
37 newHostsErrors.push(`${host} is not valid`) 39 newHostsErrors.push(this.i18n('{{ host }} is not valid', { host }))
38 } 40 }
39 } 41 }
40 42
@@ -48,26 +50,26 @@ export class FollowingAddComponent {
48 50
49 const hosts = this.getNotEmptyHosts() 51 const hosts = this.getNotEmptyHosts()
50 if (hosts.length === 0) { 52 if (hosts.length === 0) {
51 this.error = 'You need to specify hosts to follow.' 53 this.error = this.i18n('You need to specify hosts to follow.')
52 } 54 }
53 55
54 if (!this.isHostsUnique(hosts)) { 56 if (!this.isHostsUnique(hosts)) {
55 this.error = 'Hosts need to be unique.' 57 this.error = this.i18n('Hosts need to be unique.')
56 return 58 return
57 } 59 }
58 60
59 const confirmMessage = 'If you confirm, you will send a follow request to:<br /> - ' + hosts.join('<br /> - ') 61 const confirmMessage = this.i18n('If you confirm, you will send a follow request to:<br /> - ') + hosts.join('<br /> - ')
60 const res = await this.confirmService.confirm(confirmMessage, 'Follow new server(s)') 62 const res = await this.confirmService.confirm(confirmMessage, this.i18n('Follow new server(s)'))
61 if (res === false) return 63 if (res === false) return
62 64
63 this.followService.follow(hosts).subscribe( 65 this.followService.follow(hosts).subscribe(
64 () => { 66 () => {
65 this.notificationsService.success('Success', 'Follow request(s) sent!') 67 this.notificationsService.success(this.i18n('Success'), this.i18n('Follow request(s) sent!'))
66 68
67 setTimeout(() => this.router.navigate([ '/admin/follows/following-list' ]), 500) 69 setTimeout(() => this.router.navigate([ '/admin/follows/following-list' ]), 500)
68 }, 70 },
69 71
70 err => this.notificationsService.error('Error', err.message) 72 err => this.notificationsService.error(this.i18n('Error'), err.message)
71 ) 73 )
72 } 74 }
73 75
@@ -76,10 +78,8 @@ export class FollowingAddComponent {
76 } 78 }
77 79
78 private getNotEmptyHosts () { 80 private getNotEmptyHosts () {
79 const hosts = this.hostsString 81 return this.hostsString
80 .split('\n') 82 .split('\n')
81 .filter(host => host && host.length !== 0) // Eject empty hosts 83 .filter(host => host && host.length !== 0) // Eject empty hosts
82
83 return hosts
84 } 84 }
85} 85}
diff --git a/client/src/app/+admin/follows/following-list/following-list.component.html b/client/src/app/+admin/follows/following-list/following-list.component.html
index 24981d3e9..e4a45e88c 100644
--- a/client/src/app/+admin/follows/following-list/following-list.component.html
+++ b/client/src/app/+admin/follows/following-list/following-list.component.html
@@ -4,10 +4,10 @@
4> 4>
5 <ng-template pTemplate="header"> 5 <ng-template pTemplate="header">
6 <tr> 6 <tr>
7 <th style="width: 60px">ID</th> 7 <th i18n style="width: 60px">ID</th>
8 <th>Host</th> 8 <th i18n>Host</th>
9 <th>State</th> 9 <th i18n>State</th>
10 <th pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th> 10 <th i18n pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th>
11 <th></th> 11 <th></th>
12 </tr> 12 </tr>
13 </ng-template> 13 </ng-template>
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 873a5d965..2fb818c90 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
@@ -5,6 +5,7 @@ import { AccountFollow } from '../../../../../../shared/models/actors/follow.mod
5import { ConfirmService } from '../../../core/confirm/confirm.service' 5import { ConfirmService } from '../../../core/confirm/confirm.service'
6import { RestPagination, RestTable } from '../../../shared' 6import { RestPagination, RestTable } from '../../../shared'
7import { FollowService } from '../shared' 7import { FollowService } from '../shared'
8import { I18n } from '@ngx-translate/i18n-polyfill'
8 9
9@Component({ 10@Component({
10 selector: 'my-followers-list', 11 selector: 'my-followers-list',
@@ -20,7 +21,8 @@ export class FollowingListComponent extends RestTable implements OnInit {
20 constructor ( 21 constructor (
21 private notificationsService: NotificationsService, 22 private notificationsService: NotificationsService,
22 private confirmService: ConfirmService, 23 private confirmService: ConfirmService,
23 private followService: FollowService 24 private followService: FollowService,
25 private i18n: I18n
24 ) { 26 ) {
25 super() 27 super()
26 } 28 }
@@ -30,16 +32,22 @@ export class FollowingListComponent extends RestTable implements OnInit {
30 } 32 }
31 33
32 async removeFollowing (follow: AccountFollow) { 34 async removeFollowing (follow: AccountFollow) {
33 const res = await this.confirmService.confirm(`Do you really want to unfollow ${follow.following.host}?`, 'Unfollow') 35 const res = await this.confirmService.confirm(
36 this.i18n('Do you really want to unfollow {{ host }}?', { host: follow.following.host }),
37 this.i18n('Unfollow')
38 )
34 if (res === false) return 39 if (res === false) return
35 40
36 this.followService.unfollow(follow).subscribe( 41 this.followService.unfollow(follow).subscribe(
37 () => { 42 () => {
38 this.notificationsService.success('Success', `You are not following ${follow.following.host} anymore.`) 43 this.notificationsService.success(
44 this.i18n('Success'),
45 this.i18n('You are not following {{ host }} anymore.', { host: follow.following.host })
46 )
39 this.loadData() 47 this.loadData()
40 }, 48 },
41 49
42 err => this.notificationsService.error('Error', err.message) 50 err => this.notificationsService.error(this.i18n('Error'), err.message)
43 ) 51 )
44 } 52 }
45 53
@@ -51,7 +59,7 @@ export class FollowingListComponent extends RestTable implements OnInit {
51 this.totalRecords = resultList.total 59 this.totalRecords = resultList.total
52 }, 60 },
53 61
54 err => this.notificationsService.error('Error', err.message) 62 err => this.notificationsService.error(this.i18n('Error'), err.message)
55 ) 63 )
56 } 64 }
57} 65}
diff --git a/client/src/app/+admin/follows/follows.component.html b/client/src/app/+admin/follows/follows.component.html
index 71e82059c..a8258bf70 100644
--- a/client/src/app/+admin/follows/follows.component.html
+++ b/client/src/app/+admin/follows/follows.component.html
@@ -1,5 +1,5 @@
1<div class="admin-sub-header"> 1<div class="admin-sub-header">
2 <div class="form-sub-title">Manage follows</div> 2 <div i18n class="form-sub-title">Manage follows</div>
3 3
4 <tabset #followsMenuTabs> 4 <tabset #followsMenuTabs>
5 <tab *ngFor="let link of links"> 5 <tab *ngFor="let link of links">
diff --git a/client/src/app/+admin/jobs/index.ts b/client/src/app/+admin/jobs/index.ts
index 7b5271956..c0e0cc95d 100644
--- a/client/src/app/+admin/jobs/index.ts
+++ b/client/src/app/+admin/jobs/index.ts
@@ -1 +1,4 @@
1export * from './' 1export * from './shared'
2export * from './jobs-list'
3export * from './job.routes'
4export * from './job.component'
diff --git a/client/src/app/+admin/jobs/jobs-list/jobs-list.component.html b/client/src/app/+admin/jobs/jobs-list/jobs-list.component.html
index 0cc4dc3e0..20c35cb5b 100644
--- a/client/src/app/+admin/jobs/jobs-list/jobs-list.component.html
+++ b/client/src/app/+admin/jobs/jobs-list/jobs-list.component.html
@@ -1,5 +1,5 @@
1<div class="admin-sub-header"> 1<div class="admin-sub-header">
2 <div class="form-sub-title">Jobs list</div> 2 <div i18n class="form-sub-title">Jobs list</div>
3 3
4 <div class="peertube-select-container"> 4 <div class="peertube-select-container">
5 <select [(ngModel)]="jobState" (ngModelChange)="onJobStateChanged()"> 5 <select [(ngModel)]="jobState" (ngModelChange)="onJobStateChanged()">
@@ -15,11 +15,11 @@
15 <ng-template pTemplate="header"> 15 <ng-template pTemplate="header">
16 <tr> 16 <tr>
17 <th style="width: 27px"></th> 17 <th style="width: 27px"></th>
18 <th style="width: 60px">ID</th> 18 <th i18n style="width: 60px">ID</th>
19 <th style="width: 210px">Type</th> 19 <th i18n style="width: 210px">Type</th>
20 <th style="width: 130px">State</th> 20 <th i18n style="width: 130px">State</th>
21 <th style="width: 250px" pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th> 21 <th i18n style="width: 250px" pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th>
22 <th style="width: 250px">Updated</th> 22 <th i18n style="width: 250px">Updated</th>
23 </tr> 23 </tr>
24 </ng-template> 24 </ng-template>
25 25
diff --git a/client/src/app/+admin/jobs/jobs-list/jobs-list.component.ts b/client/src/app/+admin/jobs/jobs-list/jobs-list.component.ts
index ad2f05c6b..29dd9f31c 100644
--- a/client/src/app/+admin/jobs/jobs-list/jobs-list.component.ts
+++ b/client/src/app/+admin/jobs/jobs-list/jobs-list.component.ts
@@ -7,6 +7,7 @@ import { JobState } from '../../../../../../shared/models'
7import { RestPagination, RestTable } from '../../../shared' 7import { RestPagination, RestTable } from '../../../shared'
8import { RestExtractor } from '../../../shared/rest/rest-extractor.service' 8import { RestExtractor } from '../../../shared/rest/rest-extractor.service'
9import { JobService } from '../shared' 9import { JobService } from '../shared'
10import { I18n } from '@ngx-translate/i18n-polyfill'
10 11
11@Component({ 12@Component({
12 selector: 'my-jobs-list', 13 selector: 'my-jobs-list',
@@ -27,7 +28,8 @@ export class JobsListComponent extends RestTable implements OnInit {
27 constructor ( 28 constructor (
28 private notificationsService: NotificationsService, 29 private notificationsService: NotificationsService,
29 private restExtractor: RestExtractor, 30 private restExtractor: RestExtractor,
30 private jobsService: JobService 31 private jobsService: JobService,
32 private i18n: I18n
31 ) { 33 ) {
32 super() 34 super()
33 } 35 }
@@ -51,7 +53,7 @@ export class JobsListComponent extends RestTable implements OnInit {
51 this.totalRecords = resultList.total 53 this.totalRecords = resultList.total
52 }, 54 },
53 55
54 err => this.notificationsService.error('Error', err.message) 56 err => this.notificationsService.error(this.i18n('Error'), err.message)
55 ) 57 )
56 } 58 }
57 59
diff --git a/client/src/app/+admin/users/shared/user.service.ts b/client/src/app/+admin/users/shared/user.service.ts
index 578cd98c3..d8b00b862 100644
--- a/client/src/app/+admin/users/shared/user.service.ts
+++ b/client/src/app/+admin/users/shared/user.service.ts
@@ -7,6 +7,7 @@ import { Observable } from 'rxjs'
7import { ResultList, UserCreate, UserUpdate } from '../../../../../../shared' 7import { ResultList, UserCreate, UserUpdate } from '../../../../../../shared'
8import { environment } from '../../../../environments/environment' 8import { environment } from '../../../../environments/environment'
9import { RestExtractor, RestPagination, RestService, User } from '../../../shared' 9import { RestExtractor, RestPagination, RestService, User } from '../../../shared'
10import { I18n } from '@ngx-translate/i18n-polyfill'
10 11
11@Injectable() 12@Injectable()
12export class UserService { 13export class UserService {
@@ -16,9 +17,9 @@ export class UserService {
16 constructor ( 17 constructor (
17 private authHttp: HttpClient, 18 private authHttp: HttpClient,
18 private restService: RestService, 19 private restService: RestService,
19 private restExtractor: RestExtractor 20 private restExtractor: RestExtractor,
20 ) { 21 private i18n: I18n
21 } 22 ) { }
22 23
23 addUser (userCreate: UserCreate) { 24 addUser (userCreate: UserCreate) {
24 return this.authHttp.post(UserService.BASE_USERS_URL, userCreate) 25 return this.authHttp.post(UserService.BASE_USERS_URL, userCreate)
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 2a9882cde..b91ffa115 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
@@ -1,20 +1,13 @@
1import { Component, OnInit } from '@angular/core' 1import { Component, OnInit } from '@angular/core'
2import { FormBuilder, FormGroup } from '@angular/forms' 2import { FormBuilder, FormGroup } from '@angular/forms'
3import { Router } from '@angular/router' 3import { Router } from '@angular/router'
4
5import { NotificationsService } from 'angular2-notifications' 4import { NotificationsService } from 'angular2-notifications'
6
7import { UserService } from '../shared' 5import { UserService } from '../shared'
8import { 6import { USER_EMAIL, USER_PASSWORD, USER_ROLE, USER_USERNAME, USER_VIDEO_QUOTA } from '../../../shared'
9 USER_USERNAME,
10 USER_EMAIL,
11 USER_PASSWORD,
12 USER_VIDEO_QUOTA,
13 USER_ROLE
14} from '../../../shared'
15import { ServerService } from '../../../core' 7import { ServerService } from '../../../core'
16import { UserCreate, UserRole } from '../../../../../../shared' 8import { UserCreate, UserRole } from '../../../../../../shared'
17import { UserEdit } from './user-edit' 9import { UserEdit } from './user-edit'
10import { I18n } from '@ngx-translate/i18n-polyfill'
18 11
19@Component({ 12@Component({
20 selector: 'my-user-create', 13 selector: 'my-user-create',
@@ -45,7 +38,8 @@ export class UserCreateComponent extends UserEdit implements OnInit {
45 private formBuilder: FormBuilder, 38 private formBuilder: FormBuilder,
46 private router: Router, 39 private router: Router,
47 private notificationsService: NotificationsService, 40 private notificationsService: NotificationsService,
48 private userService: UserService 41 private userService: UserService,
42 private i18n: I18n
49 ) { 43 ) {
50 super() 44 super()
51 } 45 }
@@ -76,7 +70,10 @@ export class UserCreateComponent extends UserEdit implements OnInit {
76 70
77 this.userService.addUser(userCreate).subscribe( 71 this.userService.addUser(userCreate).subscribe(
78 () => { 72 () => {
79 this.notificationsService.success('Success', `User ${userCreate.username} created.`) 73 this.notificationsService.success(
74 this.i18n('Success'),
75 this.i18n('User {{ username }} created.', { username: userCreate.username })
76 )
80 this.router.navigate([ '/admin/users/list' ]) 77 this.router.navigate([ '/admin/users/list' ])
81 }, 78 },
82 79
@@ -89,6 +86,6 @@ export class UserCreateComponent extends UserEdit implements OnInit {
89 } 86 }
90 87
91 getFormButtonTitle () { 88 getFormButtonTitle () {
92 return 'Create user' 89 return this.i18n('Create user')
93 } 90 }
94} 91}
diff --git a/client/src/app/+admin/users/user-edit/user-edit.component.html b/client/src/app/+admin/users/user-edit/user-edit.component.html
index a8c0ddadb..4626a40c9 100644
--- a/client/src/app/+admin/users/user-edit/user-edit.component.html
+++ b/client/src/app/+admin/users/user-edit/user-edit.component.html
@@ -1,13 +1,13 @@
1<div class="form-sub-title" *ngIf="isCreation() === true">Create user</div> 1<div i18n class="form-sub-title" *ngIf="isCreation() === true">Create user</div>
2<div class="form-sub-title" *ngIf="isCreation() === false">Edit user {{ username }}</div> 2<div i18n class="form-sub-title" *ngIf="isCreation() === false">Edit user {{ username }}</div>
3 3
4<div *ngIf="error" class="alert alert-danger">{{ error }}</div> 4<div *ngIf="error" class="alert alert-danger">{{ error }}</div>
5 5
6<form role="form" (ngSubmit)="formValidated()" [formGroup]="form"> 6<form role="form" (ngSubmit)="formValidated()" [formGroup]="form">
7 <div class="form-group" *ngIf="isCreation()"> 7 <div class="form-group" *ngIf="isCreation()">
8 <label for="username">Username</label> 8 <label i18n for="username">Username</label>
9 <input 9 <input
10 type="text" id="username" placeholder="john" 10 type="text" id="username" i18n-placeholder placeholder="john"
11 formControlName="username" [ngClass]="{ 'input-error': formErrors['username'] }" 11 formControlName="username" [ngClass]="{ 'input-error': formErrors['username'] }"
12 > 12 >
13 <div *ngIf="formErrors.username" class="form-error"> 13 <div *ngIf="formErrors.username" class="form-error">
@@ -16,9 +16,9 @@
16 </div> 16 </div>
17 17
18 <div class="form-group"> 18 <div class="form-group">
19 <label for="email">Email</label> 19 <label i18n for="email">Email</label>
20 <input 20 <input
21 type="text" id="email" placeholder="mail@example.com" 21 type="text" id="email" i18n-placeholder placeholder="mail@example.com"
22 formControlName="email" [ngClass]="{ 'input-error': formErrors['email'] }" 22 formControlName="email" [ngClass]="{ 'input-error': formErrors['email'] }"
23 > 23 >
24 <div *ngIf="formErrors.email" class="form-error"> 24 <div *ngIf="formErrors.email" class="form-error">
@@ -27,7 +27,7 @@
27 </div> 27 </div>
28 28
29 <div class="form-group" *ngIf="isCreation()"> 29 <div class="form-group" *ngIf="isCreation()">
30 <label for="password">Password</label> 30 <label i18n for="password">Password</label>
31 <input 31 <input
32 type="password" id="password" 32 type="password" id="password"
33 formControlName="password" [ngClass]="{ 'input-error': formErrors['password'] }" 33 formControlName="password" [ngClass]="{ 'input-error': formErrors['password'] }"
@@ -38,7 +38,7 @@
38 </div> 38 </div>
39 39
40 <div class="form-group"> 40 <div class="form-group">
41 <label for="role">Role</label> 41 <label i18n for="role">Role</label>
42 <div class="peertube-select-container"> 42 <div class="peertube-select-container">
43 <select id="role" formControlName="role"> 43 <select id="role" formControlName="role">
44 <option *ngFor="let role of roles" [value]="role.value"> 44 <option *ngFor="let role of roles" [value]="role.value">
@@ -53,7 +53,7 @@
53 </div> 53 </div>
54 54
55 <div class="form-group"> 55 <div class="form-group">
56 <label for="videoQuota">Video quota</label> 56 <label i18n for="videoQuota">Video quota</label>
57 <div class="peertube-select-container"> 57 <div class="peertube-select-container">
58 <select id="videoQuota" formControlName="videoQuota"> 58 <select id="videoQuota" formControlName="videoQuota">
59 <option *ngFor="let videoQuotaOption of videoQuotaOptions" [value]="videoQuotaOption.value"> 59 <option *ngFor="let videoQuotaOption of videoQuotaOptions" [value]="videoQuotaOption.value">
@@ -62,7 +62,7 @@
62 </select> 62 </select>
63 </div> 63 </div>
64 64
65 <div class="transcoding-information" *ngIf="isTranscodingInformationDisplayed()"> 65 <div i18n class="transcoding-information" *ngIf="isTranscodingInformationDisplayed()">
66 Transcoding is enabled on server. The video quota only take in account <strong>original</strong> video. <br /> 66 Transcoding is enabled on server. The video quota only take in account <strong>original</strong> video. <br />
67 At most, this user could use ~ {{ computeQuotaWithTranscoding() | bytes: 0 }}. 67 At most, this user could use ~ {{ computeQuotaWithTranscoding() | bytes: 0 }}.
68 </div> 68 </div>
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 3cde07c65..dca555706 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
@@ -8,6 +8,7 @@ import { User, USER_EMAIL, USER_ROLE, USER_VIDEO_QUOTA } from '../../../shared'
8import { ServerService } from '../../../core' 8import { ServerService } from '../../../core'
9import { UserEdit } from './user-edit' 9import { UserEdit } from './user-edit'
10import { UserUpdate } from '../../../../../../shared' 10import { UserUpdate } from '../../../../../../shared'
11import { I18n } from '@ngx-translate/i18n-polyfill'
11 12
12@Component({ 13@Component({
13 selector: 'my-user-update', 14 selector: 'my-user-update',
@@ -39,7 +40,8 @@ export class UserUpdateComponent extends UserEdit implements OnInit, OnDestroy {
39 private router: Router, 40 private router: Router,
40 private notificationsService: NotificationsService, 41 private notificationsService: NotificationsService,
41 private formBuilder: FormBuilder, 42 private formBuilder: FormBuilder,
42 private userService: UserService 43 private userService: UserService,
44 private i18n: I18n
43 ) { 45 ) {
44 super() 46 super()
45 } 47 }
@@ -81,7 +83,10 @@ export class UserUpdateComponent extends UserEdit implements OnInit, OnDestroy {
81 83
82 this.userService.updateUser(this.userId, userUpdate).subscribe( 84 this.userService.updateUser(this.userId, userUpdate).subscribe(
83 () => { 85 () => {
84 this.notificationsService.success('Success', `User ${this.username} updated.`) 86 this.notificationsService.success(
87 this.i18n('Success'),
88 this.i18n('User {{ username }} updated.', { username: this.username })
89 )
85 this.router.navigate([ '/admin/users/list' ]) 90 this.router.navigate([ '/admin/users/list' ])
86 }, 91 },
87 92
@@ -94,7 +99,7 @@ export class UserUpdateComponent extends UserEdit implements OnInit, OnDestroy {
94 } 99 }
95 100
96 getFormButtonTitle () { 101 getFormButtonTitle () {
97 return 'Update user' 102 return this.i18n('Update user')
98 } 103 }
99 104
100 private onUserFetched (userJson: User) { 105 private onUserFetched (userJson: User) {
diff --git a/client/src/app/+admin/users/user-list/user-list.component.html b/client/src/app/+admin/users/user-list/user-list.component.html
index 09a4ac1e7..166fafef0 100644
--- a/client/src/app/+admin/users/user-list/user-list.component.html
+++ b/client/src/app/+admin/users/user-list/user-list.component.html
@@ -1,9 +1,9 @@
1<div class="admin-sub-header"> 1<div class="admin-sub-header">
2 <div class="form-sub-title">Users list</div> 2 <div i18n class="form-sub-title">Users list</div>
3 3
4 <a class="add-button" routerLink="/admin/users/create"> 4 <a class="add-button" routerLink="/admin/users/create">
5 <span class="icon icon-add"></span> 5 <span class="icon icon-add"></span>
6 Create user 6 <ng-container i18n>Create user</ng-container>
7 </a> 7 </a>
8</div> 8</div>
9 9
@@ -13,11 +13,11 @@
13> 13>
14 <ng-template pTemplate="header"> 14 <ng-template pTemplate="header">
15 <tr> 15 <tr>
16 <th pSortableColumn="username">Username <p-sortIcon field="username"></p-sortIcon></th> 16 <th i18n pSortableColumn="username">Username <p-sortIcon field="username"></p-sortIcon></th>
17 <th>Email</th> 17 <th i18n>Email</th>
18 <th>Video quota</th> 18 <th i18n>Video quota</th>
19 <th>Role</th> 19 <th i18n>Role</th>
20 <th pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th> 20 <th i18n pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th>
21 <th></th> 21 <th></th>
22 </tr> 22 </tr>
23 </ng-template> 23 </ng-template>
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 2cc4d4349..b644fcf71 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
@@ -1,11 +1,10 @@
1import { Component, OnInit } from '@angular/core' 1import { Component, OnInit } from '@angular/core'
2
3import { NotificationsService } from 'angular2-notifications' 2import { NotificationsService } from 'angular2-notifications'
4import { SortMeta } from 'primeng/components/common/sortmeta' 3import { SortMeta } from 'primeng/components/common/sortmeta'
5
6import { ConfirmService } from '../../../core' 4import { ConfirmService } from '../../../core'
7import { RestPagination, RestTable, User } from '../../../shared' 5import { RestPagination, RestTable, User } from '../../../shared'
8import { UserService } from '../shared' 6import { UserService } from '../shared'
7import { I18n } from '@ngx-translate/i18n-polyfill'
9 8
10@Component({ 9@Component({
11 selector: 'my-user-list', 10 selector: 'my-user-list',
@@ -22,7 +21,8 @@ export class UserListComponent extends RestTable implements OnInit {
22 constructor ( 21 constructor (
23 private notificationsService: NotificationsService, 22 private notificationsService: NotificationsService,
24 private confirmService: ConfirmService, 23 private confirmService: ConfirmService,
25 private userService: UserService 24 private userService: UserService,
25 private i18n: I18n
26 ) { 26 ) {
27 super() 27 super()
28 } 28 }
@@ -33,20 +33,23 @@ export class UserListComponent extends RestTable implements OnInit {
33 33
34 async removeUser (user: User) { 34 async removeUser (user: User) {
35 if (user.username === 'root') { 35 if (user.username === 'root') {
36 this.notificationsService.error('Error', 'You cannot delete root.') 36 this.notificationsService.error(this.i18n('Error'), this.i18n('You cannot delete root.'))
37 return 37 return
38 } 38 }
39 39
40 const res = await this.confirmService.confirm('Do you really want to delete this user?', 'Delete') 40 const res = await this.confirmService.confirm(this.i18n('Do you really want to delete this user?'), this.i18n('Delete'))
41 if (res === false) return 41 if (res === false) return
42 42
43 this.userService.removeUser(user).subscribe( 43 this.userService.removeUser(user).subscribe(
44 () => { 44 () => {
45 this.notificationsService.success('Success', `User ${user.username} deleted.`) 45 this.notificationsService.success(
46 this.i18n('Success'),
47 this.i18n('User {{ username }} deleted.', { username: user.username })
48 )
46 this.loadData() 49 this.loadData()
47 }, 50 },
48 51
49 err => this.notificationsService.error('Error', err.message) 52 err => this.notificationsService.error(this.i18n('Error'), err.message)
50 ) 53 )
51 } 54 }
52 55
@@ -62,7 +65,7 @@ export class UserListComponent extends RestTable implements OnInit {
62 this.totalRecords = resultList.total 65 this.totalRecords = resultList.total
63 }, 66 },
64 67
65 err => this.notificationsService.error('Error', err.message) 68 err => this.notificationsService.error(this.i18n('Error'), err.message)
66 ) 69 )
67 } 70 }
68} 71}
diff --git a/client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.html b/client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.html
index 5f70db991..8111e5f73 100644
--- a/client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.html
+++ b/client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.html
@@ -1,5 +1,5 @@
1<div class="admin-sub-header"> 1<div class="admin-sub-header">
2 <div class="form-sub-title">Video abuses list</div> 2 <div i18n class="form-sub-title">Video abuses list</div>
3</div> 3</div>
4 4
5<p-table 5<p-table
@@ -8,10 +8,10 @@
8> 8>
9 <ng-template pTemplate="header"> 9 <ng-template pTemplate="header">
10 <tr> 10 <tr>
11 <th>Reason</th> 11 <th i18n>Reason</th>
12 <th>Reporter</th> 12 <th i18n>Reporter</th>
13 <th pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th> 13 <th i18n pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th>
14 <th>Video</th> 14 <th i18n>Video</th>
15 </tr> 15 </tr>
16 </ng-template> 16 </ng-template>
17 17
@@ -19,13 +19,13 @@
19 <tr> 19 <tr>
20 <td>{{ videoAbuse.reason }}</td> 20 <td>{{ videoAbuse.reason }}</td>
21 <td> 21 <td>
22 <a [href]="videoAbuse.reporterAccount.url" title="Go to the account" target="_blank" rel="noopener noreferrer"> 22 <a [href]="videoAbuse.reporterAccount.url" i18n-title title="Go to the account" target="_blank" rel="noopener noreferrer">
23 {{ createByString(videoAbuse.reporterAccount) }} 23 {{ createByString(videoAbuse.reporterAccount) }}
24 </a> 24 </a>
25 </td> 25 </td>
26 <td>{{ videoAbuse.createdAt }}</td> 26 <td>{{ videoAbuse.createdAt }}</td>
27 <td> 27 <td>
28 <a [href]="videoAbuse.video.url" title="Go to the video" target="_blank" rel="noopener noreferrer"> 28 <a [href]="videoAbuse.video.url" i18n-title title="Go to the video" target="_blank" rel="noopener noreferrer">
29 {{ videoAbuse.video.name }} 29 {{ videoAbuse.video.name }}
30 </a> 30 </a>
31 </td> 31 </td>
diff --git a/client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.ts b/client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.ts
index b650194b7..6ddebff7e 100644
--- a/client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.ts
+++ b/client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.ts
@@ -5,6 +5,7 @@ import { SortMeta } from 'primeng/components/common/sortmeta'
5import { VideoAbuse } from '../../../../../../shared' 5import { VideoAbuse } from '../../../../../../shared'
6 6
7import { RestPagination, RestTable, VideoAbuseService } from '../../../shared' 7import { RestPagination, RestTable, VideoAbuseService } from '../../../shared'
8import { I18n } from '@ngx-translate/i18n-polyfill'
8 9
9@Component({ 10@Component({
10 selector: 'my-video-abuse-list', 11 selector: 'my-video-abuse-list',
@@ -20,7 +21,8 @@ export class VideoAbuseListComponent extends RestTable implements OnInit {
20 21
21 constructor ( 22 constructor (
22 private notificationsService: NotificationsService, 23 private notificationsService: NotificationsService,
23 private videoAbuseService: VideoAbuseService 24 private videoAbuseService: VideoAbuseService,
25 private i18n: I18n
24 ) { 26 ) {
25 super() 27 super()
26 } 28 }
@@ -41,7 +43,7 @@ export class VideoAbuseListComponent extends RestTable implements OnInit {
41 this.totalRecords = resultList.total 43 this.totalRecords = resultList.total
42 }, 44 },
43 45
44 err => this.notificationsService.error('Error', err.message) 46 err => this.notificationsService.error(this.i18n('Error'), err.message)
45 ) 47 )
46 } 48 }
47} 49}
diff --git a/client/src/app/+admin/video-blacklist/video-blacklist-list/video-blacklist-list.component.html b/client/src/app/+admin/video-blacklist/video-blacklist-list/video-blacklist-list.component.html
index 0a0fcb762..04f0e3b5c 100644
--- a/client/src/app/+admin/video-blacklist/video-blacklist-list/video-blacklist-list.component.html
+++ b/client/src/app/+admin/video-blacklist/video-blacklist-list/video-blacklist-list.component.html
@@ -1,5 +1,5 @@
1<div class="admin-sub-header"> 1<div class="admin-sub-header">
2 <div class="form-sub-title">Blacklisted videos</div> 2 <div i18n class="form-sub-title">Blacklisted videos</div>
3</div> 3</div>
4 4
5<p-table 5<p-table
@@ -8,12 +8,12 @@
8> 8>
9 <ng-template pTemplate="header"> 9 <ng-template pTemplate="header">
10 <tr> 10 <tr>
11 <th pSortableColumn="name">Name <p-sortIcon field="name"></p-sortIcon></th> 11 <th i18n pSortableColumn="name">Name <p-sortIcon field="name"></p-sortIcon></th>
12 <th>Description</th> 12 <th i18n>Description</th>
13 <th pSortableColumn="views">Views <p-sortIcon field="views"></p-sortIcon></th> 13 <th i18n pSortableColumn="views">Views <p-sortIcon field="views"></p-sortIcon></th>
14 <th>NSFW</th> 14 <th i18n>NSFW</th>
15 <th>UUID</th> 15 <th i18n>UUID</th>
16 <th pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th> 16 <th i18n pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th>
17 <th></th> 17 <th></th>
18 </tr> 18 </tr>
19 </ng-template> 19 </ng-template>
@@ -27,7 +27,7 @@
27 <td>{{ videoBlacklist.uuid }}</td> 27 <td>{{ videoBlacklist.uuid }}</td>
28 <td>{{ videoBlacklist.createdAt }}</td> 28 <td>{{ videoBlacklist.createdAt }}</td>
29 <td class="action-cell"> 29 <td class="action-cell">
30 <my-delete-button label="Unblacklist" (click)="removeVideoFromBlacklist(videoBlacklist)"></my-delete-button> 30 <my-delete-button i18n-label label="Unblacklist" (click)="removeVideoFromBlacklist(videoBlacklist)"></my-delete-button>
31 </td> 31 </td>
32 </tr> 32 </tr>
33 </ng-template> 33 </ng-template>
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 7210e677c..1864e5f65 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
@@ -1,11 +1,10 @@
1import { Component, OnInit } from '@angular/core' 1import { Component, OnInit } from '@angular/core'
2import { SortMeta } from 'primeng/components/common/sortmeta' 2import { SortMeta } from 'primeng/components/common/sortmeta'
3
4import { NotificationsService } from 'angular2-notifications' 3import { NotificationsService } from 'angular2-notifications'
5
6import { ConfirmService } from '../../../core' 4import { ConfirmService } from '../../../core'
7import { VideoBlacklistService, RestTable, RestPagination } from '../../../shared' 5import { RestPagination, RestTable, VideoBlacklistService } from '../../../shared'
8import { BlacklistedVideo } from '../../../../../../shared' 6import { BlacklistedVideo } from '../../../../../../shared'
7import { I18n } from '@ngx-translate/i18n-polyfill'
9 8
10@Component({ 9@Component({
11 selector: 'my-video-blacklist-list', 10 selector: 'my-video-blacklist-list',
@@ -22,7 +21,8 @@ export class VideoBlacklistListComponent extends RestTable implements OnInit {
22 constructor ( 21 constructor (
23 private notificationsService: NotificationsService, 22 private notificationsService: NotificationsService,
24 private confirmService: ConfirmService, 23 private confirmService: ConfirmService,
25 private videoBlacklistService: VideoBlacklistService 24 private videoBlacklistService: VideoBlacklistService,
25 private i18n: I18n
26 ) { 26 ) {
27 super() 27 super()
28 } 28 }
@@ -32,18 +32,23 @@ export class VideoBlacklistListComponent extends RestTable implements OnInit {
32 } 32 }
33 33
34 async removeVideoFromBlacklist (entry: BlacklistedVideo) { 34 async removeVideoFromBlacklist (entry: BlacklistedVideo) {
35 const confirmMessage = 'Do you really want to remove this video from the blacklist ? It will be available again in the videos list.' 35 const confirmMessage = this.i18n(
36 'Do you really want to remove this video from the blacklist ? It will be available again in the videos list.'
37 )
36 38
37 const res = await this.confirmService.confirm(confirmMessage, 'Unblacklist') 39 const res = await this.confirmService.confirm(confirmMessage, this.i18n('Unblacklist'))
38 if (res === false) return 40 if (res === false) return
39 41
40 this.videoBlacklistService.removeVideoFromBlacklist(entry.videoId).subscribe( 42 this.videoBlacklistService.removeVideoFromBlacklist(entry.videoId).subscribe(
41 () => { 43 () => {
42 this.notificationsService.success('Success', `Video ${entry.name} removed from the blacklist.`) 44 this.notificationsService.success(
45 this.i18n('Success'),
46 this.i18n('Video {{ name }} removed from the blacklist.', { name: entry.name })
47 )
43 this.loadData() 48 this.loadData()
44 }, 49 },
45 50
46 err => this.notificationsService.error('Error', err.message) 51 err => this.notificationsService.error(this.i18n('Error'), err.message)
47 ) 52 )
48 } 53 }
49 54
@@ -55,7 +60,7 @@ export class VideoBlacklistListComponent extends RestTable implements OnInit {
55 this.totalRecords = resultList.total 60 this.totalRecords = resultList.total
56 }, 61 },
57 62
58 err => this.notificationsService.error('Error', err.message) 63 err => this.notificationsService.error(this.i18n('Error'), err.message)
59 ) 64 )
60 } 65 }
61} 66}
diff --git a/client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.html b/client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.html
index b0e3cada4..767ef0336 100644
--- a/client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.html
+++ b/client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.html
@@ -2,9 +2,9 @@
2 2
3<form role="form" (ngSubmit)="changePassword()" [formGroup]="form"> 3<form role="form" (ngSubmit)="changePassword()" [formGroup]="form">
4 4
5 <label for="new-password">Change password</label> 5 <label i18n for="new-password">Change password</label>
6 <input 6 <input
7 type="password" id="new-password" placeholder="New password" 7 type="password" id="new-password" i18n-placeholder placeholder="New password"
8 formControlName="new-password" [ngClass]="{ 'input-error': formErrors['new-password'] }" 8 formControlName="new-password" [ngClass]="{ 'input-error': formErrors['new-password'] }"
9 > 9 >
10 <div *ngIf="formErrors['new-password']" class="form-error"> 10 <div *ngIf="formErrors['new-password']" class="form-error">
@@ -12,9 +12,9 @@
12 </div> 12 </div>
13 13
14 <input 14 <input
15 type="password" id="new-confirmed-password" placeholder="Confirm new password" 15 type="password" id="new-confirmed-password" i18n-placeholder placeholder="Confirm new password"
16 formControlName="new-confirmed-password" 16 formControlName="new-confirmed-password"
17 > 17 >
18 18
19 <input type="submit" value="Change password" [disabled]="!form.valid"> 19 <input type="submit" i18n-value value="Change password" [disabled]="!form.valid">
20</form> 20</form>
diff --git a/client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.ts b/client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.ts
index 80af668f9..1a88aa82e 100644
--- a/client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.ts
+++ b/client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.ts
@@ -2,6 +2,7 @@ import { Component, OnInit } from '@angular/core'
2import { FormBuilder, FormGroup } from '@angular/forms' 2import { FormBuilder, FormGroup } from '@angular/forms'
3import { NotificationsService } from 'angular2-notifications' 3import { NotificationsService } from 'angular2-notifications'
4import { FormReactive, USER_PASSWORD, UserService } from '../../../shared' 4import { FormReactive, USER_PASSWORD, UserService } from '../../../shared'
5import { I18n } from '@ngx-translate/i18n-polyfill'
5 6
6@Component({ 7@Component({
7 selector: 'my-account-change-password', 8 selector: 'my-account-change-password',
@@ -24,7 +25,8 @@ export class MyAccountChangePasswordComponent extends FormReactive implements On
24 constructor ( 25 constructor (
25 private formBuilder: FormBuilder, 26 private formBuilder: FormBuilder,
26 private notificationsService: NotificationsService, 27 private notificationsService: NotificationsService,
27 private userService: UserService 28 private userService: UserService,
29 private i18n: I18n
28 ) { 30 ) {
29 super() 31 super()
30 } 32 }
@@ -49,12 +51,12 @@ export class MyAccountChangePasswordComponent extends FormReactive implements On
49 this.error = null 51 this.error = null
50 52
51 if (newPassword !== newConfirmedPassword) { 53 if (newPassword !== newConfirmedPassword) {
52 this.error = 'The new password and the confirmed password do not correspond.' 54 this.error = this.i18n('The new password and the confirmed password do not correspond.')
53 return 55 return
54 } 56 }
55 57
56 this.userService.changePassword(newPassword).subscribe( 58 this.userService.changePassword(newPassword).subscribe(
57 () => this.notificationsService.success('Success', 'Password updated.'), 59 () => this.notificationsService.success(this.i18n('Success'), this.i18n('Password updated.')),
58 60
59 err => this.error = err.message 61 err => this.error = err.message
60 ) 62 )
diff --git a/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.html b/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.html
index 306f3a12c..bbdce5b02 100644
--- a/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.html
+++ b/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.html
@@ -2,7 +2,7 @@
2 2
3<form role="form" (ngSubmit)="updateMyProfile()" [formGroup]="form"> 3<form role="form" (ngSubmit)="updateMyProfile()" [formGroup]="form">
4 4
5 <label for="display-name">Display name</label> 5 <label i18n for="display-name">Display name</label>
6 <input 6 <input
7 type="text" id="display-name" 7 type="text" id="display-name"
8 formControlName="display-name" [ngClass]="{ 'input-error': formErrors['display-name'] }" 8 formControlName="display-name" [ngClass]="{ 'input-error': formErrors['display-name'] }"
@@ -11,7 +11,7 @@
11 {{ formErrors['display-name'] }} 11 {{ formErrors['display-name'] }}
12 </div> 12 </div>
13 13
14 <label for="description">Description</label> 14 <label i18n for="description">Description</label>
15 <textarea 15 <textarea
16 id="description" formControlName="description" 16 id="description" formControlName="description"
17 [ngClass]="{ 'input-error': formErrors['description'] }" 17 [ngClass]="{ 'input-error': formErrors['description'] }"
@@ -20,5 +20,5 @@
20 {{ formErrors.description }} 20 {{ formErrors.description }}
21 </div> 21 </div>
22 22
23 <input type="submit" value="Update my profile" [disabled]="!form.valid"> 23 <input type="submit" i18n-value value="Update my profile" [disabled]="!form.valid">
24</form> 24</form>
diff --git a/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.ts b/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.ts
index 468be022c..35843ecd9 100644
--- a/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.ts
+++ b/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.ts
@@ -3,6 +3,7 @@ import { FormBuilder, FormGroup } from '@angular/forms'
3import { NotificationsService } from 'angular2-notifications' 3import { NotificationsService } from 'angular2-notifications'
4import { FormReactive, USER_DESCRIPTION, USER_DISPLAY_NAME, UserService } from '../../../shared' 4import { FormReactive, USER_DESCRIPTION, USER_DISPLAY_NAME, UserService } from '../../../shared'
5import { User } from '@app/shared' 5import { User } from '@app/shared'
6import { I18n } from '@ngx-translate/i18n-polyfill'
6 7
7@Component({ 8@Component({
8 selector: 'my-account-profile', 9 selector: 'my-account-profile',
@@ -27,7 +28,8 @@ export class MyAccountProfileComponent extends FormReactive implements OnInit {
27 constructor ( 28 constructor (
28 private formBuilder: FormBuilder, 29 private formBuilder: FormBuilder,
29 private notificationsService: NotificationsService, 30 private notificationsService: NotificationsService,
30 private userService: UserService 31 private userService: UserService,
32 private i18n: I18n
31 ) { 33 ) {
32 super() 34 super()
33 } 35 }
@@ -56,7 +58,7 @@ export class MyAccountProfileComponent extends FormReactive implements OnInit {
56 this.user.account.displayName = displayName 58 this.user.account.displayName = displayName
57 this.user.account.description = description 59 this.user.account.description = description
58 60
59 this.notificationsService.success('Success', 'Profile updated.') 61 this.notificationsService.success(this.i18n('Success'), this.i18n('Profile updated.'))
60 }, 62 },
61 63
62 err => this.error = err.message 64 err => this.error = err.message
diff --git a/client/src/app/+my-account/my-account-settings/my-account-settings.component.html b/client/src/app/+my-account/my-account-settings/my-account-settings.component.html
index 0fcc7782e..056c2a7d7 100644
--- a/client/src/app/+my-account/my-account-settings/my-account-settings.component.html
+++ b/client/src/app/+my-account/my-account-settings/my-account-settings.component.html
@@ -6,27 +6,27 @@
6 <div class="user-info-display-name">{{ user.account.displayName }}</div> 6 <div class="user-info-display-name">{{ user.account.displayName }}</div>
7 <div class="user-info-username">{{ user.username }}</div> 7 <div class="user-info-username">{{ user.username }}</div>
8 </div> 8 </div>
9 <div class="user-info-followers">{{ user.account?.followersCount }} subscribers</div> 9 <div i18n class="user-info-followers">{{ user.account?.followersCount }} subscribers</div>
10 </div> 10 </div>
11</div> 11</div>
12 12
13<div class="button-file"> 13<div class="button-file">
14 <span>Change your avatar</span> 14 <span i18n>Change your avatar</span>
15 <input #avatarfileInput type="file" name="avatarfile" id="avatarfile" [accept]="avatarExtensions" (change)="changeAvatar()" /> 15 <input #avatarfileInput type="file" name="avatarfile" id="avatarfile" [accept]="avatarExtensions" (change)="changeAvatar()" />
16</div> 16</div>
17<div class="file-max-size">(extensions: {{ avatarExtensions }}, max size: {{ maxAvatarSize | bytes }})</div> 17<div i18n class="file-max-size">(extensions: {{ avatarExtensions }}, max size: {{ maxAvatarSize | bytes }})</div>
18 18
19<div class="user-quota"> 19<div class="user-quota">
20 <span class="user-quota-label">Video quota:</span> {{ userVideoQuotaUsed | bytes: 0 }} / {{ userVideoQuota }} 20 <span i18n class="user-quota-label">Video quota:</span> {{ userVideoQuotaUsed | bytes: 0 }} / {{ userVideoQuota }}
21</div> 21</div>
22 22
23<ng-template [ngIf]="user && user.account"> 23<ng-template [ngIf]="user && user.account">
24 <div class="account-title">Profile</div> 24 <div i18n class="account-title">Profile</div>
25 <my-account-profile [user]="user"></my-account-profile> 25 <my-account-profile [user]="user"></my-account-profile>
26</ng-template> 26</ng-template>
27 27
28<div class="account-title">Password</div> 28<div i18n class="account-title">Password</div>
29<my-account-change-password></my-account-change-password> 29<my-account-change-password></my-account-change-password>
30 30
31<div class="account-title">Video settings</div> 31<div i18n class="account-title">Video settings</div>
32<my-account-video-settings [user]="user"></my-account-video-settings> 32<my-account-video-settings [user]="user"></my-account-video-settings>
diff --git a/client/src/app/+my-account/my-account-settings/my-account-settings.component.ts b/client/src/app/+my-account/my-account-settings/my-account-settings.component.ts
index 06d1138e7..44eddaa7c 100644
--- a/client/src/app/+my-account/my-account-settings/my-account-settings.component.ts
+++ b/client/src/app/+my-account/my-account-settings/my-account-settings.component.ts
@@ -5,6 +5,7 @@ import { AuthService } from '../../core'
5import { ServerService } from '../../core/server' 5import { ServerService } from '../../core/server'
6import { User } from '../../shared' 6import { User } from '../../shared'
7import { UserService } from '../../shared/users' 7import { UserService } from '../../shared/users'
8import { I18n } from '@ngx-translate/i18n-polyfill'
8 9
9@Component({ 10@Component({
10 selector: 'my-account-settings', 11 selector: 'my-account-settings',
@@ -22,7 +23,8 @@ export class MyAccountSettingsComponent implements OnInit {
22 private userService: UserService, 23 private userService: UserService,
23 private authService: AuthService, 24 private authService: AuthService,
24 private serverService: ServerService, 25 private serverService: ServerService,
25 private notificationsService: NotificationsService 26 private notificationsService: NotificationsService,
27 private i18n: I18n
26 ) {} 28 ) {}
27 29
28 ngOnInit () { 30 ngOnInit () {
@@ -33,7 +35,7 @@ export class MyAccountSettingsComponent implements OnInit {
33 if (this.user.videoQuota !== -1) { 35 if (this.user.videoQuota !== -1) {
34 this.userVideoQuota = new BytesPipe().transform(this.user.videoQuota, 0).toString() 36 this.userVideoQuota = new BytesPipe().transform(this.user.videoQuota, 0).toString()
35 } else { 37 } else {
36 this.userVideoQuota = 'Unlimited' 38 this.userVideoQuota = this.i18n('Unlimited')
37 } 39 }
38 } 40 }
39 ) 41 )
@@ -51,12 +53,12 @@ export class MyAccountSettingsComponent implements OnInit {
51 this.userService.changeAvatar(formData) 53 this.userService.changeAvatar(formData)
52 .subscribe( 54 .subscribe(
53 data => { 55 data => {
54 this.notificationsService.success('Success', 'Avatar changed.') 56 this.notificationsService.success(this.i18n('Success'), this.i18n('Avatar changed.'))
55 57
56 this.user.account.avatar = data.avatar 58 this.user.account.avatar = data.avatar
57 }, 59 },
58 60
59 err => this.notificationsService.error('Error', err.message) 61 err => this.notificationsService.error(this.i18n('Error'), err.message)
60 ) 62 )
61 } 63 }
62 64
diff --git a/client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.html b/client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.html
index 0e8598e9e..98587eb18 100644
--- a/client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.html
+++ b/client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.html
@@ -1,13 +1,16 @@
1<form role="form" (ngSubmit)="updateDetails()" [formGroup]="form"> 1<form role="form" (ngSubmit)="updateDetails()" [formGroup]="form">
2 <div class="form-group"> 2 <div class="form-group">
3 <label for="nsfwPolicy">Default policy on videos containing sensitive content</label> 3 <label i18n for="nsfwPolicy">Default policy on videos containing sensitive content</label>
4 <my-help helpType="custom" customHtml="With <strong>Do not list</strong> or <strong>Blur thumbnails</strong>, a confirmation will be requested to watch the video."></my-help> 4 <my-help
5 helpType="custom" i18n-customHtml
6 customHtml="With <strong>Do not list</strong> or <strong>Blur thumbnails</strong>, a confirmation will be requested to watch the video."
7 ></my-help>
5 8
6 <div class="peertube-select-container"> 9 <div class="peertube-select-container">
7 <select id="nsfwPolicy" formControlName="nsfwPolicy"> 10 <select id="nsfwPolicy" formControlName="nsfwPolicy">
8 <option value="do_not_list">Do not list</option> 11 <option i18n value="do_not_list">Do not list</option>
9 <option value="blur">Blur thumbnails</option> 12 <option i18n value="blur">Blur thumbnails</option>
10 <option value="display">Display</option> 13 <option i18n value="display">Display</option>
11 </select> 14 </select>
12 </div> 15 </div>
13 </div> 16 </div>
@@ -18,8 +21,8 @@
18 formControlName="autoPlayVideo" 21 formControlName="autoPlayVideo"
19 > 22 >
20 <label for="autoPlayVideo"></label> 23 <label for="autoPlayVideo"></label>
21 <label for="autoPlayVideo">Automatically plays video</label> 24 <label i18n for="autoPlayVideo">Automatically plays video</label>
22 </div> 25 </div>
23 26
24 <input type="submit" value="Save" [disabled]="!form.valid"> 27 <input type="submit" i18n-value value="Save" [disabled]="!form.valid">
25</form> 28</form>
diff --git a/client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.ts b/client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.ts
index acc70c14d..4588f73db 100644
--- a/client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.ts
+++ b/client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.ts
@@ -4,6 +4,7 @@ import { NotificationsService } from 'angular2-notifications'
4import { UserUpdateMe } from '../../../../../../shared' 4import { UserUpdateMe } from '../../../../../../shared'
5import { AuthService } from '../../../core' 5import { AuthService } from '../../../core'
6import { FormReactive, User, UserService } from '../../../shared' 6import { FormReactive, User, UserService } from '../../../shared'
7import { I18n } from '@ngx-translate/i18n-polyfill'
7 8
8@Component({ 9@Component({
9 selector: 'my-account-video-settings', 10 selector: 'my-account-video-settings',
@@ -21,7 +22,8 @@ export class MyAccountVideoSettingsComponent extends FormReactive implements OnI
21 private authService: AuthService, 22 private authService: AuthService,
22 private formBuilder: FormBuilder, 23 private formBuilder: FormBuilder,
23 private notificationsService: NotificationsService, 24 private notificationsService: NotificationsService,
24 private userService: UserService 25 private userService: UserService,
26 private i18n: I18n
25 ) { 27 ) {
26 super() 28 super()
27 } 29 }
@@ -49,12 +51,12 @@ export class MyAccountVideoSettingsComponent extends FormReactive implements OnI
49 51
50 this.userService.updateMyProfile(details).subscribe( 52 this.userService.updateMyProfile(details).subscribe(
51 () => { 53 () => {
52 this.notificationsService.success('Success', 'Information updated.') 54 this.notificationsService.success(this.i18n('Success'), this.i18n('Information updated.'))
53 55
54 this.authService.refreshUserInformation() 56 this.authService.refreshUserInformation()
55 }, 57 },
56 58
57 err => this.notificationsService.error('Error', err.message) 59 err => this.notificationsService.error(this.i18n('Error'), err.message)
58 ) 60 )
59 } 61 }
60} 62}
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 c82bb39c8..9b5a12d18 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
@@ -11,6 +11,7 @@ import {
11} from '@app/shared/forms/form-validators/video-channel' 11} from '@app/shared/forms/form-validators/video-channel'
12import { VideoChannelService } from '@app/shared/video-channel/video-channel.service' 12import { VideoChannelService } from '@app/shared/video-channel/video-channel.service'
13import { AuthService } from '@app/core' 13import { AuthService } from '@app/core'
14import { I18n } from '@ngx-translate/i18n-polyfill'
14 15
15@Component({ 16@Component({
16 selector: 'my-account-video-channel-create', 17 selector: 'my-account-video-channel-create',
@@ -37,7 +38,8 @@ export class MyAccountVideoChannelCreateComponent extends MyAccountVideoChannelE
37 private notificationsService: NotificationsService, 38 private notificationsService: NotificationsService,
38 private router: Router, 39 private router: Router,
39 private formBuilder: FormBuilder, 40 private formBuilder: FormBuilder,
40 private videoChannelService: VideoChannelService 41 private videoChannelService: VideoChannelService,
42 private i18n: I18n
41 ) { 43 ) {
42 super() 44 super()
43 } 45 }
@@ -69,7 +71,10 @@ export class MyAccountVideoChannelCreateComponent extends MyAccountVideoChannelE
69 this.videoChannelService.createVideoChannel(videoChannelCreate).subscribe( 71 this.videoChannelService.createVideoChannel(videoChannelCreate).subscribe(
70 () => { 72 () => {
71 this.authService.refreshUserInformation() 73 this.authService.refreshUserInformation()
72 this.notificationsService.success('Success', `Video channel ${videoChannelCreate.displayName} created.`) 74 this.notificationsService.success(
75 this.i18n('Success'),
76 this.i18n('Video channel {{ videoChannelName }} created.', { videoChannelName: videoChannelCreate.displayName })
77 )
73 this.router.navigate([ '/my-account', 'video-channels' ]) 78 this.router.navigate([ '/my-account', 'video-channels' ])
74 }, 79 },
75 80
@@ -82,6 +87,6 @@ export class MyAccountVideoChannelCreateComponent extends MyAccountVideoChannelE
82 } 87 }
83 88
84 getFormButtonTitle () { 89 getFormButtonTitle () {
85 return 'Create' 90 return this.i18n('Create')
86 } 91 }
87} 92}
diff --git a/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-edit.component.html b/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-edit.component.html
index 10d408d55..1c08cfdca 100644
--- a/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-edit.component.html
+++ b/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-edit.component.html
@@ -1,11 +1,11 @@
1<div class="form-sub-title" *ngIf="isCreation() === true">Create a video channel</div> 1<div i18n class="form-sub-title" *ngIf="isCreation() === true">Create a video channel</div>
2<div class="form-sub-title" *ngIf="isCreation() === false">Update {{ videoChannel?.displayName }}</div> 2<div i18n class="form-sub-title" *ngIf="isCreation() === false">Update {{ videoChannel?.displayName }}</div>
3 3
4<div *ngIf="error" class="alert alert-danger">{{ error }}</div> 4<div *ngIf="error" class="alert alert-danger">{{ error }}</div>
5 5
6<form role="form" (ngSubmit)="formValidated()" [formGroup]="form"> 6<form role="form" (ngSubmit)="formValidated()" [formGroup]="form">
7 <div class="form-group"> 7 <div class="form-group">
8 <label for="display-name">Display name</label> 8 <label i18n for="display-name">Display name</label>
9 <input 9 <input
10 type="text" id="display-name" 10 type="text" id="display-name"
11 formControlName="display-name" [ngClass]="{ 'input-error': formErrors['display-name'] }" 11 formControlName="display-name" [ngClass]="{ 'input-error': formErrors['display-name'] }"
@@ -16,7 +16,7 @@
16 </div> 16 </div>
17 17
18 <div class="form-group"> 18 <div class="form-group">
19 <label for="description">Description</label> 19 <label i18n for="description">Description</label>
20 <textarea 20 <textarea
21 id="description" formControlName="description" 21 id="description" formControlName="description"
22 [ngClass]="{ 'input-error': formErrors['description'] }" 22 [ngClass]="{ 'input-error': formErrors['description'] }"
@@ -29,7 +29,7 @@
29 <div class="form-group"> 29 <div class="form-group">
30 <label for="support">Support</label> 30 <label for="support">Support</label>
31 <my-help 31 <my-help
32 helpType="markdownEnhanced" preHtml="Short text to tell people how they can support your channel (membership platform...).<br /><br /> 32 helpType="markdownEnhanced" i18n-preHtml preHtml="Short text to tell people how they can support your channel (membership platform...).<br /><br />
33When you will upload a video in this channel, the video support field will be automatically filled by this text." 33When you will upload a video in this channel, the video support field will be automatically filled by this text."
34 ></my-help> 34 ></my-help>
35 <my-markdown-textarea 35 <my-markdown-textarea
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 b4c8df3cd..78c578764 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
@@ -13,6 +13,7 @@ import { VideoChannelService } from '@app/shared/video-channel/video-channel.ser
13import { Subscription } from 'rxjs' 13import { Subscription } from 'rxjs'
14import { VideoChannel } from '@app/shared/video-channel/video-channel.model' 14import { VideoChannel } from '@app/shared/video-channel/video-channel.model'
15import { AuthService } from '@app/core' 15import { AuthService } from '@app/core'
16import { I18n } from '@ngx-translate/i18n-polyfill'
16 17
17@Component({ 18@Component({
18 selector: 'my-account-video-channel-update', 19 selector: 'my-account-video-channel-update',
@@ -43,7 +44,8 @@ export class MyAccountVideoChannelUpdateComponent extends MyAccountVideoChannelE
43 private router: Router, 44 private router: Router,
44 private route: ActivatedRoute, 45 private route: ActivatedRoute,
45 private formBuilder: FormBuilder, 46 private formBuilder: FormBuilder,
46 private videoChannelService: VideoChannelService 47 private videoChannelService: VideoChannelService,
48 private i18n: I18n
47 ) { 49 ) {
48 super() 50 super()
49 } 51 }
@@ -97,7 +99,10 @@ export class MyAccountVideoChannelUpdateComponent extends MyAccountVideoChannelE
97 this.videoChannelService.updateVideoChannel(this.videoChannelToUpdate.uuid, videoChannelUpdate).subscribe( 99 this.videoChannelService.updateVideoChannel(this.videoChannelToUpdate.uuid, videoChannelUpdate).subscribe(
98 () => { 100 () => {
99 this.authService.refreshUserInformation() 101 this.authService.refreshUserInformation()
100 this.notificationsService.success('Success', `Video channel ${videoChannelUpdate.displayName} updated.`) 102 this.notificationsService.success(
103 this.i18n('Success'),
104 this.i18n('Video channel {{ videoChannelName }} updated.', { videoChannelName: videoChannelUpdate.displayName })
105 )
101 this.router.navigate([ '/my-account', 'video-channels' ]) 106 this.router.navigate([ '/my-account', 'video-channels' ])
102 }, 107 },
103 108
@@ -110,6 +115,6 @@ export class MyAccountVideoChannelUpdateComponent extends MyAccountVideoChannelE
110 } 115 }
111 116
112 getFormButtonTitle () { 117 getFormButtonTitle () {
113 return 'Update' 118 return this.i18n('Update')
114 } 119 }
115} 120}
diff --git a/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.html b/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.html
index 90c401bc5..d27c3b4ec 100644
--- a/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.html
+++ b/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.html
@@ -1,7 +1,7 @@
1<div class="video-channels-header"> 1<div class="video-channels-header">
2 <a class="create-button" routerLink="create"> 2 <a class="create-button" routerLink="create">
3 <span class="icon icon-add"></span> 3 <span class="icon icon-add"></span>
4 Create another video channel 4 <ng-container i18n>Create another video channel</ng-container>
5 </a> 5 </a>
6</div> 6</div>
7 7
@@ -12,13 +12,13 @@
12 </a> 12 </a>
13 13
14 <div class="video-channel-info"> 14 <div class="video-channel-info">
15 <a [routerLink]="[ '/video-channels', videoChannel.uuid ]" class="video-channel-names" title="Go to the channel"> 15 <a [routerLink]="[ '/video-channels', videoChannel.uuid ]" class="video-channel-names" i18n-title title="Go to the channel">
16 <div class="video-channel-display-name">{{ videoChannel.displayName }}</div> 16 <div class="video-channel-display-name">{{ videoChannel.displayName }}</div>
17 <!-- Hide the name for now, because it's an UUID not very friendly --> 17 <!-- Hide the name for now, because it's an UUID not very friendly -->
18 <!--<div class="video-channel-name">{{ videoChannel.name }}</div>--> 18 <!--<div class="video-channel-name">{{ videoChannel.name }}</div>-->
19 </a> 19 </a>
20 20
21 <div class="video-channel-followers">{{ videoChannel.followersCount }} subscribers</div> 21 <div i18n class="video-channel-followers">{{ videoChannel.followersCount }} subscribers</div>
22 </div> 22 </div>
23 23
24 <div class="video-channel-buttons"> 24 <div class="video-channel-buttons">
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 20c8798d1..cff1041f6 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
@@ -6,6 +6,7 @@ import { VideoChannel } from '@app/shared/video-channel/video-channel.model'
6import { VideoChannelService } from '@app/shared/video-channel/video-channel.service' 6import { VideoChannelService } from '@app/shared/video-channel/video-channel.service'
7import { User } from '@app/shared' 7import { User } from '@app/shared'
8import { flatMap } from 'rxjs/operators' 8import { flatMap } from 'rxjs/operators'
9import { I18n } from '@ngx-translate/i18n-polyfill'
9 10
10@Component({ 11@Component({
11 selector: 'my-account-video-channels', 12 selector: 'my-account-video-channels',
@@ -21,7 +22,8 @@ export class MyAccountVideoChannelsComponent implements OnInit {
21 private authService: AuthService, 22 private authService: AuthService,
22 private notificationsService: NotificationsService, 23 private notificationsService: NotificationsService,
23 private confirmService: ConfirmService, 24 private confirmService: ConfirmService,
24 private videoChannelService: VideoChannelService 25 private videoChannelService: VideoChannelService,
26 private i18n: I18n
25 ) {} 27 ) {}
26 28
27 ngOnInit () { 29 ngOnInit () {
@@ -32,10 +34,13 @@ export class MyAccountVideoChannelsComponent implements OnInit {
32 34
33 async deleteVideoChannel (videoChannel: VideoChannel) { 35 async deleteVideoChannel (videoChannel: VideoChannel) {
34 const res = await this.confirmService.confirmWithInput( 36 const res = await this.confirmService.confirmWithInput(
35 `Do you really want to delete ${videoChannel.displayName}? It will delete all videos uploaded in this channel too.`, 37 this.i18n(
36 'Please type the name of the video channel to confirm', 38 'Do you really want to delete {{ videoChannelName }}? It will delete all videos uploaded in this channel too.',
39 { videoChannelName: videoChannel.displayName }
40 ),
41 this.i18n('Please type the name of the video channel to confirm'),
37 videoChannel.displayName, 42 videoChannel.displayName,
38 'Delete' 43 this.i18n('Delete')
39 ) 44 )
40 if (res === false) return 45 if (res === false) return
41 46
@@ -43,10 +48,13 @@ export class MyAccountVideoChannelsComponent implements OnInit {
43 .subscribe( 48 .subscribe(
44 status => { 49 status => {
45 this.loadVideoChannels() 50 this.loadVideoChannels()
46 this.notificationsService.success('Success', `Video channel ${videoChannel.name} deleted.`) 51 this.notificationsService.success(
52 this.i18n('Success'),
53 this.i18n('Video channel {{ videoChannelName } deleted.', { videoChannelName: videoChannel.displayName })
54 )
47 }, 55 },
48 56
49 error => this.notificationsService.error('Error', error.message) 57 error => this.notificationsService.error(this.i18n('Error'), error.message)
50 ) 58 )
51 } 59 }
52 60
diff --git a/client/src/app/+my-account/my-account-videos/my-account-videos.component.html b/client/src/app/+my-account/my-account-videos/my-account-videos.component.html
index a31cb0c3d..35a99d0b3 100644
--- a/client/src/app/+my-account/my-account-videos/my-account-videos.component.html
+++ b/client/src/app/+my-account/my-account-videos/my-account-videos.component.html
@@ -1,4 +1,4 @@
1<div *ngIf="pagination.totalItems === 0">No results.</div> 1<div i18n *ngIf="pagination.totalItems === 0">No results.</div>
2 2
3<div 3<div
4 myInfiniteScroller 4 myInfiniteScroller
@@ -17,18 +17,18 @@
17 17
18 <div class="video-info"> 18 <div class="video-info">
19 <a class="video-info-name" [routerLink]="['/videos/watch', video.uuid]" [attr.title]="video.name">{{ video.name }}</a> 19 <a class="video-info-name" [routerLink]="['/videos/watch', video.uuid]" [attr.title]="video.name">{{ video.name }}</a>
20 <span class="video-info-date-views">{{ video.createdAt | myFromNow }} - {{ video.views | myNumberFormatter }} views</span> 20 <span i18n class="video-info-date-views">{{ video.createdAt | myFromNow }} - {{ video.views | myNumberFormatter }} views</span>
21 <div class="video-info-private">{{ video.privacy.label }}</div> 21 <div class="video-info-private">{{ video.privacy.label }}</div>
22 </div> 22 </div>
23 23
24 <!-- Display only once --> 24 <!-- Display only once -->
25 <div class="action-selection-mode" *ngIf="isInSelectionMode() === true && i === 0 && j === 0"> 25 <div class="action-selection-mode" *ngIf="isInSelectionMode() === true && i === 0 && j === 0">
26 <div class="action-selection-mode-child"> 26 <div class="action-selection-mode-child">
27 <span class="action-button action-button-cancel-selection" (click)="abortSelectionMode()"> 27 <span i18n class="action-button action-button-cancel-selection" (click)="abortSelectionMode()">
28 Cancel 28 Cancel
29 </span> 29 </span>
30 30
31 <span class="action-button action-button-delete-selection" (click)="deleteSelectedVideos()"> 31 <span i18n class="action-button action-button-delete-selection" (click)="deleteSelectedVideos()">
32 <span class="icon icon-delete-white"></span> 32 <span class="icon icon-delete-white"></span>
33 Delete 33 Delete
34 </span> 34 </span>
diff --git a/client/src/app/+my-account/my-account-videos/my-account-videos.component.ts b/client/src/app/+my-account/my-account-videos/my-account-videos.component.ts
index 6ab6c2aa5..eed4be01f 100644
--- a/client/src/app/+my-account/my-account-videos/my-account-videos.component.ts
+++ b/client/src/app/+my-account/my-account-videos/my-account-videos.component.ts
@@ -11,6 +11,7 @@ import { ConfirmService } from '../../core/confirm'
11import { AbstractVideoList } from '../../shared/video/abstract-video-list' 11import { AbstractVideoList } from '../../shared/video/abstract-video-list'
12import { Video } from '../../shared/video/video.model' 12import { Video } from '../../shared/video/video.model'
13import { VideoService } from '../../shared/video/video.service' 13import { VideoService } from '../../shared/video/video.service'
14import { I18n } from '@ngx-translate/i18n-polyfill'
14 15
15@Component({ 16@Component({
16 selector: 'my-account-videos', 17 selector: 'my-account-videos',
@@ -18,7 +19,7 @@ import { VideoService } from '../../shared/video/video.service'
18 styleUrls: [ './my-account-videos.component.scss' ] 19 styleUrls: [ './my-account-videos.component.scss' ]
19}) 20})
20export class MyAccountVideosComponent extends AbstractVideoList implements OnInit, OnDestroy { 21export class MyAccountVideosComponent extends AbstractVideoList implements OnInit, OnDestroy {
21 titlePage = 'My videos' 22 titlePage: string
22 currentRoute = '/my-account/videos' 23 currentRoute = '/my-account/videos'
23 checkedVideos: { [ id: number ]: boolean } = {} 24 checkedVideos: { [ id: number ]: boolean } = {}
24 pagination: ComponentPagination = { 25 pagination: ComponentPagination = {
@@ -30,14 +31,19 @@ export class MyAccountVideosComponent extends AbstractVideoList implements OnIni
30 protected baseVideoWidth = -1 31 protected baseVideoWidth = -1
31 protected baseVideoHeight = 155 32 protected baseVideoHeight = 155
32 33
33 constructor (protected router: Router, 34 constructor (
34 protected route: ActivatedRoute, 35 protected router: Router,
35 protected authService: AuthService, 36 protected route: ActivatedRoute,
36 protected notificationsService: NotificationsService, 37 protected authService: AuthService,
37 protected confirmService: ConfirmService, 38 protected notificationsService: NotificationsService,
38 protected location: Location, 39 protected confirmService: ConfirmService,
39 private videoService: VideoService) { 40 protected location: Location,
41 protected i18n: I18n,
42 private videoService: VideoService
43 ) {
40 super() 44 super()
45
46 this.titlePage = this.i18n('My videos')
41 } 47 }
42 48
43 ngOnInit () { 49 ngOnInit () {
diff --git a/client/src/app/+my-account/my-account.component.html b/client/src/app/+my-account/my-account.component.html
index 591d58cf9..48db55ad3 100644
--- a/client/src/app/+my-account/my-account.component.html
+++ b/client/src/app/+my-account/my-account.component.html
@@ -1,10 +1,10 @@
1<div class="row"> 1<div class="row">
2 <div class="sub-menu"> 2 <div class="sub-menu">
3 <a routerLink="/my-account/settings" routerLinkActive="active" class="title-page">My settings</a> 3 <a i18n routerLink="/my-account/settings" routerLinkActive="active" class="title-page">My settings</a>
4 4
5 <a routerLink="/my-account/video-channels" routerLinkActive="active" class="title-page">My video channels</a> 5 <a i18n routerLink="/my-account/video-channels" routerLinkActive="active" class="title-page">My video channels</a>
6 6
7 <a routerLink="/my-account/videos" routerLinkActive="active" class="title-page">My videos</a> 7 <a i18n routerLink="/my-account/videos" routerLinkActive="active" class="title-page">My videos</a>
8 </div> 8 </div>
9 9
10 <div class="margin-content"> 10 <div class="margin-content">
diff --git a/client/src/app/+page-not-found/page-not-found.component.html b/client/src/app/+page-not-found/page-not-found.component.html
index 66aa2aec7..2934003ab 100644
--- a/client/src/app/+page-not-found/page-not-found.component.html
+++ b/client/src/app/+page-not-found/page-not-found.component.html
@@ -1,3 +1,3 @@
1<div> 1<div i18n>
2 Sorry, but we couldn't find the page you were looking for. 2 Sorry, but we couldn't find the page you were looking for.
3</div> \ No newline at end of file 3</div> \ No newline at end of file
diff --git a/client/src/app/+video-channels/video-channel-about/video-channel-about.component.html b/client/src/app/+video-channels/video-channel-about/video-channel-about.component.html
index a4338121f..b7125ff71 100644
--- a/client/src/app/+video-channels/video-channel-about/video-channel-about.component.html
+++ b/client/src/app/+video-channels/video-channel-about/video-channel-about.component.html
@@ -1,20 +1,20 @@
1<div *ngIf="videoChannel" class="row"> 1<div *ngIf="videoChannel" class="row">
2 <div class="description col-md-6 col-sm-12"> 2 <div class="description col-md-6 col-sm-12">
3 <div class="block"> 3 <div class="block">
4 <div class="small-title">Description</div> 4 <div i18n class="small-title">Description</div>
5 <div class="content">{{ getVideoChannelDescription() }}</div> 5 <div class="content">{{ getVideoChannelDescription() }}</div>
6 </div> 6 </div>
7 7
8 <div class="block" *ngIf="videoChannel.support"> 8 <div class="block" *ngIf="videoChannel.support">
9 <div class="small-title">Support this channel</div> 9 <div i18n class="small-title">Support this channel</div>
10 <div class="content">{{ videoChannel.support }}</div> 10 <div class="content">{{ videoChannel.support }}</div>
11 </div> 11 </div>
12 </div> 12 </div>
13 13
14 <div class="stats col-md-6 col-sm-12"> 14 <div class="stats col-md-6 col-sm-12">
15 <div class="block"> 15 <div class="block">
16 <div class="small-title">Stats</div> 16 <div i18n class="small-title">Stats</div>
17 <div class="content">Created {{ videoChannel.createdAt | date }}</div> 17 <div i18n class="content">Created {{ videoChannel.createdAt | date }}</div>
18 </div> 18 </div>
19 </div> 19 </div>
20</div> \ No newline at end of file 20</div> \ No newline at end of file
diff --git a/client/src/app/+video-channels/video-channel-about/video-channel-about.component.ts b/client/src/app/+video-channels/video-channel-about/video-channel-about.component.ts
index 6f862718f..c5fd442c6 100644
--- a/client/src/app/+video-channels/video-channel-about/video-channel-about.component.ts
+++ b/client/src/app/+video-channels/video-channel-about/video-channel-about.component.ts
@@ -2,6 +2,7 @@ import { Component, OnInit } from '@angular/core'
2import { ActivatedRoute } from '@angular/router' 2import { ActivatedRoute } from '@angular/router'
3import { VideoChannelService } from '@app/shared/video-channel/video-channel.service' 3import { VideoChannelService } from '@app/shared/video-channel/video-channel.service'
4import { VideoChannel } from '@app/shared/video-channel/video-channel.model' 4import { VideoChannel } from '@app/shared/video-channel/video-channel.model'
5import { I18n } from '@ngx-translate/i18n-polyfill'
5 6
6@Component({ 7@Component({
7 selector: 'my-video-channel-about', 8 selector: 'my-video-channel-about',
@@ -12,7 +13,8 @@ export class VideoChannelAboutComponent implements OnInit {
12 videoChannel: VideoChannel 13 videoChannel: VideoChannel
13 14
14 constructor ( 15 constructor (
15 protected route: ActivatedRoute, 16 private route: ActivatedRoute,
17 private i18n: I18n,
16 private videoChannelService: VideoChannelService 18 private videoChannelService: VideoChannelService
17 ) { } 19 ) { }
18 20
@@ -25,6 +27,6 @@ export class VideoChannelAboutComponent implements OnInit {
25 getVideoChannelDescription () { 27 getVideoChannelDescription () {
26 if (this.videoChannel.description) return this.videoChannel.description 28 if (this.videoChannel.description) return this.videoChannel.description
27 29
28 return 'No description' 30 return this.i18n('No description')
29 } 31 }
30} 32}
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 c9e72e512..22239d75b 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
@@ -10,6 +10,7 @@ import { VideoService } from '../../shared/video/video.service'
10import { VideoChannelService } from '@app/shared/video-channel/video-channel.service' 10import { VideoChannelService } from '@app/shared/video-channel/video-channel.service'
11import { VideoChannel } from '@app/shared/video-channel/video-channel.model' 11import { VideoChannel } from '@app/shared/video-channel/video-channel.model'
12import { tap } from 'rxjs/operators' 12import { tap } from 'rxjs/operators'
13import { I18n } from '@ngx-translate/i18n-polyfill'
13 14
14@Component({ 15@Component({
15 selector: 'my-video-channel-videos', 16 selector: 'my-video-channel-videos',
@@ -20,7 +21,7 @@ import { tap } from 'rxjs/operators'
20 ] 21 ]
21}) 22})
22export class VideoChannelVideosComponent extends AbstractVideoList implements OnInit, OnDestroy { 23export class VideoChannelVideosComponent extends AbstractVideoList implements OnInit, OnDestroy {
23 titlePage = 'Published videos' 24 titlePage: string
24 marginContent = false // Disable margin 25 marginContent = false // Disable margin
25 currentRoute = '/video-channel/videos' 26 currentRoute = '/video-channel/videos'
26 loadOnInit = false 27 loadOnInit = false
@@ -34,10 +35,13 @@ export class VideoChannelVideosComponent extends AbstractVideoList implements On
34 protected notificationsService: NotificationsService, 35 protected notificationsService: NotificationsService,
35 protected confirmService: ConfirmService, 36 protected confirmService: ConfirmService,
36 protected location: Location, 37 protected location: Location,
38 protected i18n: I18n,
37 private videoChannelService: VideoChannelService, 39 private videoChannelService: VideoChannelService,
38 private videoService: VideoService 40 private videoService: VideoService
39 ) { 41 ) {
40 super() 42 super()
43
44 this.titlePage = this.i18n('Published videos')
41 } 45 }
42 46
43 ngOnInit () { 47 ngOnInit () {
@@ -63,7 +67,11 @@ export class VideoChannelVideosComponent extends AbstractVideoList implements On
63 67
64 return this.videoService 68 return this.videoService
65 .getVideoChannelVideos(this.videoChannel, newPagination, this.sort) 69 .getVideoChannelVideos(this.videoChannel, newPagination, this.sort)
66 .pipe(tap(({ totalVideos }) => this.titlePage = `Published ${totalVideos} videos`)) 70 .pipe(
71 tap(({ totalVideos }) => {
72 this.titlePage = this.i18n('Published {{ totalVideos }} videos', { totalVideos })
73 })
74 )
67 } 75 }
68 76
69 generateSyndicationList () { 77 generateSyndicationList () {
diff --git a/client/src/app/+video-channels/video-channels.component.html b/client/src/app/+video-channels/video-channels.component.html
index 6b25d16ab..a52894cac 100644
--- a/client/src/app/+video-channels/video-channels.component.html
+++ b/client/src/app/+video-channels/video-channels.component.html
@@ -8,19 +8,19 @@
8 <div class="actor-names"> 8 <div class="actor-names">
9 <div class="actor-display-name">{{ videoChannel.displayName }}</div> 9 <div class="actor-display-name">{{ videoChannel.displayName }}</div>
10 </div> 10 </div>
11 <div class="actor-followers">{{ videoChannel.followersCount }} subscribers</div> 11 <div i18n class="actor-followers">{{ videoChannel.followersCount }} subscribers</div>
12 12
13 <a [routerLink]="[ '/accounts', videoChannel.ownerBy ]" title="Go the owner account page" class="actor-owner"> 13 <a [routerLink]="[ '/accounts', videoChannel.ownerBy ]" i18n-title title="Go the owner account page" class="actor-owner">
14 <span>Created by {{ videoChannel.ownerBy }}</span> 14 <span i18n>Created by {{ videoChannel.ownerBy }}</span>
15 <img [src]="videoChannel.ownerAvatarUrl" alt="Owner account avatar" /> 15 <img [src]="videoChannel.ownerAvatarUrl" alt="Owner account avatar" />
16 </a> 16 </a>
17 </div> 17 </div>
18 </div> 18 </div>
19 19
20 <div class="links"> 20 <div class="links">
21 <a routerLink="videos" routerLinkActive="active" class="title-page">Videos</a> 21 <a i18n routerLink="videos" routerLinkActive="active" class="title-page">Videos</a>
22 22
23 <a routerLink="about" routerLinkActive="active" class="title-page">About</a> 23 <a i18n routerLink="about" routerLinkActive="active" class="title-page">About</a>
24 </div> 24 </div>
25 </div> 25 </div>
26 26
diff --git a/client/src/app/about/about.component.html b/client/src/app/about/about.component.html
index 6fa856742..22d3c9a36 100644
--- a/client/src/app/about/about.component.html
+++ b/client/src/app/about/about.component.html
@@ -1,5 +1,5 @@
1<div class="margin-content"> 1<div class="margin-content">
2 <div class="title-page title-page-single"> 2 <div i18n class="title-page title-page-single">
3 Welcome to the {{ instanceName }} instance 3 Welcome to the {{ instanceName }} instance
4 </div> 4 </div>
5 5
@@ -8,41 +8,41 @@
8 </div> 8 </div>
9 9
10 <div class="description"> 10 <div class="description">
11 <div class="section-title">Description</div> 11 <div i18n class="section-title">Description</div>
12 12
13 <div [innerHTML]="descriptionHTML"></div> 13 <div [innerHTML]="descriptionHTML"></div>
14 </div> 14 </div>
15 15
16 <div class="terms"> 16 <div class="terms">
17 <div class="section-title">Terms</div> 17 <div i18n class="section-title">Terms</div>
18 18
19 <div [innerHTML]="termsHTML"></div> 19 <div [innerHTML]="termsHTML"></div>
20 </div> 20 </div>
21 21
22 <div class="signup"> 22 <div class="signup">
23 <div class="section-title">Signup</div> 23 <div i18n class="section-title">Signup</div>
24 24
25 <div *ngIf="isSignupAllowed"> 25 <div *ngIf="isSignupAllowed">
26 User registration is allowed and 26 <ng-container i18n>User registration is allowed and</ng-container>
27 27
28 <ng-template [ngIf]="userVideoQuota !== -1"> 28 <ng-container i18n *ngIf="userVideoQuota !== -1">
29 this instance provides a baseline quota of {{ userVideoQuota | bytes: 0 }} space for the videos of its users. 29 this instance provides a baseline quota of {{ userVideoQuota | bytes: 0 }} space for the videos of its users.
30 </ng-template> 30 </ng-container>
31 31
32 <ng-template [ngIf]="userVideoQuota === -1"> 32 <ng-container i18n *ngIf="userVideoQuota === -1">
33 this instance provides unlimited space for the videos of its users. 33 this instance provides unlimited space for the videos of its users.
34 </ng-template> 34 </ng-container>
35 </div> 35 </div>
36 36
37 <div *ngIf="isSignupAllowed === false"> 37 <div i18n *ngIf="isSignupAllowed === false">
38 User registration is currently not allowed. 38 User registration is currently not allowed.
39 </div> 39 </div>
40 </div> 40 </div>
41 41
42 <div id="p2p-privacy"> 42 <div id="p2p-privacy">
43 <div class="section-title">P2P & Privacy</div> 43 <div i18n class="section-title">P2P & Privacy</div>
44 44
45 <p> 45 <p i18n>
46 PeerTube uses the BitTorrent protocol to share bandwidth between users. It implies that your public IP address is stored in the public BitTorrent tracker of the video PeerTube instance as long as you're watching the video. 46 PeerTube uses the BitTorrent protocol to share bandwidth between users. It implies that your public IP address is stored in the public BitTorrent tracker of the video PeerTube instance as long as you're watching the video.
47 If you want to keep your public IP address private, please use a VPN or Tor. 47 If you want to keep your public IP address private, please use a VPN or Tor.
48 </p> 48 </p>
diff --git a/client/src/app/about/about.component.ts b/client/src/app/about/about.component.ts
index 3948d5c46..c37b9318b 100644
--- a/client/src/app/about/about.component.ts
+++ b/client/src/app/about/about.component.ts
@@ -2,6 +2,7 @@ import { Component, OnInit } from '@angular/core'
2import { ServerService } from '@app/core' 2import { ServerService } from '@app/core'
3import { MarkdownService } from '@app/videos/shared' 3import { MarkdownService } from '@app/videos/shared'
4import { NotificationsService } from 'angular2-notifications' 4import { NotificationsService } from 'angular2-notifications'
5import { I18n } from '@ngx-translate/i18n-polyfill'
5 6
6@Component({ 7@Component({
7 selector: 'my-about', 8 selector: 'my-about',
@@ -17,7 +18,8 @@ export class AboutComponent implements OnInit {
17 constructor ( 18 constructor (
18 private notificationsService: NotificationsService, 19 private notificationsService: NotificationsService,
19 private serverService: ServerService, 20 private serverService: ServerService,
20 private markdownService: MarkdownService 21 private markdownService: MarkdownService,
22 private i18n: I18n
21 ) {} 23 ) {}
22 24
23 get instanceName () { 25 get instanceName () {
@@ -41,7 +43,7 @@ export class AboutComponent implements OnInit {
41 this.termsHTML = this.markdownService.textMarkdownToHTML(res.instance.terms) 43 this.termsHTML = this.markdownService.textMarkdownToHTML(res.instance.terms)
42 }, 44 },
43 45
44 err => this.notificationsService.error('Error getting about from server', err) 46 err => this.notificationsService.error(this.i18n('Error getting about from server'), err)
45 ) 47 )
46 } 48 }
47 49
diff --git a/client/src/app/core/auth/auth.service.ts b/client/src/app/core/auth/auth.service.ts
index 614d38d08..363f58155 100644
--- a/client/src/app/core/auth/auth.service.ts
+++ b/client/src/app/core/auth/auth.service.ts
@@ -1,5 +1,5 @@
1import { Observable, ReplaySubject, Subject, throwError as observableThrowError } from 'rxjs' 1import { Observable, ReplaySubject, Subject, throwError as observableThrowError } from 'rxjs'
2import { catchError, map, mergeMap, tap, share } from 'rxjs/operators' 2import { catchError, map, mergeMap, share, tap } from 'rxjs/operators'
3import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http' 3import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http'
4import { Injectable } from '@angular/core' 4import { Injectable } from '@angular/core'
5import { Router } from '@angular/router' 5import { Router } from '@angular/router'
@@ -13,6 +13,7 @@ import { AuthStatus } from './auth-status.model'
13import { AuthUser } from './auth-user.model' 13import { AuthUser } from './auth-user.model'
14import { objectToUrlEncoded } from '@app/shared/misc/utils' 14import { objectToUrlEncoded } from '@app/shared/misc/utils'
15import { peertubeLocalStorage } from '@app/shared/misc/peertube-local-storage' 15import { peertubeLocalStorage } from '@app/shared/misc/peertube-local-storage'
16import { I18n } from '@ngx-translate/i18n-polyfill'
16 17
17interface UserLoginWithUsername extends UserLogin { 18interface UserLoginWithUsername extends UserLogin {
18 access_token: string 19 access_token: string
@@ -46,7 +47,8 @@ export class AuthService {
46 private http: HttpClient, 47 private http: HttpClient,
47 private notificationsService: NotificationsService, 48 private notificationsService: NotificationsService,
48 private restExtractor: RestExtractor, 49 private restExtractor: RestExtractor,
49 private router: Router 50 private router: Router,
51 private i18n: I18n
50 ) { 52 ) {
51 this.loginChanged = new Subject<AuthStatus>() 53 this.loginChanged = new Subject<AuthStatus>()
52 this.loginChangedSource = this.loginChanged.asObservable() 54 this.loginChangedSource = this.loginChanged.asObservable()
@@ -74,14 +76,15 @@ export class AuthService {
74 let errorMessage = error.message 76 let errorMessage = error.message
75 77
76 if (error.status === 403) { 78 if (error.status === 403) {
77 errorMessage = `Cannot retrieve OAuth Client credentials: ${error.text}. \n` 79 errorMessage = this.i18n('Cannot retrieve OAuth Client credentials: {{ errorText }}.\n', { errorText: error.text })
78 errorMessage += 'Ensure you have correctly configured PeerTube (config/ directory), ' + 80 errorMessage += this.i18n(
79 'in particular the "webserver" section.' 81 'Ensure you have correctly configured PeerTube (config/ directory), in particular the "webserver" section.'
82 )
80 } 83 }
81 84
82 // We put a bigger timeout 85 // We put a bigger timeout
83 // This is an important message 86 // This is an important message
84 this.notificationsService.error('Error', errorMessage, { timeOut: 7000 }) 87 this.notificationsService.error(this.i18n('Error'), errorMessage, { timeOut: 7000 })
85 } 88 }
86 ) 89 )
87 } 90 }
@@ -180,7 +183,7 @@ export class AuthService {
180 this.router.navigate([ '/login' ]) 183 this.router.navigate([ '/login' ])
181 184
182 return observableThrowError({ 185 return observableThrowError({
183 error: 'You need to reconnect.' 186 error: this.i18n('You need to reconnect.')
184 }) 187 })
185 }), 188 }),
186 share() 189 share()
diff --git a/client/src/app/core/confirm/confirm.component.html b/client/src/app/core/confirm/confirm.component.html
index 01a4e0ac4..3253de4a0 100644
--- a/client/src/app/core/confirm/confirm.component.html
+++ b/client/src/app/core/confirm/confirm.component.html
@@ -16,7 +16,7 @@
16 </div> 16 </div>
17 17
18 <div class="form-group inputs"> 18 <div class="form-group inputs">
19 <span class="action-button action-button-cancel" (click)="cancel()"> 19 <span i18n class="action-button action-button-cancel" (click)="cancel()">
20 Cancel 20 Cancel
21 </span> 21 </span>
22 22
diff --git a/client/src/app/core/confirm/confirm.component.ts b/client/src/app/core/confirm/confirm.component.ts
index 147bc9d65..02b38489a 100644
--- a/client/src/app/core/confirm/confirm.component.ts
+++ b/client/src/app/core/confirm/confirm.component.ts
@@ -3,6 +3,7 @@ import { Component, HostListener, OnInit, ViewChild } from '@angular/core'
3import { ModalDirective } from 'ngx-bootstrap/modal' 3import { ModalDirective } from 'ngx-bootstrap/modal'
4 4
5import { ConfirmService } from './confirm.service' 5import { ConfirmService } from './confirm.service'
6import { I18n } from '@ngx-translate/i18n-polyfill'
6 7
7@Component({ 8@Component({
8 selector: 'my-confirm', 9 selector: 'my-confirm',
@@ -20,7 +21,10 @@ export class ConfirmComponent implements OnInit {
20 inputValue = '' 21 inputValue = ''
21 confirmButtonText = '' 22 confirmButtonText = ''
22 23
23 constructor (private confirmService: ConfirmService) { 24 constructor (
25 private confirmService: ConfirmService,
26 private i18n: I18n
27 ) {
24 // Empty 28 // Empty
25 } 29 }
26 30
@@ -38,7 +42,7 @@ export class ConfirmComponent implements OnInit {
38 this.inputLabel = inputLabel 42 this.inputLabel = inputLabel
39 this.expectedInputValue = expectedInputValue 43 this.expectedInputValue = expectedInputValue
40 44
41 this.confirmButtonText = confirmButtonText || 'Confirm' 45 this.confirmButtonText = confirmButtonText || this.i18n('Confirm')
42 46
43 this.showModal() 47 this.showModal()
44 } 48 }
diff --git a/client/src/app/header/header.component.html b/client/src/app/header/header.component.html
index c853d2b1b..a04354db5 100644
--- a/client/src/app/header/header.component.html
+++ b/client/src/app/header/header.component.html
@@ -1,10 +1,10 @@
1<input 1<input
2 type="text" id="search-video" name="search-video" placeholder="Search..." 2 type="text" id="search-video" name="search-video" i18n-placeholder placeholder="Search..."
3 [(ngModel)]="searchValue" (keyup.enter)="doSearch()" 3 [(ngModel)]="searchValue" (keyup.enter)="doSearch()"
4> 4>
5<span (click)="doSearch()" class="icon icon-search"></span> 5<span (click)="doSearch()" class="icon icon-search"></span>
6 6
7<a class="upload-button" routerLink="/videos/upload"> 7<a class="upload-button" routerLink="/videos/upload">
8 <span class="icon icon-upload"></span> 8 <span class="icon icon-upload"></span>
9 <span class="upload-button-label">Upload</span> 9 <span i18n class="upload-button-label">Upload</span>
10</a> 10</a>
diff --git a/client/src/app/login/login.component.html b/client/src/app/login/login.component.html
index b7fd25d27..1f6cfdb90 100644
--- a/client/src/app/login/login.component.html
+++ b/client/src/app/login/login.component.html
@@ -1,5 +1,5 @@
1<div class="margin-content"> 1<div class="margin-content">
2 <div class="title-page title-page-single"> 2 <div i18n class="title-page title-page-single">
3 Login 3 Login
4 </div> 4 </div>
5 5
@@ -8,21 +8,21 @@
8 <form role="form" (ngSubmit)="login()" [formGroup]="form"> 8 <form role="form" (ngSubmit)="login()" [formGroup]="form">
9 <div class="form-group"> 9 <div class="form-group">
10 <div> 10 <div>
11 <label for="username">User</label> 11 <label i18n for="username">User</label>
12 <input 12 <input
13 type="text" id="username" placeholder="Username or email address" required tabindex="1" 13 type="text" id="username" i18n-placeholder placeholder="Username or email address" required tabindex="1"
14 formControlName="username" [ngClass]="{ 'input-error': formErrors['username'] }" 14 formControlName="username" [ngClass]="{ 'input-error': formErrors['username'] }"
15 > 15 >
16 <a *ngIf="signupAllowed === true" routerLink="/signup" class="create-an-account"> 16 <a i18n *ngIf="signupAllowed === true" routerLink="/signup" class="create-an-account">
17 or create an account 17 or create an account
18 </a> 18 </a>
19 19
20 <a *ngIf="signupAllowed === false" href="https://joinpeertube.org/en/#getting-started" target="_blank" class="create-an-account"> 20 <a i18n *ngIf="signupAllowed === false" href="https://joinpeertube.org/en/#getting-started" target="_blank" class="create-an-account">
21 or create an account on another instance 21 or create an account on another instance
22 </a> 22 </a>
23 23
24 <my-help 24 <my-help
25 *ngIf="signupAllowed === false" helpType="custom" 25 *ngIf="signupAllowed === false" helpType="custom" i18n-customHtml
26 customHtml="User registration is not allowed on this instance, but you can register on many others!" 26 customHtml="User registration is not allowed on this instance, but you can register on many others!"
27 ></my-help> 27 ></my-help>
28 </div> 28 </div>
@@ -33,13 +33,13 @@
33 </div> 33 </div>
34 34
35 <div class="form-group"> 35 <div class="form-group">
36 <label for="password">Password</label> 36 <label i18n for="password">Password</label>
37 <div> 37 <div>
38 <input 38 <input
39 type="password" name="password" id="password" placeholder="Password" required tabindex="2" 39 type="password" name="password" id="password" i18n-placeholder placeholder="Password" required tabindex="2"
40 formControlName="password" [ngClass]="{ 'input-error': formErrors['password'] }" 40 formControlName="password" [ngClass]="{ 'input-error': formErrors['password'] }"
41 > 41 >
42 <div class="forgot-password-button" (click)="openForgotPasswordModal()">I forgot my password</div> 42 <div i18n class="forgot-password-button" (click)="openForgotPasswordModal()">I forgot my password</div>
43 </div> 43 </div>
44 <div *ngIf="formErrors.password" class="form-error"> 44 <div *ngIf="formErrors.password" class="form-error">
45 {{ formErrors.password }} 45 {{ formErrors.password }}
@@ -56,25 +56,25 @@
56 56
57 <div class="modal-header"> 57 <div class="modal-header">
58 <span class="close" aria-hidden="true" (click)="hideForgotPasswordModal()"></span> 58 <span class="close" aria-hidden="true" (click)="hideForgotPasswordModal()"></span>
59 <h4 class="modal-title">Forgot your password</h4> 59 <h4 i18n class="modal-title">Forgot your password</h4>
60 </div> 60 </div>
61 61
62 <div class="modal-body"> 62 <div class="modal-body">
63 <div class="form-group"> 63 <div class="form-group">
64 <label for="forgot-password-email">Email</label> 64 <label i18n for="forgot-password-email">Email</label>
65 <input 65 <input
66 type="email" id="forgot-password-email" placeholder="Email address" required 66 type="email" id="forgot-password-email" i18n-placeholder placeholder="Email address" required
67 [(ngModel)]="forgotPasswordEmail" #forgotPasswordEmailInput 67 [(ngModel)]="forgotPasswordEmail" #forgotPasswordEmailInput
68 > 68 >
69 </div> 69 </div>
70 70
71 <div class="form-group inputs"> 71 <div class="form-group inputs">
72 <span class="action-button action-button-cancel" (click)="hideForgotPasswordModal()"> 72 <span i18n class="action-button action-button-cancel" (click)="hideForgotPasswordModal()">
73 Cancel 73 Cancel
74 </span> 74 </span>
75 75
76 <input 76 <input
77 type="submit" value="Send me an email to reset my password" class="action-button-submit" 77 type="submit" i18n-value value="Send me an email to reset my password" class="action-button-submit"
78 (click)="askResetPassword()" [disabled]="!forgotPasswordEmailInput.validity.valid" 78 (click)="askResetPassword()" [disabled]="!forgotPasswordEmailInput.validity.valid"
79 > 79 >
80 </div> 80 </div>
diff --git a/client/src/app/login/login.component.ts b/client/src/app/login/login.component.ts
index 2514faf94..a14cb2eb7 100644
--- a/client/src/app/login/login.component.ts
+++ b/client/src/app/login/login.component.ts
@@ -7,6 +7,7 @@ import { NotificationsService } from 'angular2-notifications'
7import { ModalDirective } from 'ngx-bootstrap/modal' 7import { ModalDirective } from 'ngx-bootstrap/modal'
8import { AuthService } from '../core' 8import { AuthService } from '../core'
9import { FormReactive } from '../shared' 9import { FormReactive } from '../shared'
10import { I18n } from '@ngx-translate/i18n-polyfill'
10 11
11@Component({ 12@Component({
12 selector: 'my-login', 13 selector: 'my-login',
@@ -35,12 +36,15 @@ export class LoginComponent extends FormReactive implements OnInit {
35 } 36 }
36 forgotPasswordEmail = '' 37 forgotPasswordEmail = ''
37 38
38 constructor (private authService: AuthService, 39 constructor (
39 private userService: UserService, 40 private authService: AuthService,
40 private serverService: ServerService, 41 private userService: UserService,
41 private redirectService: RedirectService, 42 private serverService: ServerService,
42 private notificationsService: NotificationsService, 43 private redirectService: RedirectService,
43 private formBuilder: FormBuilder) { 44 private notificationsService: NotificationsService,
45 private formBuilder: FormBuilder,
46 private i18n: I18n
47 ) {
44 super() 48 super()
45 } 49 }
46 50
@@ -78,12 +82,15 @@ export class LoginComponent extends FormReactive implements OnInit {
78 this.userService.askResetPassword(this.forgotPasswordEmail) 82 this.userService.askResetPassword(this.forgotPasswordEmail)
79 .subscribe( 83 .subscribe(
80 res => { 84 res => {
81 const message = `An email with the reset password instructions will be sent to ${this.forgotPasswordEmail}.` 85 const message = this.i18n(
82 this.notificationsService.success('Success', message) 86 'An email with the reset password instructions will be sent to {{ email }}.',
87 { email: this.forgotPasswordEmail }
88 )
89 this.notificationsService.success(this.i18n('Success'), message)
83 this.hideForgotPasswordModal() 90 this.hideForgotPasswordModal()
84 }, 91 },
85 92
86 err => this.notificationsService.error('Error', err.message) 93 err => this.notificationsService.error(this.i18n('Error'), err.message)
87 ) 94 )
88 } 95 }
89 96
diff --git a/client/src/app/menu/menu.component.html b/client/src/app/menu/menu.component.html
index 1a95477b7..167729405 100644
--- a/client/src/app/menu/menu.component.html
+++ b/client/src/app/menu/menu.component.html
@@ -18,11 +18,11 @@
18 My public profile 18 My public profile
19 </a> 19 </a>
20 20
21 <a routerLink="/my-account/settings" class="dropdown-item" title="My settings"> 21 <a i18n routerLink="/my-account/settings" class="dropdown-item" title="My settings">
22 My settings 22 My settings
23 </a> 23 </a>
24 24
25 <a (click)="logout($event)" class="dropdown-item" title="Log out" href="#"> 25 <a i18n (click)="logout($event)" class="dropdown-item" title="Log out" href="#">
26 Log out 26 Log out
27 </a> 27 </a>
28 </li> 28 </li>
@@ -31,26 +31,26 @@
31 </div> 31 </div>
32 32
33 <div *ngIf="!isLoggedIn" class="button-block"> 33 <div *ngIf="!isLoggedIn" class="button-block">
34 <a routerLink="/login" class="login-button">Login</a> 34 <a i18n routerLink="/login" class="login-button">Login</a>
35 <a *ngIf="isRegistrationAllowed()" routerLink="/signup" class="create-account-button">Create an account</a> 35 <a i18n *ngIf="isRegistrationAllowed()" routerLink="/signup" class="create-account-button">Create an account</a>
36 </div> 36 </div>
37 37
38 <div class="panel-block"> 38 <div class="panel-block">
39 <div class="block-title">Videos</div> 39 <div i18n class="block-title">Videos</div>
40 40
41 <a routerLink="/videos/trending" routerLinkActive="active"> 41 <a routerLink="/videos/trending" routerLinkActive="active">
42 <span class="icon icon-videos-trending"></span> 42 <span class="icon icon-videos-trending"></span>
43 Trending 43 <ng-container i18n>Trending</ng-container>
44 </a> 44 </a>
45 45
46 <a routerLink="/videos/recently-added" routerLinkActive="active"> 46 <a routerLink="/videos/recently-added" routerLinkActive="active">
47 <span class="icon icon-videos-recently-added"></span> 47 <span class="icon icon-videos-recently-added"></span>
48 Recently added 48 <ng-container i18n>Recently added</ng-container>
49 </a> 49 </a>
50 50
51 <a routerLink="/videos/local" routerLinkActive="active"> 51 <a routerLink="/videos/local" routerLinkActive="active">
52 <span class="icon icon-videos-local"></span> 52 <span class="icon icon-videos-local"></span>
53 Local 53 <ng-container i18n>Local</ng-container>
54 </a> 54 </a>
55 </div> 55 </div>
56 56
@@ -59,12 +59,12 @@
59 59
60 <a *ngIf="userHasAdminAccess" [routerLink]="getFirstAdminRouteAvailable()" routerLinkActive="active"> 60 <a *ngIf="userHasAdminAccess" [routerLink]="getFirstAdminRouteAvailable()" routerLinkActive="active">
61 <span class="icon icon-administration"></span> 61 <span class="icon icon-administration"></span>
62 Administration 62 <ng-container i18n>Administration</ng-container>
63 </a> 63 </a>
64 64
65 <a routerLink="/about" routerLinkActive="active"> 65 <a routerLink="/about" routerLinkActive="active">
66 <span class="icon icon-about"></span> 66 <span class="icon icon-about"></span>
67 About 67 <ng-container i18n>About</ng-container>
68 </a> 68 </a>
69 </div> 69 </div>
70</menu> 70</menu>
diff --git a/client/src/app/menu/menu.component.ts b/client/src/app/menu/menu.component.ts
index 69216e215..c0aea89b3 100644
--- a/client/src/app/menu/menu.component.ts
+++ b/client/src/app/menu/menu.component.ts
@@ -1,7 +1,7 @@
1import { Component, OnInit } from '@angular/core' 1import { Component, OnInit } from '@angular/core'
2import { Router } from '@angular/router' 2import { Router } from '@angular/router'
3import { UserRight } from '../../../../shared/models/users/user-right.enum' 3import { UserRight } from '../../../../shared/models/users/user-right.enum'
4import { AuthService, AuthStatus, ServerService } from '../core' 4import { AuthService, AuthStatus, RedirectService, ServerService } from '../core'
5import { User } from '../shared/users/user.model' 5import { User } from '../shared/users/user.model'
6 6
7@Component({ 7@Component({
@@ -24,7 +24,7 @@ export class MenuComponent implements OnInit {
24 constructor ( 24 constructor (
25 private authService: AuthService, 25 private authService: AuthService,
26 private serverService: ServerService, 26 private serverService: ServerService,
27 private router: Router 27 private redirectService: RedirectService
28 ) {} 28 ) {}
29 29
30 ngOnInit () { 30 ngOnInit () {
@@ -87,7 +87,7 @@ export class MenuComponent implements OnInit {
87 87
88 this.authService.logout() 88 this.authService.logout()
89 // Redirect to home page 89 // Redirect to home page
90 this.router.navigate(['/videos/list']) 90 this.redirectService.redirectToHomepage()
91 } 91 }
92 92
93 private computeIsUserHasAdminAccess () { 93 private computeIsUserHasAdminAccess () {
diff --git a/client/src/app/reset-password/reset-password.component.html b/client/src/app/reset-password/reset-password.component.html
index 9cf623c64..20e62d0b7 100644
--- a/client/src/app/reset-password/reset-password.component.html
+++ b/client/src/app/reset-password/reset-password.component.html
@@ -1,13 +1,13 @@
1<div class="margin-content"> 1<div class="margin-content">
2 <div class="title-page title-page-single"> 2 <div i18n class="title-page title-page-single">
3 Reset my password 3 Reset my password
4 </div> 4 </div>
5 5
6 <form role="form" (ngSubmit)="resetPassword()" [formGroup]="form"> 6 <form role="form" (ngSubmit)="resetPassword()" [formGroup]="form">
7 <div class="form-group"> 7 <div class="form-group">
8 <label for="password">Password</label> 8 <label i18n for="password">Password</label>
9 <input 9 <input
10 type="password" name="password" id="password" placeholder="Password" required 10 type="password" name="password" id="password" i18n-placeholder placeholder="Password" required
11 formControlName="password" [ngClass]="{ 'input-error': formErrors['password'] }" 11 formControlName="password" [ngClass]="{ 'input-error': formErrors['password'] }"
12 > 12 >
13 <div *ngIf="formErrors.password" class="form-error"> 13 <div *ngIf="formErrors.password" class="form-error">
@@ -16,9 +16,9 @@
16 </div> 16 </div>
17 17
18 <div class="form-group"> 18 <div class="form-group">
19 <label for="password-confirm">Confirm password</label> 19 <label i18n for="password-confirm">Confirm password</label>
20 <input 20 <input
21 type="password" name="password-confirm" id="password-confirm" placeholder="Confirmed password" required 21 type="password" name="password-confirm" id="password-confirm" i18n-placeholder placeholder="Confirmed password" required
22 formControlName="password-confirm" [ngClass]="{ 'input-error': formErrors['password-confirm'] }" 22 formControlName="password-confirm" [ngClass]="{ 'input-error': formErrors['password-confirm'] }"
23 > 23 >
24 <div *ngIf="formErrors['password-confirm']" class="form-error"> 24 <div *ngIf="formErrors['password-confirm']" class="form-error">
@@ -26,6 +26,6 @@
26 </div> 26 </div>
27 </div> 27 </div>
28 28
29 <input type="submit" value="Reset my password" [disabled]="!form.valid && isConfirmedPasswordValid()"> 29 <input type="submit" i18n-value value="Reset my password" [disabled]="!form.valid && isConfirmedPasswordValid()">
30 </form> 30 </form>
31</div> 31</div>
diff --git a/client/src/app/reset-password/reset-password.component.ts b/client/src/app/reset-password/reset-password.component.ts
index 408374779..c8bd368c1 100644
--- a/client/src/app/reset-password/reset-password.component.ts
+++ b/client/src/app/reset-password/reset-password.component.ts
@@ -5,6 +5,7 @@ import { USER_PASSWORD, UserService } from '@app/shared'
5import { NotificationsService } from 'angular2-notifications' 5import { NotificationsService } from 'angular2-notifications'
6import { AuthService } from '../core' 6import { AuthService } from '../core'
7import { FormReactive } from '../shared' 7import { FormReactive } from '../shared'
8import { I18n } from '@ngx-translate/i18n-polyfill'
8 9
9@Component({ 10@Component({
10 selector: 'my-login', 11 selector: 'my-login',
@@ -34,7 +35,8 @@ export class ResetPasswordComponent extends FormReactive implements OnInit {
34 private notificationsService: NotificationsService, 35 private notificationsService: NotificationsService,
35 private formBuilder: FormBuilder, 36 private formBuilder: FormBuilder,
36 private router: Router, 37 private router: Router,
37 private route: ActivatedRoute 38 private route: ActivatedRoute,
39 private i18n: I18n
38 ) { 40 ) {
39 super() 41 super()
40 } 42 }
@@ -55,7 +57,7 @@ export class ResetPasswordComponent extends FormReactive implements OnInit {
55 this.verificationString = this.route.snapshot.queryParams['verificationString'] 57 this.verificationString = this.route.snapshot.queryParams['verificationString']
56 58
57 if (!this.userId || !this.verificationString) { 59 if (!this.userId || !this.verificationString) {
58 this.notificationsService.error('Error', 'Unable to find user id or verification string.') 60 this.notificationsService.error(this.i18n('Error'), this.i18n('Unable to find user id or verification string.'))
59 this.router.navigate([ '/' ]) 61 this.router.navigate([ '/' ])
60 } 62 }
61 } 63 }
@@ -64,7 +66,7 @@ export class ResetPasswordComponent extends FormReactive implements OnInit {
64 this.userService.resetPassword(this.userId, this.verificationString, this.form.value.password) 66 this.userService.resetPassword(this.userId, this.verificationString, this.form.value.password)
65 .subscribe( 67 .subscribe(
66 () => { 68 () => {
67 this.notificationsService.success('Success', 'Your password has been successfully reset!') 69 this.notificationsService.success(this.i18n('Success'), this.i18n('Your password has been successfully reset!'))
68 this.router.navigate([ '/login' ]) 70 this.router.navigate([ '/login' ])
69 }, 71 },
70 72
diff --git a/client/src/app/shared/forms/markdown-textarea.component.html b/client/src/app/shared/forms/markdown-textarea.component.html
index 46a97b163..6effda5b8 100644
--- a/client/src/app/shared/forms/markdown-textarea.component.html
+++ b/client/src/app/shared/forms/markdown-textarea.component.html
@@ -6,7 +6,7 @@
6 </textarea> 6 </textarea>
7 7
8 <tabset *ngIf="arePreviewsDisplayed()" class="previews"> 8 <tabset *ngIf="arePreviewsDisplayed()" class="previews">
9 <tab *ngIf="truncate !== undefined" heading="Truncated preview" [innerHTML]="truncatedPreviewHTML"></tab> 9 <tab *ngIf="truncate !== undefined" i18n-heading heading="Truncated preview" [innerHTML]="truncatedPreviewHTML"></tab>
10 <tab heading="Complete preview" [innerHTML]="previewHTML"></tab> 10 <tab i18n-heading heading="Complete preview" [innerHTML]="previewHTML"></tab>
11 </tabset> 11 </tabset>
12</div> 12</div>
diff --git a/client/src/app/shared/forms/markdown-textarea.component.ts b/client/src/app/shared/forms/markdown-textarea.component.ts
index dcc85f3cd..8b932cd15 100644
--- a/client/src/app/shared/forms/markdown-textarea.component.ts
+++ b/client/src/app/shared/forms/markdown-textarea.component.ts
@@ -3,7 +3,7 @@ import { Component, forwardRef, Input, OnInit } from '@angular/core'
3import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms' 3import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'
4import { isInSmallView } from '@app/shared/misc/utils' 4import { isInSmallView } from '@app/shared/misc/utils'
5import { MarkdownService } from '@app/videos/shared' 5import { MarkdownService } from '@app/videos/shared'
6import { Subject } from 'rxjs' 6import { Subject } from 'rxjs/Subject'
7import truncate from 'lodash-es/truncate' 7import truncate from 'lodash-es/truncate'
8 8
9@Component({ 9@Component({
diff --git a/client/src/app/shared/guards/can-deactivate-guard.service.ts b/client/src/app/shared/guards/can-deactivate-guard.service.ts
index 550dd656e..c038a5c0e 100644
--- a/client/src/app/shared/guards/can-deactivate-guard.service.ts
+++ b/client/src/app/shared/guards/can-deactivate-guard.service.ts
@@ -2,6 +2,7 @@ import { Injectable } from '@angular/core'
2import { ActivatedRouteSnapshot, CanDeactivate, RouterStateSnapshot } from '@angular/router' 2import { ActivatedRouteSnapshot, CanDeactivate, RouterStateSnapshot } from '@angular/router'
3import { Observable } from 'rxjs' 3import { Observable } from 'rxjs'
4import { ConfirmService } from '../../core/index' 4import { ConfirmService } from '../../core/index'
5import { I18n } from '@ngx-translate/i18n-polyfill'
5 6
6export interface CanComponentDeactivate { 7export interface CanComponentDeactivate {
7 canDeactivate: () => { text?: string, canDeactivate: Observable<boolean> | boolean } 8 canDeactivate: () => { text?: string, canDeactivate: Observable<boolean> | boolean }
@@ -9,7 +10,10 @@ export interface CanComponentDeactivate {
9 10
10@Injectable() 11@Injectable()
11export class CanDeactivateGuard implements CanDeactivate<CanComponentDeactivate> { 12export class CanDeactivateGuard implements CanDeactivate<CanComponentDeactivate> {
12 constructor (private confirmService: ConfirmService) { } 13 constructor (
14 private confirmService: ConfirmService,
15 private i18n: I18n
16 ) { }
13 17
14 canDeactivate (component: CanComponentDeactivate, 18 canDeactivate (component: CanComponentDeactivate,
15 currentRoute: ActivatedRouteSnapshot, 19 currentRoute: ActivatedRouteSnapshot,
@@ -17,11 +21,11 @@ export class CanDeactivateGuard implements CanDeactivate<CanComponentDeactivate>
17 nextState: RouterStateSnapshot 21 nextState: RouterStateSnapshot
18 ) { 22 ) {
19 const result = component.canDeactivate() 23 const result = component.canDeactivate()
20 const text = result.text || 'All unsaved data will be lost, are you sure you want to leave this page?' 24 const text = result.text || this.i18n('All unsaved data will be lost, are you sure you want to leave this page?')
21 25
22 return result.canDeactivate || this.confirmService.confirm( 26 return result.canDeactivate || this.confirmService.confirm(
23 text, 27 text,
24 'Warning' 28 this.i18n('Warning')
25 ) 29 )
26 } 30 }
27 31
diff --git a/client/src/app/shared/misc/edit-button.component.html b/client/src/app/shared/misc/edit-button.component.html
index 632d6bba2..78fbc326e 100644
--- a/client/src/app/shared/misc/edit-button.component.html
+++ b/client/src/app/shared/misc/edit-button.component.html
@@ -1,4 +1,4 @@
1<a class="action-button action-button-edit" [routerLink]="routerLink" title="Edit"> 1<a class="action-button action-button-edit" [routerLink]="routerLink" title="Edit">
2 <span class="icon icon-edit"></span> 2 <span class="icon icon-edit"></span>
3 <span class="button-label">Edit</span> 3 <span i18n class="button-label">Edit</span>
4</a> 4</a>
diff --git a/client/src/app/shared/misc/from-now.pipe.ts b/client/src/app/shared/misc/from-now.pipe.ts
index fac02af0b..3a64a4077 100644
--- a/client/src/app/shared/misc/from-now.pipe.ts
+++ b/client/src/app/shared/misc/from-now.pipe.ts
@@ -1,36 +1,39 @@
1import { Pipe, PipeTransform } from '@angular/core' 1import { Pipe, PipeTransform } from '@angular/core'
2import { I18n } from '@ngx-translate/i18n-polyfill'
2 3
3// Thanks: https://stackoverflow.com/questions/3177836/how-to-format-time-since-xxx-e-g-4-minutes-ago-similar-to-stack-exchange-site 4// Thanks: https://stackoverflow.com/questions/3177836/how-to-format-time-since-xxx-e-g-4-minutes-ago-similar-to-stack-exchange-site
4@Pipe({ name: 'myFromNow' }) 5@Pipe({ name: 'myFromNow' })
5export class FromNowPipe implements PipeTransform { 6export class FromNowPipe implements PipeTransform {
6 7
8 constructor (private i18n: I18n) { }
9
7 transform (value: number) { 10 transform (value: number) {
8 const seconds = Math.floor((Date.now() - value) / 1000) 11 const seconds = Math.floor((Date.now() - value) / 1000)
9 12
10 let interval = Math.floor(seconds / 31536000) 13 let interval = Math.floor(seconds / 31536000)
11 if (interval > 1) { 14 if (interval > 1) {
12 return interval + ' years ago' 15 return this.i18n('{{ interval }} years ago', { interval })
13 } 16 }
14 17
15 interval = Math.floor(seconds / 2592000) 18 interval = Math.floor(seconds / 2592000)
16 if (interval > 1) return interval + ' months ago' 19 if (interval > 1) return this.i18n('{{ interval }} months ago', { interval })
17 if (interval === 1) return interval + ' month ago' 20 if (interval === 1) return this.i18n('{{ interval }} month ago', { interval })
18 21
19 interval = Math.floor(seconds / 604800) 22 interval = Math.floor(seconds / 604800)
20 if (interval > 1) return interval + ' weeks ago' 23 if (interval > 1) return this.i18n('{{ interval }} weeks ago', { interval })
21 if (interval === 1) return interval + ' week ago' 24 if (interval === 1) return this.i18n('{{ interval }} week ago', { interval })
22 25
23 interval = Math.floor(seconds / 86400) 26 interval = Math.floor(seconds / 86400)
24 if (interval > 1) return interval + ' days ago' 27 if (interval > 1) return this.i18n('{{ interval }} days ago', { interval })
25 if (interval === 1) return interval + ' day ago' 28 if (interval === 1) return this.i18n('{{ interval }} day ago', { interval })
26 29
27 interval = Math.floor(seconds / 3600) 30 interval = Math.floor(seconds / 3600)
28 if (interval > 1) return interval + ' hours ago' 31 if (interval > 1) return this.i18n('{{ interval }} hours ago', { interval })
29 if (interval === 1) return interval + ' hour ago' 32 if (interval === 1) return this.i18n('{{ interval }} hour ago', { interval })
30 33
31 interval = Math.floor(seconds / 60) 34 interval = Math.floor(seconds / 60)
32 if (interval >= 1) return interval + ' min ago' 35 if (interval >= 1) return this.i18n('{{ interval }} min ago', { interval })
33 36
34 return Math.floor(seconds) + ' sec ago' 37 return this.i18n('{{ interval }} sec ago', { interval: Math.floor(seconds) })
35 } 38 }
36} 39}
diff --git a/client/src/app/shared/misc/help.component.html b/client/src/app/shared/misc/help.component.html
index 3da5701a0..f2b6eca33 100644
--- a/client/src/app/shared/misc/help.component.html
+++ b/client/src/app/shared/misc/help.component.html
@@ -15,6 +15,7 @@
15<span 15<span
16 class="help-tooltip-button" 16 class="help-tooltip-button"
17 title="Get help" 17 title="Get help"
18 i18n-title
18 [popover]="tooltipTemplate" 19 [popover]="tooltipTemplate"
19 [placement]="tooltipPlacement" 20 [placement]="tooltipPlacement"
20 [outsideClick]="true" 21 [outsideClick]="true"
diff --git a/client/src/app/shared/rest/rest-extractor.service.ts b/client/src/app/shared/rest/rest-extractor.service.ts
index 39e601e20..468ac3e32 100644
--- a/client/src/app/shared/rest/rest-extractor.service.ts
+++ b/client/src/app/shared/rest/rest-extractor.service.ts
@@ -3,11 +3,15 @@ import { Injectable } from '@angular/core'
3import { dateToHuman } from '@app/shared/misc/utils' 3import { dateToHuman } from '@app/shared/misc/utils'
4import { ResultList } from '../../../../../shared' 4import { ResultList } from '../../../../../shared'
5import { Router } from '@angular/router' 5import { Router } from '@angular/router'
6import { I18n } from '@ngx-translate/i18n-polyfill'
6 7
7@Injectable() 8@Injectable()
8export class RestExtractor { 9export class RestExtractor {
9 10
10 constructor (private router: Router) { 11 constructor (
12 private router: Router,
13 private i18n: I18n
14 ) {
11 // empty 15 // empty
12 } 16 }
13 17
@@ -60,17 +64,19 @@ export class RestExtractor {
60 } else if (err.error && err.error.error) { 64 } else if (err.error && err.error.error) {
61 errorMessage = err.error.error 65 errorMessage = err.error.error
62 } else if (err.status === 413) { 66 } else if (err.status === 413) {
63 errorMessage = 'Request is too large for the server. Please contact you administrator if you want to increase the limit size.' 67 errorMessage = this.i18n(
68 'Request is too large for the server. Please contact you administrator if you want to increase the limit size.'
69 )
64 } else if (err.status === 429) { 70 } else if (err.status === 429) {
65 const secondsLeft = err.headers.get('retry-after') 71 const secondsLeft = err.headers.get('retry-after')
66 if (secondsLeft) { 72 if (secondsLeft) {
67 const minutesLeft = Math.floor(parseInt(secondsLeft, 10) / 60) 73 const minutesLeft = Math.floor(parseInt(secondsLeft, 10) / 60)
68 errorMessage = 'Too many attempts, please try again after ' + minutesLeft + ' minutes.' 74 errorMessage = this.i18n('Too many attempts, please try again after {{ minutesLeft }} minutes.', { minutesLeft })
69 } else { 75 } else {
70 errorMessage = 'Too many attempts, please try again later.' 76 errorMessage = this.i18n('Too many attempts, please try again later.')
71 } 77 }
72 } else if (err.status === 500) { 78 } else if (err.status === 500) {
73 errorMessage = 'Server error. Please retry later.' 79 errorMessage = this.i18n('Server error. Please retry later.')
74 } 80 }
75 81
76 errorMessage = errorMessage ? errorMessage : 'Unknown error.' 82 errorMessage = errorMessage ? errorMessage : 'Unknown error.'
diff --git a/client/src/app/shared/video/abstract-video-list.html b/client/src/app/shared/video/abstract-video-list.html
index 690529dcf..e8ded6ab8 100644
--- a/client/src/app/shared/video/abstract-video-list.html
+++ b/client/src/app/shared/video/abstract-video-list.html
@@ -4,7 +4,7 @@
4 </div> 4 </div>
5 <my-video-feed [syndicationItems]="syndicationItems"></my-video-feed> 5 <my-video-feed [syndicationItems]="syndicationItems"></my-video-feed>
6 6
7 <div *ngIf="pagination.totalItems === 0">No results.</div> 7 <div i18n *ngIf="pagination.totalItems === 0">No results.</div>
8 <div 8 <div
9 myInfiniteScroller 9 myInfiniteScroller
10 [pageHeight]="pageHeight" 10 [pageHeight]="pageHeight"
diff --git a/client/src/app/shared/video/abstract-video-list.ts b/client/src/app/shared/video/abstract-video-list.ts
index 100cbff8d..1c84573da 100644
--- a/client/src/app/shared/video/abstract-video-list.ts
+++ b/client/src/app/shared/video/abstract-video-list.ts
@@ -10,6 +10,7 @@ import { AuthService } from '../../core/auth'
10import { ComponentPagination } from '../rest/component-pagination.model' 10import { ComponentPagination } from '../rest/component-pagination.model'
11import { VideoSortField } from './sort-field.type' 11import { VideoSortField } from './sort-field.type'
12import { Video } from './video.model' 12import { Video } from './video.model'
13import { I18n } from '@ngx-translate/i18n-polyfill'
13 14
14export abstract class AbstractVideoList implements OnInit, OnDestroy { 15export abstract class AbstractVideoList implements OnInit, OnDestroy {
15 private static LINES_PER_PAGE = 4 16 private static LINES_PER_PAGE = 4
@@ -40,6 +41,7 @@ export abstract class AbstractVideoList implements OnInit, OnDestroy {
40 protected abstract authService: AuthService 41 protected abstract authService: AuthService
41 protected abstract router: Router 42 protected abstract router: Router
42 protected abstract route: ActivatedRoute 43 protected abstract route: ActivatedRoute
44 protected abstract i18n: I18n
43 protected abstract location: Location 45 protected abstract location: Location
44 protected abstract currentRoute: string 46 protected abstract currentRoute: string
45 abstract titlePage: string 47 abstract titlePage: string
@@ -124,7 +126,7 @@ export abstract class AbstractVideoList implements OnInit, OnDestroy {
124 }, 126 },
125 error => { 127 error => {
126 this.loadingPage[page] = false 128 this.loadingPage[page] = false
127 this.notificationsService.error('Error', error.message) 129 this.notificationsService.error(this.i18n('Error'), error.message)
128 } 130 }
129 ) 131 )
130 } 132 }
diff --git a/client/src/app/shared/video/video-miniature.component.html b/client/src/app/shared/video/video-miniature.component.html
index 09ce0ef7f..3010e5ccc 100644
--- a/client/src/app/shared/video/video-miniature.component.html
+++ b/client/src/app/shared/video/video-miniature.component.html
@@ -9,7 +9,7 @@
9 {{ video.name }} 9 {{ video.name }}
10 </a> 10 </a>
11 11
12 <span class="video-miniature-created-at-views">{{ video.publishedAt | myFromNow }} - {{ video.views | myNumberFormatter }} views</span> 12 <span i18n class="video-miniature-created-at-views">{{ video.publishedAt | myFromNow }} - {{ video.views | myNumberFormatter }} views</span>
13 <a class="video-miniature-account" [routerLink]="[ '/accounts', video.by ]">{{ video.by }}</a> 13 <a class="video-miniature-account" [routerLink]="[ '/accounts', video.by ]">{{ video.by }}</a>
14 </div> 14 </div>
15</div> 15</div>
diff --git a/client/src/app/shared/video/video-thumbnail.component.html b/client/src/app/shared/video/video-thumbnail.component.html
index 4604d10e2..971f352ba 100644
--- a/client/src/app/shared/video/video-thumbnail.component.html
+++ b/client/src/app/shared/video/video-thumbnail.component.html
@@ -1,6 +1,6 @@
1<a 1<a
2 [routerLink]="['/videos/watch', video.uuid]" [attr.title]="video.name" 2 [routerLink]="['/videos/watch', video.uuid]" [attr.title]="video.name"
3class="video-thumbnail" 3 class="video-thumbnail"
4> 4>
5<img [attr.src]="getImageUrl()" [ngClass]="{ 'blur-filter': nsfw }" /> 5<img [attr.src]="getImageUrl()" [ngClass]="{ 'blur-filter': nsfw }" />
6 6
diff --git a/client/src/app/signup/signup.component.html b/client/src/app/signup/signup.component.html
index 5f48786e5..2fe9a4281 100644
--- a/client/src/app/signup/signup.component.html
+++ b/client/src/app/signup/signup.component.html
@@ -1,11 +1,11 @@
1<div class="margin-content"> 1<div class="margin-content">
2 2
3 <div class="title-page title-page-single"> 3 <div i18n class="title-page title-page-single">
4 Create an account 4 Create an account
5 </div> 5 </div>
6 6
7 <div class="initial-user-quota"> 7 <div class="initial-user-quota">
8 <span class="initial-user-quota-label">Initial video quota:</span> 8 <span i18n class="initial-user-quota-label">Initial video quota:</span>
9 9
10 <span *ngIf="initialUserVideoQuota !== -1"> 10 <span *ngIf="initialUserVideoQuota !== -1">
11 {{ initialUserVideoQuota | bytes: 0 }} 11 {{ initialUserVideoQuota | bytes: 0 }}
@@ -13,18 +13,18 @@
13 <my-help helpType="custom" [customHtml]="quotaHelpIndication"></my-help> 13 <my-help helpType="custom" [customHtml]="quotaHelpIndication"></my-help>
14 </span> 14 </span>
15 15
16 <ng-template [ngIf]="initialUserVideoQuota === -1"> 16 <ng-container i18n *ngIf="initialUserVideoQuota === -1">
17 Unlimited 17 Unlimited
18 </ng-template> 18 </ng-container>
19 </div> 19 </div>
20 20
21 <div *ngIf="error" class="alert alert-danger">{{ error }}</div> 21 <div *ngIf="error" class="alert alert-danger">{{ error }}</div>
22 22
23 <form role="form" (ngSubmit)="signup()" [formGroup]="form"> 23 <form role="form" (ngSubmit)="signup()" [formGroup]="form">
24 <div class="form-group"> 24 <div class="form-group">
25 <label for="username">Username</label> 25 <label for="username" i18n>Username</label>
26 <input 26 <input
27 type="text" id="username" placeholder="Username" 27 type="text" id="username" i18n-placeholder placeholder="Username"
28 formControlName="username" [ngClass]="{ 'input-error': formErrors['username'] }" 28 formControlName="username" [ngClass]="{ 'input-error': formErrors['username'] }"
29 > 29 >
30 <div *ngIf="formErrors.username" class="form-error"> 30 <div *ngIf="formErrors.username" class="form-error">
@@ -33,9 +33,9 @@
33 </div> 33 </div>
34 34
35 <div class="form-group"> 35 <div class="form-group">
36 <label for="email">Email</label> 36 <label for="email" i18n>Email</label>
37 <input 37 <input
38 type="text" id="email" placeholder="Email" 38 type="text" id="email" i18n-placeholder placeholder="Email"
39 formControlName="email" [ngClass]="{ 'input-error': formErrors['email'] }" 39 formControlName="email" [ngClass]="{ 'input-error': formErrors['email'] }"
40 > 40 >
41 <div *ngIf="formErrors.email" class="form-error"> 41 <div *ngIf="formErrors.email" class="form-error">
@@ -44,9 +44,9 @@
44 </div> 44 </div>
45 45
46 <div class="form-group"> 46 <div class="form-group">
47 <label for="password">Password</label> 47 <label for="password" i18n>Password</label>
48 <input 48 <input
49 type="password" id="password" placeholder="Password" 49 type="password" id="password" i18n-placeholder placeholder="Password"
50 formControlName="password" [ngClass]="{ 'input-error': formErrors['password'] }" 50 formControlName="password" [ngClass]="{ 'input-error': formErrors['password'] }"
51 > 51 >
52 <div *ngIf="formErrors.password" class="form-error"> 52 <div *ngIf="formErrors.password" class="form-error">
@@ -54,7 +54,7 @@
54 </div> 54 </div>
55 </div> 55 </div>
56 56
57 <input type="submit" value="Signup" [disabled]="!form.valid"> 57 <input type="submit" i18n-value value="Signup" [disabled]="!form.valid">
58 </form> 58 </form>
59 59
60</div> 60</div>
diff --git a/client/src/app/signup/signup.component.ts b/client/src/app/signup/signup.component.ts
index 1f3e2e146..4a49ead50 100644
--- a/client/src/app/signup/signup.component.ts
+++ b/client/src/app/signup/signup.component.ts
@@ -6,6 +6,8 @@ import { ServerService } from '@app/core/server'
6import { NotificationsService } from 'angular2-notifications' 6import { NotificationsService } from 'angular2-notifications'
7import { UserCreate } from '../../../../shared' 7import { UserCreate } from '../../../../shared'
8import { FormReactive, USER_EMAIL, USER_PASSWORD, USER_USERNAME, UserService } from '../shared' 8import { FormReactive, USER_EMAIL, USER_PASSWORD, USER_USERNAME, UserService } from '../shared'
9import { RedirectService } from '@app/core'
10import { I18n } from '@ngx-translate/i18n-polyfill'
9 11
10@Component({ 12@Component({
11 selector: 'my-signup', 13 selector: 'my-signup',
@@ -45,7 +47,9 @@ export class SignupComponent extends FormReactive implements OnInit {
45 private router: Router, 47 private router: Router,
46 private notificationsService: NotificationsService, 48 private notificationsService: NotificationsService,
47 private userService: UserService, 49 private userService: UserService,
48 private serverService: ServerService 50 private redirectService: RedirectService,
51 private serverService: ServerService,
52 private i18n: I18n
49 ) { 53 ) {
50 super() 54 super()
51 } 55 }
@@ -78,8 +82,11 @@ export class SignupComponent extends FormReactive implements OnInit {
78 82
79 this.userService.signup(userCreate).subscribe( 83 this.userService.signup(userCreate).subscribe(
80 () => { 84 () => {
81 this.notificationsService.success('Success', `Registration for ${userCreate.username} complete.`) 85 this.notificationsService.success(
82 this.router.navigate([ '/videos/list' ]) 86 this.i18n('Success'),
87 this.i18n('Registration for {{ username }} complete.', { username: userCreate.username})
88 )
89 this.redirectService.redirectToHomepage()
83 }, 90 },
84 91
85 err => this.error = err.message 92 err => this.error = err.message
@@ -99,9 +106,9 @@ export class SignupComponent extends FormReactive implements OnInit {
99 const normalSeconds = initialUserVideoQuotaBit / (1.5 * 1000 * 1000) 106 const normalSeconds = initialUserVideoQuotaBit / (1.5 * 1000 * 1000)
100 107
101 const lines = [ 108 const lines = [
102 SignupComponent.getApproximateTime(fullHdSeconds) + ' of full HD videos', 109 this.i18n('{{ seconds }} of full HD videos', { seconds: SignupComponent.getApproximateTime(fullHdSeconds) }),
103 SignupComponent.getApproximateTime(hdSeconds) + ' of HD videos', 110 this.i18n('{{ seconds }} of HD videos', { seconds: SignupComponent.getApproximateTime(hdSeconds) }),
104 SignupComponent.getApproximateTime(normalSeconds) + ' of average quality videos' 111 this.i18n('{{ seconds }} of average quality videos', { seconds: SignupComponent.getApproximateTime(normalSeconds) })
105 ] 112 ]
106 113
107 this.quotaHelpIndication = lines.join('<br />') 114 this.quotaHelpIndication = lines.join('<br />')
diff --git a/client/src/app/videos/+video-edit/shared/video-edit.component.html b/client/src/app/videos/+video-edit/shared/video-edit.component.html
index 7e1be4467..bd9f69362 100644
--- a/client/src/app/videos/+video-edit/shared/video-edit.component.html
+++ b/client/src/app/videos/+video-edit/shared/video-edit.component.html
@@ -4,7 +4,7 @@
4 <tab heading="Basic info"> 4 <tab heading="Basic info">
5 <div class="col-md-8"> 5 <div class="col-md-8">
6 <div class="form-group"> 6 <div class="form-group">
7 <label for="name">Title</label> 7 <label i18n for="name">Title</label>
8 <input type="text" id="name" formControlName="name" /> 8 <input type="text" id="name" formControlName="name" />
9 <div *ngIf="formErrors.name" class="form-error"> 9 <div *ngIf="formErrors.name" class="form-error">
10 {{ formErrors.name }} 10 {{ formErrors.name }}
@@ -12,7 +12,7 @@
12 </div> 12 </div>
13 13
14 <div class="form-group"> 14 <div class="form-group">
15 <label class="label-tags">Tags</label> <span>(press Enter to add)</span> 15 <label i18n class="label-tags">Tags</label> <span i18n>(press Enter to add)</span>
16 <tag-input 16 <tag-input
17 [validators]="tagValidators" [errorMessages]="tagValidatorsMessages" 17 [validators]="tagValidators" [errorMessages]="tagValidatorsMessages"
18 formControlName="tags" maxItems="5" modelAsStrings="true" 18 formControlName="tags" maxItems="5" modelAsStrings="true"
@@ -20,8 +20,8 @@
20 </div> 20 </div>
21 21
22 <div class="form-group"> 22 <div class="form-group">
23 <label for="description">Description</label> 23 <label i18n for="description">Description</label>
24 <my-help helpType="markdownText" preHtml="Video descriptions are truncated by default and require manual action to expand them."></my-help> 24 <my-help helpType="markdownText" i18n-preHtml preHtml="Video descriptions are truncated by default and require manual action to expand them."></my-help>
25 <my-markdown-textarea truncate="250" formControlName="description"></my-markdown-textarea> 25 <my-markdown-textarea truncate="250" formControlName="description"></my-markdown-textarea>
26 26
27 <div *ngIf="formErrors.description" class="form-error"> 27 <div *ngIf="formErrors.description" class="form-error">
@@ -32,7 +32,7 @@
32 32
33 <div class="col-md-4"> 33 <div class="col-md-4">
34 <div class="form-group"> 34 <div class="form-group">
35 <label>Channel</label> 35 <label i18n>Channel</label>
36 <div class="peertube-select-container"> 36 <div class="peertube-select-container">
37 <select formControlName="channelId"> 37 <select formControlName="channelId">
38 <option *ngFor="let channel of userVideoChannels" [value]="channel.id">{{ channel.label }}</option> 38 <option *ngFor="let channel of userVideoChannels" [value]="channel.id">{{ channel.label }}</option>
@@ -41,7 +41,7 @@
41 </div> 41 </div>
42 42
43 <div class="form-group"> 43 <div class="form-group">
44 <label for="category">Category</label> 44 <label i18n for="category">Category</label>
45 <div class="peertube-select-container"> 45 <div class="peertube-select-container">
46 <select id="category" formControlName="category"> 46 <select id="category" formControlName="category">
47 <option></option> 47 <option></option>
@@ -55,7 +55,7 @@
55 </div> 55 </div>
56 56
57 <div class="form-group"> 57 <div class="form-group">
58 <label for="licence">Licence</label> 58 <label i18n for="licence">Licence</label>
59 <div class="peertube-select-container"> 59 <div class="peertube-select-container">
60 <select id="licence" formControlName="licence"> 60 <select id="licence" formControlName="licence">
61 <option></option> 61 <option></option>
@@ -69,7 +69,7 @@
69 </div> 69 </div>
70 70
71 <div class="form-group"> 71 <div class="form-group">
72 <label for="language">Language</label> 72 <label i18n for="language">Language</label>
73 <div class="peertube-select-container"> 73 <div class="peertube-select-container">
74 <select id="language" formControlName="language"> 74 <select id="language" formControlName="language">
75 <option></option> 75 <option></option>
@@ -83,7 +83,7 @@
83 </div> 83 </div>
84 84
85 <div class="form-group"> 85 <div class="form-group">
86 <label for="privacy">Privacy</label> 86 <label i18n for="privacy">Privacy</label>
87 <div class="peertube-select-container"> 87 <div class="peertube-select-container">
88 <select id="privacy" formControlName="privacy"> 88 <select id="privacy" formControlName="privacy">
89 <option></option> 89 <option></option>
@@ -99,14 +99,14 @@
99 <div class="form-group form-group-checkbox"> 99 <div class="form-group form-group-checkbox">
100 <input type="checkbox" id="nsfw" formControlName="nsfw" /> 100 <input type="checkbox" id="nsfw" formControlName="nsfw" />
101 <label for="nsfw"></label> 101 <label for="nsfw"></label>
102 <label for="nsfw">This video contains mature or explicit content</label> 102 <label i18n for="nsfw">This video contains mature or explicit content</label>
103 <my-help tooltipPlacement="top" helpType="custom" customHtml="Some instances do not list NSFW videos by default."></my-help> 103 <my-help tooltipPlacement="top" helpType="custom" i18n-customHtml customHtml="Some instances do not list NSFW videos by default."></my-help>
104 </div> 104 </div>
105 105
106 <div class="form-group form-group-checkbox"> 106 <div class="form-group form-group-checkbox">
107 <input type="checkbox" id="commentsEnabled" formControlName="commentsEnabled" /> 107 <input type="checkbox" id="commentsEnabled" formControlName="commentsEnabled" />
108 <label for="commentsEnabled"></label> 108 <label for="commentsEnabled"></label>
109 <label for="commentsEnabled">Enable video comments</label> 109 <label i18n for="commentsEnabled">Enable video comments</label>
110 </div> 110 </div>
111 111
112 </div> 112 </div>
@@ -116,24 +116,24 @@
116 <div class="col-md-12 advanced-settings"> 116 <div class="col-md-12 advanced-settings">
117 <div class="form-group"> 117 <div class="form-group">
118 <my-video-image 118 <my-video-image
119 inputLabel="Upload thumbnail" inputName="thumbnailfile" formControlName="thumbnailfile" 119 i18n-inputLabel inputLabel="Upload thumbnail" inputName="thumbnailfile" formControlName="thumbnailfile"
120 previewWidth="200px" previewHeight="110px" 120 previewWidth="200px" previewHeight="110px"
121 ></my-video-image> 121 ></my-video-image>
122 </div> 122 </div>
123 123
124 <div class="form-group"> 124 <div class="form-group">
125 <my-video-image 125 <my-video-image
126 inputLabel="Upload preview" inputName="previewfile" formControlName="previewfile" 126 i18n-inputLabel inputLabel="Upload preview" inputName="previewfile" formControlName="previewfile"
127 previewWidth="360px" previewHeight="200px" 127 previewWidth="360px" previewHeight="200px"
128 ></my-video-image> 128 ></my-video-image>
129 </div> 129 </div>
130 130
131 <div class="form-group"> 131 <div class="form-group">
132 <label for="support">Support</label> 132 <label i18n for="support">Support</label>
133 <my-help helpType="markdownEnhanced" preHtml="Short text to tell people how they can support you (membership platform...)."></my-help> 133 <my-help helpType="markdownEnhanced" i18n-preHtml preHtml="Short text to tell people how they can support you (membership platform...)."></my-help>
134 <my-markdown-textarea 134 <my-markdown-textarea
135 id="support" formControlName="support" textareaWidth="500px" [previewColumn]="true" markdownType="enhanced" 135 id="support" formControlName="support" textareaWidth="500px" [previewColumn]="true" markdownType="enhanced"
136 [classes]="{ 'input-error': formErrors['support'] }" 136 [classes]="{ 'input-error': formErrors['support'] }"
137 ></my-markdown-textarea> 137 ></my-markdown-textarea>
138 <div *ngIf="formErrors.support" class="form-error"> 138 <div *ngIf="formErrors.support" class="form-error">
139 {{ formErrors.support }} 139 {{ formErrors.support }}
diff --git a/client/src/app/videos/+video-edit/shared/video-image.component.html b/client/src/app/videos/+video-edit/shared/video-image.component.html
index 5d0624f8c..e319d7ee7 100644
--- a/client/src/app/videos/+video-edit/shared/video-image.component.html
+++ b/client/src/app/videos/+video-edit/shared/video-image.component.html
@@ -8,7 +8,7 @@
8 (change)="fileChange($event)" 8 (change)="fileChange($event)"
9 /> 9 />
10 </div> 10 </div>
11 <div class="image-constraints">(extensions: {{ videoImageExtensions }}, max size: {{ maxVideoImageSize | bytes }})</div> 11 <div i18n class="image-constraints">(extensions: {{ videoImageExtensions }}, max size: {{ maxVideoImageSize | bytes }})</div>
12 </div> 12 </div>
13 13
14 <img *ngIf="imageSrc" [ngStyle]="{ width: previewWidth, height: previewHeight }" [src]="imageSrc" class="preview" /> 14 <img *ngIf="imageSrc" [ngStyle]="{ width: previewWidth, height: previewHeight }" [src]="imageSrc" class="preview" />
diff --git a/client/src/app/videos/+video-edit/video-add.component.html b/client/src/app/videos/+video-edit/video-add.component.html
index 440556562..f00cfe016 100644
--- a/client/src/app/videos/+video-edit/video-add.component.html
+++ b/client/src/app/videos/+video-edit/video-add.component.html
@@ -1,7 +1,7 @@
1<div class="margin-content"> 1<div class="margin-content">
2 <div class="title-page title-page-single"> 2 <div class="title-page title-page-single">
3 <ng-template [ngIf]="!videoFileName">Upload your video</ng-template> 3 <ng-container *ngIf="!videoFileName" i18n>Upload your video</ng-container>
4 <ng-template [ngIf]="videoFileName">Upload {{ videoFileName }}</ng-template> 4 <ng-container *ngIf="videoFileName" i18n>Upload {{ videoFileName }}</ng-container>
5 </div> 5 </div>
6 6
7 <div *ngIf="!isUploadingVideo" class="upload-video-container"> 7 <div *ngIf="!isUploadingVideo" class="upload-video-container">
@@ -9,12 +9,12 @@
9 <div class="icon icon-upload"></div> 9 <div class="icon icon-upload"></div>
10 10
11 <div class="button-file"> 11 <div class="button-file">
12 <span>Select the file to upload</span> 12 <span i18n>Select the file to upload</span>
13 <input #videofileInput type="file" name="videofile" id="videofile" [accept]="videoExtensions" (change)="fileChange()" /> 13 <input #videofileInput type="file" name="videofile" id="videofile" [accept]="videoExtensions" (change)="fileChange()" />
14 </div> 14 </div>
15 15
16 <div class="form-group form-group-channel"> 16 <div class="form-group form-group-channel">
17 <label for="first-step-channel">Channel</label> 17 <label i18n for="first-step-channel">Channel</label>
18 <div class="peertube-select-container"> 18 <div class="peertube-select-container">
19 <select id="first-step-channel" [(ngModel)]="firstStepChannelId"> 19 <select id="first-step-channel" [(ngModel)]="firstStepChannelId">
20 <option *ngFor="let channel of userVideoChannels" [value]="channel.id">{{ channel.label }}</option> 20 <option *ngFor="let channel of userVideoChannels" [value]="channel.id">{{ channel.label }}</option>
@@ -23,7 +23,7 @@
23 </div> 23 </div>
24 24
25 <div class="form-group"> 25 <div class="form-group">
26 <label for="first-step-privacy">Privacy</label> 26 <label i18n for="first-step-privacy">Privacy</label>
27 <div class="peertube-select-container"> 27 <div class="peertube-select-container">
28 <select id="first-step-privacy" [(ngModel)]="firstStepPrivacyId"> 28 <select id="first-step-privacy" [(ngModel)]="firstStepPrivacyId">
29 <option *ngFor="let privacy of videoPrivacies" [value]="privacy.id">{{ privacy.label }}</option> 29 <option *ngFor="let privacy of videoPrivacies" [value]="privacy.id">{{ privacy.label }}</option>
@@ -49,14 +49,14 @@
49 ></my-video-edit> 49 ></my-video-edit>
50 50
51 <div class="submit-container"> 51 <div class="submit-container">
52 <div *ngIf="videoUploaded === false" class="message-submit">Publish will be available when upload is finished</div> 52 <div i18n *ngIf="videoUploaded === false" class="message-submit">Publish will be available when upload is finished</div>
53 53
54 <div class="submit-button" 54 <div class="submit-button"
55 (click)="updateSecondStep()" 55 (click)="updateSecondStep()"
56 [ngClass]="{ disabled: !form.valid || isUpdatingVideo === true || videoUploaded !== true }" 56 [ngClass]="{ disabled: !form.valid || isUpdatingVideo === true || videoUploaded !== true }"
57 > 57 >
58 <span class="icon icon-validate"></span> 58 <span class="icon icon-validate"></span>
59 <input type="button" value="Publish" /> 59 <input type="button" i18n-value value="Publish" />
60 </div> 60 </div>
61 </div> 61 </div>
62 </form> 62 </form>
diff --git a/client/src/app/videos/+video-edit/video-add.component.ts b/client/src/app/videos/+video-edit/video-add.component.ts
index 997f033b7..a615fd92c 100644
--- a/client/src/app/videos/+video-edit/video-add.component.ts
+++ b/client/src/app/videos/+video-edit/video-add.component.ts
@@ -15,6 +15,7 @@ import { ValidatorMessage } from '../../shared/forms/form-validators/validator-m
15import { populateAsyncUserVideoChannels } from '../../shared/misc/utils' 15import { populateAsyncUserVideoChannels } from '../../shared/misc/utils'
16import { VideoEdit } from '../../shared/video/video-edit.model' 16import { VideoEdit } from '../../shared/video/video-edit.model'
17import { VideoService } from '../../shared/video/video.service' 17import { VideoService } from '../../shared/video/video.service'
18import { I18n } from '@ngx-translate/i18n-polyfill'
18 19
19@Component({ 20@Component({
20 selector: 'my-videos-add', 21 selector: 'my-videos-add',
@@ -56,7 +57,8 @@ export class VideoAddComponent extends FormReactive implements OnInit, OnDestroy
56 private userService: UserService, 57 private userService: UserService,
57 private serverService: ServerService, 58 private serverService: ServerService,
58 private videoService: VideoService, 59 private videoService: VideoService,
59 private loadingBar: LoadingBarService 60 private loadingBar: LoadingBarService,
61 private i18n: I18n
60 ) { 62 ) {
61 super() 63 super()
62 } 64 }
@@ -99,10 +101,11 @@ export class VideoAddComponent extends FormReactive implements OnInit, OnDestroy
99 let text = '' 101 let text = ''
100 102
101 if (this.videoUploaded === true) { 103 if (this.videoUploaded === true) {
102 text = 'Your video was uploaded in your account and is private.' + 104 // FIXME: cannot concatenate strings inside i18n service :/
103 ' But associated data (tags, description...) will be lost, are you sure you want to leave this page?' 105 text = this.i18n('Your video was uploaded in your account and is private.') +
106 this.i18n('But associated data (tags, description...) will be lost, are you sure you want to leave this page?')
104 } else { 107 } else {
105 text = 'Your video is not uploaded yet, are you sure you want to leave this page?' 108 text = this.i18n('Your video is not uploaded yet, are you sure you want to leave this page?')
106 } 109 }
107 110
108 return { 111 return {
@@ -127,7 +130,7 @@ export class VideoAddComponent extends FormReactive implements OnInit, OnDestroy
127 this.isUploadingVideo = false 130 this.isUploadingVideo = false
128 this.videoUploadPercents = 0 131 this.videoUploadPercents = 0
129 this.videoUploadObservable = null 132 this.videoUploadObservable = null
130 this.notificationsService.info('Info', 'Upload cancelled') 133 this.notificationsService.info(this.i18n('Info'), this.i18n('Upload cancelled'))
131 } 134 }
132 } 135 }
133 136
@@ -137,7 +140,7 @@ export class VideoAddComponent extends FormReactive implements OnInit, OnDestroy
137 140
138 // Cannot upload videos > 4GB for now 141 // Cannot upload videos > 4GB for now
139 if (videofile.size > 4 * 1024 * 1024 * 1024) { 142 if (videofile.size > 4 * 1024 * 1024 * 1024) {
140 this.notificationsService.error('Error', 'We are sorry but PeerTube cannot handle videos > 4GB') 143 this.notificationsService.error(this.i18n('Error'), this.i18n('We are sorry but PeerTube cannot handle videos > 4GB'))
141 return 144 return
142 } 145 }
143 146
@@ -145,11 +148,15 @@ export class VideoAddComponent extends FormReactive implements OnInit, OnDestroy
145 if (videoQuota !== -1 && (this.userVideoQuotaUsed + videofile.size) > videoQuota) { 148 if (videoQuota !== -1 && (this.userVideoQuotaUsed + videofile.size) > videoQuota) {
146 const bytePipes = new BytesPipe() 149 const bytePipes = new BytesPipe()
147 150
148 const msg = 'Your video quota is exceeded with this video ' + 151 const msg = this.i18n(
149 `(video size: ${bytePipes.transform(videofile.size, 0)}, ` + 152 'Your video quota is exceeded with this video (video size: {{ videoSize }}, used: {{ videoQuotaUsed }}, quota: {{ videoQuota }})',
150 `used: ${bytePipes.transform(this.userVideoQuotaUsed, 0)}, ` + 153 {
151 `quota: ${bytePipes.transform(videoQuota, 0)})` 154 videoSize: bytePipes.transform(videofile.size, 0),
152 this.notificationsService.error('Error', msg) 155 videoQuotaUsed: bytePipes.transform(this.userVideoQuotaUsed, 0),
156 videoQuota: bytePipes.transform(videoQuota, 0)
157 }
158 )
159 this.notificationsService.error(this.i18n('Error'), msg)
153 return 160 return
154 } 161 }
155 162
@@ -192,8 +199,6 @@ export class VideoAddComponent extends FormReactive implements OnInit, OnDestroy
192 if (event.type === HttpEventType.UploadProgress) { 199 if (event.type === HttpEventType.UploadProgress) {
193 this.videoUploadPercents = Math.round(100 * event.loaded / event.total) 200 this.videoUploadPercents = Math.round(100 * event.loaded / event.total)
194 } else if (event instanceof HttpResponse) { 201 } else if (event instanceof HttpResponse) {
195 console.log('Video uploaded.')
196
197 this.videoUploaded = true 202 this.videoUploaded = true
198 203
199 this.videoUploadedIds = event.body.video 204 this.videoUploadedIds = event.body.video
@@ -207,7 +212,7 @@ export class VideoAddComponent extends FormReactive implements OnInit, OnDestroy
207 this.isUploadingVideo = false 212 this.isUploadingVideo = false
208 this.videoUploadPercents = 0 213 this.videoUploadPercents = 0
209 this.videoUploadObservable = null 214 this.videoUploadObservable = null
210 this.notificationsService.error('Error', err.message) 215 this.notificationsService.error(this.i18n('Error'), err.message)
211 } 216 }
212 ) 217 )
213 } 218 }
@@ -231,13 +236,13 @@ export class VideoAddComponent extends FormReactive implements OnInit, OnDestroy
231 this.isUploadingVideo = false 236 this.isUploadingVideo = false
232 this.loadingBar.complete() 237 this.loadingBar.complete()
233 238
234 this.notificationsService.success('Success', 'Video published.') 239 this.notificationsService.success(this.i18n('Success'), this.i18n('Video published.'))
235 this.router.navigate([ '/videos/watch', video.uuid ]) 240 this.router.navigate([ '/videos/watch', video.uuid ])
236 }, 241 },
237 242
238 err => { 243 err => {
239 this.isUpdatingVideo = false 244 this.isUpdatingVideo = false
240 this.notificationsService.error('Error', err.message) 245 this.notificationsService.error(this.i18n('Error'), err.message)
241 console.error(err) 246 console.error(err)
242 } 247 }
243 ) 248 )
diff --git a/client/src/app/videos/+video-edit/video-update.component.html b/client/src/app/videos/+video-edit/video-update.component.html
index a1b4707be..73b2bc08f 100644
--- a/client/src/app/videos/+video-edit/video-update.component.html
+++ b/client/src/app/videos/+video-edit/video-update.component.html
@@ -1,5 +1,5 @@
1<div class="margin-content"> 1<div class="margin-content">
2 <div class="title-page title-page-single"> 2 <div i18n class="title-page title-page-single">
3 Update {{ video?.name }} 3 Update {{ video?.name }}
4 </div> 4 </div>
5 5
@@ -13,7 +13,7 @@
13 <div class="submit-container"> 13 <div class="submit-container">
14 <div class="submit-button" (click)="update()" [ngClass]="{ disabled: !form.valid || isUpdatingVideo === true }"> 14 <div class="submit-button" (click)="update()" [ngClass]="{ disabled: !form.valid || isUpdatingVideo === true }">
15 <span class="icon icon-validate"></span> 15 <span class="icon icon-validate"></span>
16 <input type="button" value="Update" /> 16 <input type="button" i18n-value value="Update" />
17 </div> 17 </div>
18 </div> 18 </div>
19 </form> 19 </form>
diff --git a/client/src/app/videos/+video-edit/video-update.component.ts b/client/src/app/videos/+video-edit/video-update.component.ts
index 310285f92..e37dd526f 100644
--- a/client/src/app/videos/+video-edit/video-update.component.ts
+++ b/client/src/app/videos/+video-edit/video-update.component.ts
@@ -12,6 +12,7 @@ import { ValidatorMessage } from '../../shared/forms/form-validators/validator-m
12import { VideoEdit } from '../../shared/video/video-edit.model' 12import { VideoEdit } from '../../shared/video/video-edit.model'
13import { VideoService } from '../../shared/video/video.service' 13import { VideoService } from '../../shared/video/video.service'
14import { VideoChannelService } from '@app/shared/video-channel/video-channel.service' 14import { VideoChannelService } from '@app/shared/video-channel/video-channel.service'
15import { I18n } from '@ngx-translate/i18n-polyfill'
15 16
16@Component({ 17@Component({
17 selector: 'my-videos-update', 18 selector: 'my-videos-update',
@@ -37,7 +38,8 @@ export class VideoUpdateComponent extends FormReactive implements OnInit {
37 private videoService: VideoService, 38 private videoService: VideoService,
38 private authService: AuthService, 39 private authService: AuthService,
39 private loadingBar: LoadingBarService, 40 private loadingBar: LoadingBarService,
40 private videoChannelService: VideoChannelService 41 private videoChannelService: VideoChannelService,
42 private i18n: I18n
41 ) { 43 ) {
42 super() 44 super()
43 } 45 }
@@ -91,7 +93,7 @@ export class VideoUpdateComponent extends FormReactive implements OnInit {
91 93
92 err => { 94 err => {
93 console.error(err) 95 console.error(err)
94 this.notificationsService.error('Error', err.message) 96 this.notificationsService.error(this.i18n('Error'), err.message)
95 } 97 }
96 ) 98 )
97 } 99 }
@@ -116,13 +118,13 @@ export class VideoUpdateComponent extends FormReactive implements OnInit {
116 () => { 118 () => {
117 this.isUpdatingVideo = false 119 this.isUpdatingVideo = false
118 this.loadingBar.complete() 120 this.loadingBar.complete()
119 this.notificationsService.success('Success', 'Video updated.') 121 this.notificationsService.success(this.i18n('Success'), this.i18n('Video updated.'))
120 this.router.navigate([ '/videos/watch', this.video.uuid ]) 122 this.router.navigate([ '/videos/watch', this.video.uuid ])
121 }, 123 },
122 124
123 err => { 125 err => {
124 this.isUpdatingVideo = false 126 this.isUpdatingVideo = false
125 this.notificationsService.error('Error', err.message) 127 this.notificationsService.error(this.i18n('Error'), err.message)
126 console.error(err) 128 console.error(err)
127 } 129 }
128 ) 130 )
diff --git a/client/src/app/videos/+video-watch/comment/video-comment-add.component.html b/client/src/app/videos/+video-watch/comment/video-comment-add.component.html
index 54d7286db..eaf068cfa 100644
--- a/client/src/app/videos/+video-watch/comment/video-comment-add.component.html
+++ b/client/src/app/videos/+video-watch/comment/video-comment-add.component.html
@@ -3,7 +3,7 @@
3 <img [src]="user.accountAvatarUrl" alt="Avatar" /> 3 <img [src]="user.accountAvatarUrl" alt="Avatar" />
4 4
5 <div class="form-group"> 5 <div class="form-group">
6 <textarea placeholder="Add comment..." formControlName="text" [ngClass]="{ 'input-error': formErrors['text'] }" 6 <textarea i18n-placeholder placeholder="Add comment..." formControlName="text" [ngClass]="{ 'input-error': formErrors['text'] }"
7 (keyup.control.enter)="onValidKey()" (keyup.meta.enter)="onValidKey()" #textarea> 7 (keyup.control.enter)="onValidKey()" (keyup.meta.enter)="onValidKey()" #textarea>
8 8
9 </textarea> 9 </textarea>
@@ -14,7 +14,7 @@
14 </div> 14 </div>
15 15
16 <div class="submit-comment"> 16 <div class="submit-comment">
17 <button *ngIf="isAddButtonDisplayed()" [ngClass]="{ disabled: !form.valid }"> 17 <button *ngIf="isAddButtonDisplayed()" [ngClass]="{ disabled: !form.valid }" i18n>
18 Post comment 18 Post comment
19 </button> 19 </button>
20 </div> 20 </div>
diff --git a/client/src/app/videos/+video-watch/comment/video-comment-add.component.ts b/client/src/app/videos/+video-watch/comment/video-comment-add.component.ts
index b1f446475..2ee5f5ef1 100644
--- a/client/src/app/videos/+video-watch/comment/video-comment-add.component.ts
+++ b/client/src/app/videos/+video-watch/comment/video-comment-add.component.ts
@@ -9,6 +9,7 @@ import { User } from '../../../shared/users'
9import { Video } from '../../../shared/video/video.model' 9import { Video } from '../../../shared/video/video.model'
10import { VideoComment } from './video-comment.model' 10import { VideoComment } from './video-comment.model'
11import { VideoCommentService } from './video-comment.service' 11import { VideoCommentService } from './video-comment.service'
12import { I18n } from '@ngx-translate/i18n-polyfill'
12 13
13@Component({ 14@Component({
14 selector: 'my-video-comment-add', 15 selector: 'my-video-comment-add',
@@ -37,7 +38,8 @@ export class VideoCommentAddComponent extends FormReactive implements OnInit {
37 constructor ( 38 constructor (
38 private formBuilder: FormBuilder, 39 private formBuilder: FormBuilder,
39 private notificationsService: NotificationsService, 40 private notificationsService: NotificationsService,
40 private videoCommentService: VideoCommentService 41 private videoCommentService: VideoCommentService,
42 private i18n: I18n
41 ) { 43 ) {
42 super() 44 super()
43 } 45 }
@@ -92,7 +94,7 @@ export class VideoCommentAddComponent extends FormReactive implements OnInit {
92 this.form.reset() 94 this.form.reset()
93 }, 95 },
94 96
95 err => this.notificationsService.error('Error', err.text) 97 err => this.notificationsService.error(this.i18n('Error'), err.text)
96 ) 98 )
97 } 99 }
98 100
diff --git a/client/src/app/videos/+video-watch/comment/video-comment.component.html b/client/src/app/videos/+video-watch/comment/video-comment.component.html
index 06808ef80..60b803206 100644
--- a/client/src/app/videos/+video-watch/comment/video-comment.component.html
+++ b/client/src/app/videos/+video-watch/comment/video-comment.component.html
@@ -2,7 +2,7 @@
2 <img [src]="comment.accountAvatarUrl" alt="Avatar" /> 2 <img [src]="comment.accountAvatarUrl" alt="Avatar" />
3 3
4 <div class="comment"> 4 <div class="comment">
5 <div *ngIf="highlightedComment === true" class="highlighted-comment">Highlighted comment</div> 5 <div *ngIf="highlightedComment === true" class="highlighted-comment" i18n>Highlighted comment</div>
6 6
7 <div class="comment-account-date"> 7 <div class="comment-account-date">
8 <a [href]="comment.account.url" target="_blank" rel="noopener noreferrer" class="comment-account">{{ comment.by }}</a> 8 <a [href]="comment.account.url" target="_blank" rel="noopener noreferrer" class="comment-account">{{ comment.by }}</a>
@@ -11,8 +11,8 @@
11 <div class="comment-html" [innerHTML]="sanitizedCommentHTML"></div> 11 <div class="comment-html" [innerHTML]="sanitizedCommentHTML"></div>
12 12
13 <div class="comment-actions"> 13 <div class="comment-actions">
14 <div *ngIf="isUserLoggedIn()" (click)="onWantToReply()" class="comment-action-reply">Reply</div> 14 <div *ngIf="isUserLoggedIn()" (click)="onWantToReply()" class="comment-action-reply" i18n>Reply</div>
15 <div *ngIf="isRemovableByUser()" (click)="onWantToDelete()" class="comment-action-delete">Delete</div> 15 <div *ngIf="isRemovableByUser()" (click)="onWantToDelete()" class="comment-action-delete" i18n>Delete</div>
16 </div> 16 </div>
17 17
18 <my-video-comment-add 18 <my-video-comment-add
diff --git a/client/src/app/videos/+video-watch/comment/video-comments.component.html b/client/src/app/videos/+video-watch/comment/video-comments.component.html
index 114a56dc7..ac7c03648 100644
--- a/client/src/app/videos/+video-watch/comment/video-comments.component.html
+++ b/client/src/app/videos/+video-watch/comment/video-comments.component.html
@@ -3,7 +3,10 @@
3 <div class="title-page title-page-single"> 3 <div class="title-page title-page-single">
4 Comments 4 Comments
5 </div> 5 </div>
6 <my-help *ngIf="video.commentsEnabled === true" helpType="custom" customHtml="You can either comment on the page of your instance where this video is federated with your PeerTube account, or via any ActivityPub-capable fediverse instance. For instance with Mastodon or Pleroma you can type in the search box <strong>@{{video.account.displayName}}@{{video.account.host}}</strong> and find back the video. Direct commenting capabilities are being worked on in <a href='https://github.com/Chocobozzz/PeerTube/issues/224'>#224</a>."></my-help> 6 <my-help
7 *ngIf="video.commentsEnabled === true" helpType="custom" i18n-customHtml
8 customHtml="You can either comment on the page of your instance where this video is federated with your PeerTube account, or via any ActivityPub-capable fediverse instance. For instance with Mastodon or Pleroma you can type in the search box <strong>@{{video.account.displayName}}@{{video.account.host}}</strong> and find back the video. Direct commenting capabilities are being worked on in <a href='https://github.com/Chocobozzz/PeerTube/issues/224'>#224</a>."
9 ></my-help>
7 </div> 10 </div>
8 11
9 <ng-template [ngIf]="video.commentsEnabled === true"> 12 <ng-template [ngIf]="video.commentsEnabled === true">
@@ -14,7 +17,7 @@
14 (commentCreated)="onCommentThreadCreated($event)" 17 (commentCreated)="onCommentThreadCreated($event)"
15 ></my-video-comment-add> 18 ></my-video-comment-add>
16 19
17 <div *ngIf="componentPagination.totalItems === 0 && comments.length === 0">No comments.</div> 20 <div *ngIf="componentPagination.totalItems === 0 && comments.length === 0" i18n>No comments.</div>
18 21
19 <div 22 <div
20 class="comment-threads" 23 class="comment-threads"
@@ -24,15 +27,15 @@
24 > 27 >
25 <div *ngIf="highlightedThread" id="highlighted-comment"> 28 <div *ngIf="highlightedThread" id="highlighted-comment">
26 <my-video-comment 29 <my-video-comment
27 [comment]="highlightedThread" 30 [comment]="highlightedThread"
28 [video]="video" 31 [video]="video"
29 [inReplyToCommentId]="inReplyToCommentId" 32 [inReplyToCommentId]="inReplyToCommentId"
30 [commentTree]="threadComments[highlightedThread.id]" 33 [commentTree]="threadComments[highlightedThread.id]"
31 [highlightedComment]="true" 34 [highlightedComment]="true"
32 (wantedToReply)="onWantedToReply($event)" 35 (wantedToReply)="onWantedToReply($event)"
33 (wantedToDelete)="onWantedToDelete($event)" 36 (wantedToDelete)="onWantedToDelete($event)"
34 (threadCreated)="onThreadCreated($event)" 37 (threadCreated)="onThreadCreated($event)"
35 (resetReply)="onResetReply()" 38 (resetReply)="onResetReply()"
36 ></my-video-comment> 39 ></my-video-comment>
37 </div> 40 </div>
38 41
@@ -50,7 +53,7 @@
50 ></my-video-comment> 53 ></my-video-comment>
51 54
52 <div *ngIf="comment.totalReplies !== 0 && !threadComments[comment.id]" (click)="viewReplies(comment.id)" class="view-replies"> 55 <div *ngIf="comment.totalReplies !== 0 && !threadComments[comment.id]" (click)="viewReplies(comment.id)" class="view-replies">
53 View all {{ comment.totalReplies }} replies 56 <ng-container i18n>View all {{ comment.totalReplies }} replies</ng-container>
54 57
55 <span *ngIf="!threadLoading[comment.id]" class="glyphicon glyphicon-menu-down"></span> 58 <span *ngIf="!threadLoading[comment.id]" class="glyphicon glyphicon-menu-down"></span>
56 <my-loader class="comment-thread-loading" [loading]="threadLoading[comment.id]"></my-loader> 59 <my-loader class="comment-thread-loading" [loading]="threadLoading[comment.id]"></my-loader>
@@ -59,7 +62,7 @@
59 </div> 62 </div>
60 </ng-template> 63 </ng-template>
61 64
62 <div *ngIf="video.commentsEnabled === false"> 65 <div *ngIf="video.commentsEnabled === false" i18n>
63 Comments are disabled. 66 Comments are disabled.
64 </div> 67 </div>
65</div> 68</div>
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 34f4a0701..8c6ddb89e 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
@@ -11,6 +11,7 @@ import { VideoSortField } from '../../../shared/video/sort-field.type'
11import { VideoDetails } from '../../../shared/video/video-details.model' 11import { VideoDetails } from '../../../shared/video/video-details.model'
12import { VideoComment } from './video-comment.model' 12import { VideoComment } from './video-comment.model'
13import { VideoCommentService } from './video-comment.service' 13import { VideoCommentService } from './video-comment.service'
14import { I18n } from '@ngx-translate/i18n-polyfill'
14 15
15@Component({ 16@Component({
16 selector: 'my-video-comments', 17 selector: 'my-video-comments',
@@ -40,7 +41,8 @@ export class VideoCommentsComponent implements OnInit, OnChanges, OnDestroy {
40 private notificationsService: NotificationsService, 41 private notificationsService: NotificationsService,
41 private confirmService: ConfirmService, 42 private confirmService: ConfirmService,
42 private videoCommentService: VideoCommentService, 43 private videoCommentService: VideoCommentService,
43 private activatedRoute: ActivatedRoute 44 private activatedRoute: ActivatedRoute,
45 private i18n: I18n
44 ) {} 46 ) {}
45 47
46 ngOnInit () { 48 ngOnInit () {
@@ -77,7 +79,7 @@ export class VideoCommentsComponent implements OnInit, OnChanges, OnDestroy {
77 if (highlightThread) this.highlightedThread = new VideoComment(res.comment) 79 if (highlightThread) this.highlightedThread = new VideoComment(res.comment)
78 }, 80 },
79 81
80 err => this.notificationsService.error('Error', err.message) 82 err => this.notificationsService.error(this.i18n('Error'), err.message)
81 ) 83 )
82 } 84 }
83 85
@@ -89,7 +91,7 @@ export class VideoCommentsComponent implements OnInit, OnChanges, OnDestroy {
89 this.componentPagination.totalItems = res.totalComments 91 this.componentPagination.totalItems = res.totalComments
90 }, 92 },
91 93
92 err => this.notificationsService.error('Error', err.message) 94 err => this.notificationsService.error(this.i18n('Error'), err.message)
93 ) 95 )
94 } 96 }
95 97
@@ -111,9 +113,11 @@ export class VideoCommentsComponent implements OnInit, OnChanges, OnDestroy {
111 113
112 async onWantedToDelete (commentToDelete: VideoComment) { 114 async onWantedToDelete (commentToDelete: VideoComment) {
113 let message = 'Do you really want to delete this comment?' 115 let message = 'Do you really want to delete this comment?'
114 if (commentToDelete.totalReplies !== 0) message += `${commentToDelete.totalReplies} would be deleted too.` 116 if (commentToDelete.totalReplies !== 0) {
117 message += this.i18n(' {{ totalReplies }} replies will be deleted too.', { totalReplies: commentToDelete.totalReplies })
118 }
115 119
116 const res = await this.confirmService.confirm(message, 'Delete') 120 const res = await this.confirmService.confirm(message, this.i18n('Delete'))
117 if (res === false) return 121 if (res === false) return
118 122
119 this.videoCommentService.deleteVideoComment(commentToDelete.videoId, commentToDelete.id) 123 this.videoCommentService.deleteVideoComment(commentToDelete.videoId, commentToDelete.id)
@@ -136,7 +140,7 @@ export class VideoCommentsComponent implements OnInit, OnChanges, OnDestroy {
136 this.componentPagination.totalItems-- 140 this.componentPagination.totalItems--
137 }, 141 },
138 142
139 err => this.notificationsService.error('Error', err.message) 143 err => this.notificationsService.error(this.i18n('Error'), err.message)
140 ) 144 )
141 } 145 }
142 146
diff --git a/client/src/app/videos/+video-watch/modal/video-download.component.html b/client/src/app/videos/+video-watch/modal/video-download.component.html
index 617892b11..d30a49345 100644
--- a/client/src/app/videos/+video-watch/modal/video-download.component.html
+++ b/client/src/app/videos/+video-watch/modal/video-download.component.html
@@ -4,7 +4,7 @@
4 4
5 <div class="modal-header"> 5 <div class="modal-header">
6 <span class="close" aria-hidden="true" (click)="hide()"></span> 6 <span class="close" aria-hidden="true" (click)="hide()"></span>
7 <h4 class="modal-title">Download video</h4> 7 <h4 i18n class="modal-title">Download video</h4>
8 </div> 8 </div>
9 9
10 <div class="modal-body"> 10 <div class="modal-body">
@@ -17,22 +17,22 @@
17 <div class="download-type"> 17 <div class="download-type">
18 <div class="peertube-radio-container"> 18 <div class="peertube-radio-container">
19 <input type="radio" name="download" id="download-torrent" [(ngModel)]="downloadType" value="torrent"> 19 <input type="radio" name="download" id="download-torrent" [(ngModel)]="downloadType" value="torrent">
20 <label for="download-torrent">Torrent</label> 20 <label i18n for="download-torrent">Torrent</label>
21 </div> 21 </div>
22 22
23 <div class="peertube-radio-container"> 23 <div class="peertube-radio-container">
24 <input type="radio" name="download" id="download-direct" [(ngModel)]="downloadType" value="direct"> 24 <input type="radio" name="download" id="download-direct" [(ngModel)]="downloadType" value="direct">
25 <label for="download-direct">Direct download</label> 25 <label i18n for="download-direct">Direct download</label>
26 </div> 26 </div>
27 </div> 27 </div>
28 28
29 <div class="form-group inputs"> 29 <div class="form-group inputs">
30 <span class="action-button action-button-cancel" (click)="hide()"> 30 <span i18n class="action-button action-button-cancel" (click)="hide()">
31 Cancel 31 Cancel
32 </span> 32 </span>
33 33
34 <input 34 <input
35 type="submit" value="Download" class="action-button-submit" 35 type="submit" i18n-value value="Download" class="action-button-submit"
36 (click)="download()" 36 (click)="download()"
37 > 37 >
38 </div> 38 </div>
diff --git a/client/src/app/videos/+video-watch/modal/video-report.component.html b/client/src/app/videos/+video-watch/modal/video-report.component.html
index a9a7beb48..4ee3721fb 100644
--- a/client/src/app/videos/+video-watch/modal/video-report.component.html
+++ b/client/src/app/videos/+video-watch/modal/video-report.component.html
@@ -4,14 +4,14 @@
4 4
5 <div class="modal-header"> 5 <div class="modal-header">
6 <span class="close" aria-hidden="true" (click)="hide()"></span> 6 <span class="close" aria-hidden="true" (click)="hide()"></span>
7 <h4 class="modal-title">Report video</h4> 7 <h4 i18n class="modal-title">Report video</h4>
8 </div> 8 </div>
9 9
10 <div class="modal-body"> 10 <div class="modal-body">
11 11
12 <form novalidate [formGroup]="form" (ngSubmit)="report()"> 12 <form novalidate [formGroup]="form" (ngSubmit)="report()">
13 <div class="form-group"> 13 <div class="form-group">
14 <textarea placeholder="Reason..." formControlName="reason" [ngClass]="{ 'input-error': formErrors['reason'] }"> 14 <textarea i18n-placeholder placeholder="Reason..." formControlName="reason" [ngClass]="{ 'input-error': formErrors['reason'] }">
15 </textarea> 15 </textarea>
16 <div *ngIf="formErrors.reason" class="form-error"> 16 <div *ngIf="formErrors.reason" class="form-error">
17 {{ formErrors.reason }} 17 {{ formErrors.reason }}
@@ -19,12 +19,12 @@
19 </div> 19 </div>
20 20
21 <div class="form-group inputs"> 21 <div class="form-group inputs">
22 <span class="action-button action-button-cancel" (click)="hide()"> 22 <span i18n class="action-button action-button-cancel" (click)="hide()">
23 Cancel 23 Cancel
24 </span> 24 </span>
25 25
26 <input 26 <input
27 type="submit" value="Submit" class="action-button-submit" 27 type="submit" i18n-value value="Submit" class="action-button-submit"
28 [disabled]="!form.valid" 28 [disabled]="!form.valid"
29 > 29 >
30 </div> 30 </div>
diff --git a/client/src/app/videos/+video-watch/modal/video-report.component.ts b/client/src/app/videos/+video-watch/modal/video-report.component.ts
index 050e827e7..1bbd30226 100644
--- a/client/src/app/videos/+video-watch/modal/video-report.component.ts
+++ b/client/src/app/videos/+video-watch/modal/video-report.component.ts
@@ -4,6 +4,7 @@ import { NotificationsService } from 'angular2-notifications'
4import { ModalDirective } from 'ngx-bootstrap/modal' 4import { ModalDirective } from 'ngx-bootstrap/modal'
5import { FormReactive, VIDEO_ABUSE_REASON, VideoAbuseService } from '../../../shared/index' 5import { FormReactive, VIDEO_ABUSE_REASON, VideoAbuseService } from '../../../shared/index'
6import { VideoDetails } from '../../../shared/video/video-details.model' 6import { VideoDetails } from '../../../shared/video/video-details.model'
7import { I18n } from '@ngx-translate/i18n-polyfill'
7 8
8@Component({ 9@Component({
9 selector: 'my-video-report', 10 selector: 'my-video-report',
@@ -27,8 +28,9 @@ export class VideoReportComponent extends FormReactive implements OnInit {
27 constructor ( 28 constructor (
28 private formBuilder: FormBuilder, 29 private formBuilder: FormBuilder,
29 private videoAbuseService: VideoAbuseService, 30 private videoAbuseService: VideoAbuseService,
30 private notificationsService: NotificationsService 31 private notificationsService: NotificationsService,
31 ) { 32 private i18n: I18n
33 ) {
32 super() 34 super()
33 } 35 }
34 36
@@ -58,11 +60,11 @@ export class VideoReportComponent extends FormReactive implements OnInit {
58 this.videoAbuseService.reportVideo(this.video.id, reason) 60 this.videoAbuseService.reportVideo(this.video.id, reason)
59 .subscribe( 61 .subscribe(
60 () => { 62 () => {
61 this.notificationsService.success('Success', 'Video reported.') 63 this.notificationsService.success(this.i18n('Success'), this.i18n('Video reported.'))
62 this.hide() 64 this.hide()
63 }, 65 },
64 66
65 err => this.notificationsService.error('Error', err.message) 67 err => this.notificationsService.error(this.i18n('Error'), err.message)
66 ) 68 )
67 } 69 }
68} 70}
diff --git a/client/src/app/videos/+video-watch/modal/video-share.component.html b/client/src/app/videos/+video-watch/modal/video-share.component.html
index 85cf10a6c..26ab5144a 100644
--- a/client/src/app/videos/+video-watch/modal/video-share.component.html
+++ b/client/src/app/videos/+video-watch/modal/video-share.component.html
@@ -4,12 +4,12 @@
4 4
5 <div class="modal-header"> 5 <div class="modal-header">
6 <span class="close" aria-hidden="true" (click)="hide()"></span> 6 <span class="close" aria-hidden="true" (click)="hide()"></span>
7 <h4 class="modal-title">Share</h4> 7 <h4 i18n class="modal-title">Share</h4>
8 </div> 8 </div>
9 9
10 <div class="modal-body"> 10 <div class="modal-body">
11 <div class="form-group"> 11 <div class="form-group">
12 <label>URL</label> 12 <label i18n>URL</label>
13 <div class="input-group input-group-sm"> 13 <div class="input-group input-group-sm">
14 <input #urlInput (click)="urlInput.select()" type="text" class="form-control input-sm readonly" readonly [value]="getVideoUrl()" /> 14 <input #urlInput (click)="urlInput.select()" type="text" class="form-control input-sm readonly" readonly [value]="getVideoUrl()" />
15 <div class="input-group-btn" placement="bottom right"> 15 <div class="input-group-btn" placement="bottom right">
@@ -21,7 +21,7 @@
21 </div> 21 </div>
22 22
23 <div class="form-group"> 23 <div class="form-group">
24 <label>Embed</label> 24 <label i18n>Embed</label>
25 <div class="input-group input-group-sm"> 25 <div class="input-group input-group-sm">
26 <input #shareInput (click)="shareInput.select()" type="text" class="form-control input-sm readonly" readonly [value]="getVideoIframeCode()" /> 26 <input #shareInput (click)="shareInput.select()" type="text" class="form-control input-sm readonly" readonly [value]="getVideoIframeCode()" />
27 <div class="input-group-btn" placement="bottom right"> 27 <div class="input-group-btn" placement="bottom right">
@@ -32,12 +32,12 @@
32 </div> 32 </div>
33 </div> 33 </div>
34 34
35 <div *ngIf="notSecure()" class="alert alert-warning"> 35 <div i18n *ngIf="notSecure()" class="alert alert-warning">
36 The url is not secured (no HTTPS), so the embed video won't work on HTTPS websites (web browsers block non secured HTTP requests on HTTPS websites). 36 The url is not secured (no HTTPS), so the embed video won't work on HTTPS websites (web browsers block non secured HTTP requests on HTTPS websites).
37 </div> 37 </div>
38 38
39 <div class="form-group inputs"> 39 <div class="form-group inputs">
40 <span class="action-button action-button-cancel" (click)="hide()"> 40 <span i18n class="action-button action-button-cancel" (click)="hide()">
41 Cancel 41 Cancel
42 </span> 42 </span>
43 </div> 43 </div>
diff --git a/client/src/app/videos/+video-watch/modal/video-share.component.ts b/client/src/app/videos/+video-watch/modal/video-share.component.ts
index 33998c5d8..5c988a43b 100644
--- a/client/src/app/videos/+video-watch/modal/video-share.component.ts
+++ b/client/src/app/videos/+video-watch/modal/video-share.component.ts
@@ -5,6 +5,7 @@ import { NotificationsService } from 'angular2-notifications'
5import { ModalDirective } from 'ngx-bootstrap/modal' 5import { ModalDirective } from 'ngx-bootstrap/modal'
6import { VideoDetails } from '../../../shared/video/video-details.model' 6import { VideoDetails } from '../../../shared/video/video-details.model'
7import { buildVideoEmbed } from '../../../../assets/player/utils' 7import { buildVideoEmbed } from '../../../../assets/player/utils'
8import { I18n } from '@ngx-translate/i18n-polyfill'
8 9
9@Component({ 10@Component({
10 selector: 'my-video-share', 11 selector: 'my-video-share',
@@ -16,7 +17,10 @@ export class VideoShareComponent {
16 17
17 @ViewChild('modal') modal: ModalDirective 18 @ViewChild('modal') modal: ModalDirective
18 19
19 constructor (private notificationsService: NotificationsService) { 20 constructor (
21 private notificationsService: NotificationsService,
22 private i18n: I18n
23 ) {
20 // empty 24 // empty
21 } 25 }
22 26
@@ -41,6 +45,6 @@ export class VideoShareComponent {
41 } 45 }
42 46
43 activateCopiedMessage () { 47 activateCopiedMessage () {
44 this.notificationsService.success('Success', 'Copied') 48 this.notificationsService.success(this.i18n('Success'), this.i18n('Copied'))
45 } 49 }
46} 50}
diff --git a/client/src/app/videos/+video-watch/modal/video-support.component.html b/client/src/app/videos/+video-watch/modal/video-support.component.html
index 16ad9502a..9bcfcea47 100644
--- a/client/src/app/videos/+video-watch/modal/video-support.component.html
+++ b/client/src/app/videos/+video-watch/modal/video-support.component.html
@@ -4,7 +4,7 @@
4 4
5 <div class="modal-header"> 5 <div class="modal-header">
6 <span class="close" aria-hidden="true" (click)="hide()"></span> 6 <span class="close" aria-hidden="true" (click)="hide()"></span>
7 <h4 class="modal-title">Support</h4> 7 <h4 i18n class="modal-title">Support</h4>
8 </div> 8 </div>
9 9
10 <div class="modal-body"> 10 <div class="modal-body">
@@ -12,7 +12,7 @@
12 <div [innerHTML]="videoHTMLSupport"></div> 12 <div [innerHTML]="videoHTMLSupport"></div>
13 13
14 <div class="form-group inputs"> 14 <div class="form-group inputs">
15 <span class="action-button action-button-cancel" (click)="hide()"> 15 <span i18n class="action-button action-button-cancel" (click)="hide()">
16 Cancel 16 Cancel
17 </span> 17 </span>
18 </div> 18 </div>
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 03568b618..2fd82a940 100644
--- a/client/src/app/videos/video-list/video-local.component.ts
+++ b/client/src/app/videos/video-list/video-local.component.ts
@@ -27,8 +27,8 @@ export class VideoLocalComponent extends AbstractVideoList implements OnInit, On
27 protected notificationsService: NotificationsService, 27 protected notificationsService: NotificationsService,
28 protected authService: AuthService, 28 protected authService: AuthService,
29 protected location: Location, 29 protected location: Location,
30 private videoService: VideoService, 30 protected i18n: I18n,
31 private i18n: I18n 31 private videoService: VideoService
32 ) { 32 ) {
33 super() 33 super()
34 34
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 5768d9fe0..8183357f8 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
@@ -25,8 +25,8 @@ export class VideoRecentlyAddedComponent extends AbstractVideoList implements On
25 protected location: Location, 25 protected location: Location,
26 protected notificationsService: NotificationsService, 26 protected notificationsService: NotificationsService,
27 protected authService: AuthService, 27 protected authService: AuthService,
28 private videoService: VideoService, 28 protected i18n: I18n,
29 private i18n: I18n 29 private videoService: VideoService
30 ) { 30 ) {
31 super() 31 super()
32 32
diff --git a/client/src/app/videos/video-list/video-search.component.ts b/client/src/app/videos/video-list/video-search.component.ts
index 35566a7bd..b6434f347 100644
--- a/client/src/app/videos/video-list/video-search.component.ts
+++ b/client/src/app/videos/video-list/video-search.component.ts
@@ -31,9 +31,9 @@ export class VideoSearchComponent extends AbstractVideoList implements OnInit, O
31 protected notificationsService: NotificationsService, 31 protected notificationsService: NotificationsService,
32 protected authService: AuthService, 32 protected authService: AuthService,
33 protected location: Location, 33 protected location: Location,
34 protected i18n: I18n,
34 private videoService: VideoService, 35 private videoService: VideoService,
35 private redirectService: RedirectService, 36 private redirectService: RedirectService
36 private i18n: I18n
37 ) { 37 ) {
38 super() 38 super()
39 39
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 760470e8c..e56b749d1 100644
--- a/client/src/app/videos/video-list/video-trending.component.ts
+++ b/client/src/app/videos/video-list/video-trending.component.ts
@@ -25,8 +25,8 @@ export class VideoTrendingComponent extends AbstractVideoList implements OnInit,
25 protected notificationsService: NotificationsService, 25 protected notificationsService: NotificationsService,
26 protected authService: AuthService, 26 protected authService: AuthService,
27 protected location: Location, 27 protected location: Location,
28 private videoService: VideoService, 28 protected i18n: I18n,
29 private i18n: I18n 29 private videoService: VideoService
30 ) { 30 ) {
31 super() 31 super()
32 32
diff --git a/client/src/locale/source/messages_en_US.xml b/client/src/locale/source/messages_en_US.xml
index 6c355a97f..7a7db4cd9 100644
--- a/client/src/locale/source/messages_en_US.xml
+++ b/client/src/locale/source/messages_en_US.xml
@@ -2,7 +2,376 @@
2<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2"> 2<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
3 <file source-language="en-US" datatype="plaintext" original="ng2.template"> 3 <file source-language="en-US" datatype="plaintext" original="ng2.template">
4 <body> 4 <body>
5 <trans-unit id="298cb43759c99e11e2ca5f92c768a145ddaa323f" datatype="html"> 5 <trans-unit id="17a9d3860d9ad593dd09a9f934e03999d9e76a7a" datatype="html">
6 <source>
7 Cancel
8 </source>
9 <context-group purpose="location">
10 <context context-type="sourcefile">app/core/confirm/confirm.component.ts</context>
11 <context context-type="linenumber">19</context>
12 </context-group>
13 <context-group purpose="location">
14 <context context-type="sourcefile">app/login/login.component.ts</context>
15 <context context-type="linenumber">72</context>
16 </context-group>
17 <context-group purpose="location">
18 <context context-type="sourcefile">app/+my-account/my-account-videos/my-account-videos.component.ts</context>
19 <context context-type="linenumber">27</context>
20 </context-group>
21 <context-group purpose="location">
22 <context context-type="sourcefile">app/videos/+video-watch/modal/video-support.component.ts</context>
23 <context context-type="linenumber">15</context>
24 </context-group>
25 <context-group purpose="location">
26 <context context-type="sourcefile">app/videos/+video-watch/modal/video-download.component.ts</context>
27 <context context-type="linenumber">30</context>
28 </context-group>
29 <context-group purpose="location">
30 <context context-type="sourcefile">app/videos/+video-watch/modal/video-share.component.ts</context>
31 <context context-type="linenumber">40</context>
32 </context-group>
33 </trans-unit><trans-unit id="9d5f16f0233b39fa2cd843321407a7358c323ad8" datatype="html">
34 <source>&lt;x id="INTERPOLATION" equiv-text="{{ video.publishedAt | myFromNow }}"/&gt; - &lt;x id="INTERPOLATION_1" equiv-text="{{ video.views | myNumberFormatter }}"/&gt; views</source>
35 <context-group purpose="location">
36 <context context-type="sourcefile">app/shared/video/video-miniature.component.ts</context>
37 <context context-type="linenumber">12</context>
38 </context-group>
39 </trans-unit><trans-unit id="28f86ffd419b869711aa13f5e5ff54be6d70731c" datatype="html">
40 <source>Edit</source>
41 <context-group purpose="location">
42 <context context-type="sourcefile">app/shared/misc/edit-button.component.ts</context>
43 <context context-type="linenumber">3</context>
44 </context-group>
45 </trans-unit><trans-unit id="961a134583d6256df39fbc520d020ebc48e3128d" datatype="html">
46 <source>Truncated preview</source>
47 <context-group purpose="location">
48 <context context-type="sourcefile">app/shared/forms/markdown-textarea.component.ts</context>
49 <context context-type="linenumber">9</context>
50 </context-group>
51 </trans-unit><trans-unit id="f82f53a2544638939a8ba93c0fb1b0a4419c3196" datatype="html">
52 <source>Complete preview</source>
53 <context-group purpose="location">
54 <context context-type="sourcefile">app/shared/forms/markdown-textarea.component.ts</context>
55 <context context-type="linenumber">10</context>
56 </context-group>
57 </trans-unit><trans-unit id="9c71feb04c2beab559f79c41c6127815fb9c1a6f" datatype="html">
58 <source>Get help</source>
59 <context-group purpose="location">
60 <context context-type="sourcefile">app/shared/misc/help.component.ts</context>
61 <context context-type="linenumber">17</context>
62 </context-group>
63 </trans-unit><trans-unit id="12910217fdcdbca64bee06f511639b653d5428ea" datatype="html">
64 <source>
65 Login
66 </source>
67 <context-group purpose="location">
68 <context context-type="sourcefile">app/login/login.component.ts</context>
69 <context context-type="linenumber">2</context>
70 </context-group>
71 </trans-unit><trans-unit id="e08a77594f3d89311cdf6da5090044270909c194" datatype="html">
72 <source>User</source>
73 <context-group purpose="location">
74 <context context-type="sourcefile">app/login/login.component.ts</context>
75 <context context-type="linenumber">11</context>
76 </context-group>
77 </trans-unit><trans-unit id="51ef29329faccb28d94369897068897d1b3d0478" datatype="html">
78 <source>Username or email address</source>
79 <context-group purpose="location">
80 <context context-type="sourcefile">app/login/login.component.ts</context>
81 <context context-type="linenumber">13</context>
82 </context-group>
83 </trans-unit><trans-unit id="02c4360c2d956e74ed6bb1f71e86812af0e19b87" datatype="html">
84 <source>
85 or create an account
86 </source>
87 <context-group purpose="location">
88 <context context-type="sourcefile">app/login/login.component.ts</context>
89 <context context-type="linenumber">16</context>
90 </context-group>
91 </trans-unit><trans-unit id="d6290381021b16febc426d3e3a52dda83991ce0b" datatype="html">
92 <source>
93 or create an account on another instance
94 </source>
95 <context-group purpose="location">
96 <context context-type="sourcefile">app/login/login.component.ts</context>
97 <context context-type="linenumber">20</context>
98 </context-group>
99 </trans-unit><trans-unit id="76e1f485e6ead4c84b606f46d413878881d66ad3" datatype="html">
100 <source>User registration is not allowed on this instance, but you can register on many others!</source>
101 <context-group purpose="location">
102 <context context-type="sourcefile">app/login/login.component.ts</context>
103 <context context-type="linenumber">26</context>
104 </context-group>
105 </trans-unit><trans-unit id="c32ef07f8803a223a83ed17024b38e8d82292407" datatype="html">
106 <source>Password</source>
107 <context-group purpose="location">
108 <context context-type="sourcefile">app/login/login.component.ts</context>
109 <context context-type="linenumber">36</context>
110 </context-group>
111 <context-group purpose="location">
112 <context context-type="sourcefile">app/login/login.component.ts</context>
113 <context context-type="linenumber">39</context>
114 </context-group>
115 <context-group purpose="location">
116 <context context-type="sourcefile">app/reset-password/reset-password.component.ts</context>
117 <context context-type="linenumber">8</context>
118 </context-group>
119 <context-group purpose="location">
120 <context context-type="sourcefile">app/reset-password/reset-password.component.ts</context>
121 <context context-type="linenumber">10</context>
122 </context-group>
123 <context-group purpose="location">
124 <context context-type="sourcefile">app/signup/signup.component.ts</context>
125 <context context-type="linenumber">47</context>
126 </context-group>
127 <context-group purpose="location">
128 <context context-type="sourcefile">app/signup/signup.component.ts</context>
129 <context context-type="linenumber">49</context>
130 </context-group>
131 <context-group purpose="location">
132 <context context-type="sourcefile">app/+admin/users/user-edit/user-create.component.ts</context>
133 <context context-type="linenumber">30</context>
134 </context-group>
135 <context-group purpose="location">
136 <context context-type="sourcefile">app/+admin/users/user-edit/user-update.component.ts</context>
137 <context context-type="linenumber">30</context>
138 </context-group>
139 <context-group purpose="location">
140 <context context-type="sourcefile">app/+my-account/my-account-settings/my-account-settings.component.ts</context>
141 <context context-type="linenumber">28</context>
142 </context-group>
143 </trans-unit><trans-unit id="b87e81682959464211443afc3e23c506865d2eda" datatype="html">
144 <source>I forgot my password</source>
145 <context-group purpose="location">
146 <context context-type="sourcefile">app/login/login.component.ts</context>
147 <context context-type="linenumber">42</context>
148 </context-group>
149 </trans-unit><trans-unit id="d2eb6c5d41f70d4b8c0937e7e19e196143b47681" datatype="html">
150 <source>Forgot your password</source>
151 <context-group purpose="location">
152 <context context-type="sourcefile">app/login/login.component.ts</context>
153 <context context-type="linenumber">59</context>
154 </context-group>
155 </trans-unit><trans-unit id="244aae9346da82b0922506c2d2581373a15641cc" datatype="html">
156 <source>Email</source>
157 <context-group purpose="location">
158 <context context-type="sourcefile">app/login/login.component.ts</context>
159 <context context-type="linenumber">64</context>
160 </context-group>
161 <context-group purpose="location">
162 <context context-type="sourcefile">app/signup/signup.component.ts</context>
163 <context context-type="linenumber">36</context>
164 </context-group>
165 <context-group purpose="location">
166 <context context-type="sourcefile">app/signup/signup.component.ts</context>
167 <context context-type="linenumber">38</context>
168 </context-group>
169 <context-group purpose="location">
170 <context context-type="sourcefile">app/+admin/users/user-edit/user-create.component.ts</context>
171 <context context-type="linenumber">19</context>
172 </context-group>
173 <context-group purpose="location">
174 <context context-type="sourcefile">app/+admin/users/user-edit/user-update.component.ts</context>
175 <context context-type="linenumber">19</context>
176 </context-group>
177 <context-group purpose="location">
178 <context context-type="sourcefile">app/+admin/users/user-list/user-list.component.ts</context>
179 <context context-type="linenumber">17</context>
180 </context-group>
181 </trans-unit><trans-unit id="69b6ac577a19acc39fc0c22342092f327fff2529" datatype="html">
182 <source>Email address</source>
183 <context-group purpose="location">
184 <context context-type="sourcefile">app/login/login.component.ts</context>
185 <context context-type="linenumber">66</context>
186 </context-group>
187 </trans-unit><trans-unit id="78be69e4d26b3b654c49962839d8545e61bf8b55" datatype="html">
188 <source>Send me an email to reset my password</source>
189 <context-group purpose="location">
190 <context context-type="sourcefile">app/login/login.component.ts</context>
191 <context context-type="linenumber">77</context>
192 </context-group>
193 </trans-unit><trans-unit id="2ba14c37f3b23553b2602c5e535d0ff4916f24aa" datatype="html">
194 <source>
195 Reset my password
196 </source>
197 <context-group purpose="location">
198 <context context-type="sourcefile">app/reset-password/reset-password.component.ts</context>
199 <context context-type="linenumber">2</context>
200 </context-group>
201 </trans-unit><trans-unit id="7f3bdcce4b2e8c37cd7f0f6c92ef8cff34b039b8" datatype="html">
202 <source>Confirm password</source>
203 <context-group purpose="location">
204 <context context-type="sourcefile">app/reset-password/reset-password.component.ts</context>
205 <context context-type="linenumber">19</context>
206 </context-group>
207 </trans-unit><trans-unit id="3652e5c6e33165264d5271d06cc04ab7123b6df1" datatype="html">
208 <source>Confirmed password</source>
209 <context-group purpose="location">
210 <context context-type="sourcefile">app/reset-password/reset-password.component.ts</context>
211 <context context-type="linenumber">21</context>
212 </context-group>
213 </trans-unit><trans-unit id="8bdf8db5eeeaef83184b489b80c1557b516fb3c3" datatype="html">
214 <source>Reset my password</source>
215 <context-group purpose="location">
216 <context context-type="sourcefile">app/reset-password/reset-password.component.ts</context>
217 <context context-type="linenumber">29</context>
218 </context-group>
219 </trans-unit><trans-unit id="4499806949402133d08a5029cb5462c5ea25336d" datatype="html">
220 <source>
221 Create an account
222 </source>
223 <context-group purpose="location">
224 <context context-type="sourcefile">app/signup/signup.component.ts</context>
225 <context context-type="linenumber">3</context>
226 </context-group>
227 </trans-unit><trans-unit id="a6807b834e01ce165aa61fad157b0ff4288b6bf1" datatype="html">
228 <source>Initial video quota:</source>
229 <context-group purpose="location">
230 <context context-type="sourcefile">app/signup/signup.component.ts</context>
231 <context context-type="linenumber">8</context>
232 </context-group>
233 </trans-unit><trans-unit id="87b6b2c26215c5e712d3bfe4cc86ba53bc23451c" datatype="html">
234 <source>
235 Unlimited
236 </source>
237 <context-group purpose="location">
238 <context context-type="sourcefile">app/signup/signup.component.ts</context>
239 <context context-type="linenumber">16</context>
240 </context-group>
241 </trans-unit><trans-unit id="08c74dc9762957593b91f6eb5d65efdfc975bf48" datatype="html">
242 <source>Username</source>
243 <context-group purpose="location">
244 <context context-type="sourcefile">app/signup/signup.component.ts</context>
245 <context context-type="linenumber">25</context>
246 </context-group>
247 <context-group purpose="location">
248 <context context-type="sourcefile">app/signup/signup.component.ts</context>
249 <context context-type="linenumber">27</context>
250 </context-group>
251 <context-group purpose="location">
252 <context context-type="sourcefile">app/+admin/users/user-edit/user-create.component.ts</context>
253 <context context-type="linenumber">8</context>
254 </context-group>
255 <context-group purpose="location">
256 <context context-type="sourcefile">app/+admin/users/user-edit/user-update.component.ts</context>
257 <context context-type="linenumber">8</context>
258 </context-group>
259 </trans-unit><trans-unit id="717a5e3574fec754fbeb348c2d5561c4d81facc4" datatype="html">
260 <source>Signup</source>
261 <context-group purpose="location">
262 <context context-type="sourcefile">app/signup/signup.component.ts</context>
263 <context context-type="linenumber">57</context>
264 </context-group>
265 <context-group purpose="location">
266 <context context-type="sourcefile">app/about/about.component.ts</context>
267 <context context-type="linenumber">23</context>
268 </context-group>
269 <context-group purpose="location">
270 <context context-type="sourcefile">app/+admin/config/edit-custom-config/edit-custom-config.component.ts</context>
271 <context context-type="linenumber">86</context>
272 </context-group>
273 </trans-unit><trans-unit id="b244b11c7b831849f726d9c296c7bc521289da0d" datatype="html">
274 <source>
275 Welcome to the &lt;x id="INTERPOLATION" equiv-text="{{ instanceName }}"/&gt; instance
276 </source>
277 <context-group purpose="location">
278 <context context-type="sourcefile">app/about/about.component.ts</context>
279 <context context-type="linenumber">2</context>
280 </context-group>
281 </trans-unit><trans-unit id="eec715de352a6b114713b30b640d319fa78207a0" datatype="html">
282 <source>Description</source>
283 <context-group purpose="location">
284 <context context-type="sourcefile">app/about/about.component.ts</context>
285 <context context-type="linenumber">11</context>
286 </context-group>
287 <context-group purpose="location">
288 <context context-type="sourcefile">app/+accounts/account-about/account-about.component.ts</context>
289 <context context-type="linenumber">3</context>
290 </context-group>
291 <context-group purpose="location">
292 <context context-type="sourcefile">app/+admin/config/edit-custom-config/edit-custom-config.component.ts</context>
293 <context context-type="linenumber">32</context>
294 </context-group>
295 <context-group purpose="location">
296 <context context-type="sourcefile">app/+admin/video-blacklist/video-blacklist-list/video-blacklist-list.component.ts</context>
297 <context context-type="linenumber">12</context>
298 </context-group>
299 <context-group purpose="location">
300 <context context-type="sourcefile">app/+my-account/my-account-video-channels/my-account-video-channel-create.component.ts</context>
301 <context context-type="linenumber">19</context>
302 </context-group>
303 <context-group purpose="location">
304 <context context-type="sourcefile">app/+my-account/my-account-video-channels/my-account-video-channel-update.component.ts</context>
305 <context context-type="linenumber">19</context>
306 </context-group>
307 <context-group purpose="location">
308 <context context-type="sourcefile">app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.ts</context>
309 <context context-type="linenumber">14</context>
310 </context-group>
311 <context-group purpose="location">
312 <context context-type="sourcefile">app/+video-channels/video-channel-about/video-channel-about.component.ts</context>
313 <context context-type="linenumber">4</context>
314 </context-group>
315 <context-group purpose="location">
316 <context context-type="sourcefile">app/videos/+video-edit/shared/video-edit.component.ts</context>
317 <context context-type="linenumber">23</context>
318 </context-group>
319 </trans-unit><trans-unit id="69580f2c2dbf4edf7096820ba8c393367352d774" datatype="html">
320 <source>Terms</source>
321 <context-group purpose="location">
322 <context context-type="sourcefile">app/about/about.component.ts</context>
323 <context context-type="linenumber">17</context>
324 </context-group>
325 <context-group purpose="location">
326 <context context-type="sourcefile">app/+admin/config/edit-custom-config/edit-custom-config.component.ts</context>
327 <context context-type="linenumber">43</context>
328 </context-group>
329 </trans-unit><trans-unit id="9c6e6db693ab265457c6578df179c65694141d27" datatype="html">
330 <source>User registration is allowed and</source>
331 <context-group purpose="location">
332 <context context-type="sourcefile">app/about/about.component.ts</context>
333 <context context-type="linenumber">26</context>
334 </context-group>
335 </trans-unit><trans-unit id="3e95271e48614f5ac9e6444ea3b04e9de778ec4c" datatype="html">
336 <source>
337 this instance provides a baseline quota of &lt;x id="INTERPOLATION" equiv-text="{{ userVideoQuota | bytes: 0 }}"/&gt; space for the videos of its users.
338 </source>
339 <context-group purpose="location">
340 <context context-type="sourcefile">app/about/about.component.ts</context>
341 <context context-type="linenumber">28</context>
342 </context-group>
343 </trans-unit><trans-unit id="6c497bd25bf8829521526deb51322b381146576a" datatype="html">
344 <source>
345 this instance provides unlimited space for the videos of its users.
346 </source>
347 <context-group purpose="location">
348 <context context-type="sourcefile">app/about/about.component.ts</context>
349 <context context-type="linenumber">32</context>
350 </context-group>
351 </trans-unit><trans-unit id="b209efa206b87af23b39497ba45fe45391541336" datatype="html">
352 <source>
353 User registration is currently not allowed.
354 </source>
355 <context-group purpose="location">
356 <context context-type="sourcefile">app/about/about.component.ts</context>
357 <context context-type="linenumber">37</context>
358 </context-group>
359 </trans-unit><trans-unit id="c02493cfa08b82c468233b83069b5baff23890e1" datatype="html">
360 <source>P2P &amp; Privacy</source>
361 <context-group purpose="location">
362 <context context-type="sourcefile">app/about/about.component.ts</context>
363 <context context-type="linenumber">43</context>
364 </context-group>
365 </trans-unit><trans-unit id="9a45f58e4a91f090034b12d70dad90c54a3baf5b" datatype="html">
366 <source>
367 PeerTube uses the BitTorrent protocol to share bandwidth between users. It implies that your public IP address is stored in the public BitTorrent tracker of the video PeerTube instance as long as you&apos;re watching the video.
368 If you want to keep your public IP address private, please use a VPN or Tor.
369 </source>
370 <context-group purpose="location">
371 <context context-type="sourcefile">app/about/about.component.ts</context>
372 <context context-type="linenumber">45</context>
373 </context-group>
374 </trans-unit><trans-unit id="298cb43759c99e11e2ca5f92c768a145ddaa323f" datatype="html">
6 <source> 375 <source>
7 My public profile 376 My public profile
8 </source> 377 </source>
@@ -10,6 +379,1207 @@
10 <context context-type="sourcefile">app/menu/menu.component.ts</context> 379 <context context-type="sourcefile">app/menu/menu.component.ts</context>
11 <context context-type="linenumber">17</context> 380 <context context-type="linenumber">17</context>
12 </context-group> 381 </context-group>
382 </trans-unit><trans-unit id="eee05612e26cfe9527f08c6e74df7dfd84880ae9" datatype="html">
383 <source>
384 My settings
385 </source>
386 <context-group purpose="location">
387 <context context-type="sourcefile">app/menu/menu.component.ts</context>
388 <context context-type="linenumber">21</context>
389 </context-group>
390 </trans-unit><trans-unit id="6326f9ce2365bfe97668c4aa146fbbb762497c1a" datatype="html">
391 <source>
392 Log out
393 </source>
394 <context-group purpose="location">
395 <context context-type="sourcefile">app/menu/menu.component.ts</context>
396 <context context-type="linenumber">25</context>
397 </context-group>
398 </trans-unit><trans-unit id="6765b4c916060f6bc42d9bb69e80377dbcb5e4e9" datatype="html">
399 <source>Login</source>
400 <context-group purpose="location">
401 <context context-type="sourcefile">app/menu/menu.component.ts</context>
402 <context context-type="linenumber">34</context>
403 </context-group>
404 </trans-unit><trans-unit id="d207cc1965ec0c29e594e0e9917f39bfc276ed87" datatype="html">
405 <source>Create an account</source>
406 <context-group purpose="location">
407 <context context-type="sourcefile">app/menu/menu.component.ts</context>
408 <context context-type="linenumber">35</context>
409 </context-group>
410 </trans-unit><trans-unit id="a52dae09be10ca3a65da918533ced3d3f4992238" datatype="html">
411 <source>Videos</source>
412 <context-group purpose="location">
413 <context context-type="sourcefile">app/menu/menu.component.ts</context>
414 <context context-type="linenumber">39</context>
415 </context-group>
416 <context-group purpose="location">
417 <context context-type="sourcefile">app/+accounts/accounts.component.ts</context>
418 <context context-type="linenumber">17</context>
419 </context-group>
420 <context-group purpose="location">
421 <context context-type="sourcefile">app/+video-channels/video-channels.component.ts</context>
422 <context context-type="linenumber">21</context>
423 </context-group>
424 </trans-unit><trans-unit id="b6b7986bc3721ac483baf20bc9a320529075c807" datatype="html">
425 <source>Trending</source>
426 <context-group purpose="location">
427 <context context-type="sourcefile">app/menu/menu.component.ts</context>
428 <context context-type="linenumber">43</context>
429 </context-group>
430 </trans-unit><trans-unit id="8d20c5f5dd30acbe71316544dab774393fd9c3c1" datatype="html">
431 <source>Recently added</source>
432 <context-group purpose="location">
433 <context context-type="sourcefile">app/menu/menu.component.ts</context>
434 <context context-type="linenumber">48</context>
435 </context-group>
436 </trans-unit><trans-unit id="eadc17c3df80143992e2d9028dead3199ae6d79d" datatype="html">
437 <source>Local</source>
438 <context-group purpose="location">
439 <context context-type="sourcefile">app/menu/menu.component.ts</context>
440 <context context-type="linenumber">53</context>
441 </context-group>
442 </trans-unit><trans-unit id="b7648e7aced164498aa843b5c4e8f2f1c36a7919" datatype="html">
443 <source>Administration</source>
444 <context-group purpose="location">
445 <context context-type="sourcefile">app/menu/menu.component.ts</context>
446 <context context-type="linenumber">62</context>
447 </context-group>
448 </trans-unit><trans-unit id="004b222ff9ef9dd4771b777950ca1d0e4cd4348a" datatype="html">
449 <source>About</source>
450 <context-group purpose="location">
451 <context context-type="sourcefile">app/menu/menu.component.ts</context>
452 <context context-type="linenumber">67</context>
453 </context-group>
454 <context-group purpose="location">
455 <context context-type="sourcefile">app/+accounts/accounts.component.ts</context>
456 <context context-type="linenumber">21</context>
457 </context-group>
458 <context-group purpose="location">
459 <context context-type="sourcefile">app/+video-channels/video-channels.component.ts</context>
460 <context context-type="linenumber">23</context>
461 </context-group>
462 </trans-unit><trans-unit id="8aa58cf00d949c509df91c621ab38131df0a7599" datatype="html">
463 <source>Search...</source>
464 <context-group purpose="location">
465 <context context-type="sourcefile">app/header/header.component.ts</context>
466 <context context-type="linenumber">2</context>
467 </context-group>
468 </trans-unit><trans-unit id="4b3972c3e9485218508a95f7a4ce7758e3f09ced" datatype="html">
469 <source>Upload</source>
470 <context-group purpose="location">
471 <context context-type="sourcefile">app/header/header.component.ts</context>
472 <context context-type="linenumber">9</context>
473 </context-group>
474 </trans-unit><trans-unit id="c31161d1661884f54fbc5635aad5ce8d4803897e" datatype="html">
475 <source>No results.</source>
476 <context-group purpose="location">
477 <context context-type="sourcefile">app/videos/video-list/video-trending.component.ts</context>
478 <context context-type="linenumber">7</context>
479 </context-group>
480 <context-group purpose="location">
481 <context context-type="sourcefile">app/videos/video-list/video-recently-added.component.ts</context>
482 <context context-type="linenumber">7</context>
483 </context-group>
484 <context-group purpose="location">
485 <context context-type="sourcefile">app/videos/video-list/video-local.component.ts</context>
486 <context context-type="linenumber">7</context>
487 </context-group>
488 <context-group purpose="location">
489 <context context-type="sourcefile">app/videos/video-list/video-search.component.ts</context>
490 <context context-type="linenumber">7</context>
491 </context-group>
492 <context-group purpose="location">
493 <context context-type="sourcefile">app/+accounts/account-videos/account-videos.component.ts</context>
494 <context context-type="linenumber">7</context>
495 </context-group>
496 <context-group purpose="location">
497 <context context-type="sourcefile">app/+my-account/my-account-videos/my-account-videos.component.ts</context>
498 <context context-type="linenumber">1</context>
499 </context-group>
500 <context-group purpose="location">
501 <context context-type="sourcefile">app/+video-channels/video-channel-videos/video-channel-videos.component.ts</context>
502 <context context-type="linenumber">7</context>
503 </context-group>
504 </trans-unit><trans-unit id="a835d8a12e14eb96919245a0bbafd8069c146578" datatype="html">
505 <source>&lt;x id="INTERPOLATION" equiv-text="{{ account.followersCount }}"/&gt; subscribers</source>
506 <context-group purpose="location">
507 <context context-type="sourcefile">app/+accounts/accounts.component.ts</context>
508 <context context-type="linenumber">12</context>
509 </context-group>
510 </trans-unit><trans-unit id="6f5a458f827503ac7b8697688ecf3e0490818ee8" datatype="html">
511 <source>Video channels</source>
512 <context-group purpose="location">
513 <context context-type="sourcefile">app/+accounts/accounts.component.ts</context>
514 <context context-type="linenumber">19</context>
515 </context-group>
516 </trans-unit><trans-unit id="299f97b8ee9c62d45f2cc01961aa1e5101d6d05a" datatype="html">
517 <source>Stats</source>
518 <context-group purpose="location">
519 <context context-type="sourcefile">app/+accounts/account-about/account-about.component.ts</context>
520 <context context-type="linenumber">8</context>
521 </context-group>
522 <context-group purpose="location">
523 <context context-type="sourcefile">app/+video-channels/video-channel-about/video-channel-about.component.ts</context>
524 <context context-type="linenumber">16</context>
525 </context-group>
526 </trans-unit><trans-unit id="8bc634cd9d8c9b684dbfaaf17a522f894bedbffc" datatype="html">
527 <source>Joined &lt;x id="INTERPOLATION" equiv-text="{{ account.createdAt | date }}"/&gt;</source>
528 <context-group purpose="location">
529 <context context-type="sourcefile">app/+accounts/account-about/account-about.component.ts</context>
530 <context context-type="linenumber">10</context>
531 </context-group>
532 </trans-unit><trans-unit id="8fef247fd0c5bf790151f7661cafc4b7fd0397f3" datatype="html">
533 <source>&lt;x id="INTERPOLATION" equiv-text="{{ videoChannel.followersCount }}"/&gt; subscribers</source>
534 <context-group purpose="location">
535 <context context-type="sourcefile">app/+accounts/account-video-channels/account-video-channels.component.ts</context>
536 <context context-type="linenumber">9</context>
537 </context-group>
538 <context-group purpose="location">
539 <context context-type="sourcefile">app/+my-account/my-account-video-channels/my-account-video-channels.component.ts</context>
540 <context context-type="linenumber">21</context>
541 </context-group>
542 <context-group purpose="location">
543 <context context-type="sourcefile">app/+video-channels/video-channels.component.ts</context>
544 <context context-type="linenumber">11</context>
545 </context-group>
546 </trans-unit><trans-unit id="f36bd6a1570cb9b0a5023870f35160957cad2a8f" datatype="html">
547 <source>See this video channel</source>
548 <context-group purpose="location">
549 <context context-type="sourcefile">app/+accounts/account-video-channels/account-video-channels.component.ts</context>
550 <context context-type="linenumber">4</context>
551 </context-group>
552 </trans-unit><trans-unit id="ff78f059449d44322f627d0f66df07abe476962b" datatype="html">
553 <source>Instance</source>
554 <context-group purpose="location">
555 <context context-type="sourcefile">app/+admin/config/edit-custom-config/edit-custom-config.component.ts</context>
556 <context context-type="linenumber">7</context>
557 </context-group>
558 </trans-unit><trans-unit id="cff1428d10d59d14e45edec3c735a27b5482db59" datatype="html">
559 <source>Name</source>
560 <context-group purpose="location">
561 <context context-type="sourcefile">app/+admin/config/edit-custom-config/edit-custom-config.component.ts</context>
562 <context context-type="linenumber">10</context>
563 </context-group>
564 <context-group purpose="location">
565 <context context-type="sourcefile">app/+admin/follows/followers-list/followers-list.component.ts</context>
566 <context context-type="linenumber">9</context>
567 </context-group>
568 </trans-unit><trans-unit id="512b045163a7187b2fc5d554e5f59fb3e49e174b" datatype="html">
569 <source>Short description</source>
570 <context-group purpose="location">
571 <context context-type="sourcefile">app/+admin/config/edit-custom-config/edit-custom-config.component.ts</context>
572 <context context-type="linenumber">21</context>
573 </context-group>
574 </trans-unit><trans-unit id="554488d11165f38b27b8fe230aba8a2e30d57003" datatype="html">
575 <source>Default client route</source>
576 <context-group purpose="location">
577 <context context-type="sourcefile">app/+admin/config/edit-custom-config/edit-custom-config.component.ts</context>
578 <context context-type="linenumber">54</context>
579 </context-group>
580 </trans-unit><trans-unit id="1cbeb1eb589bfbe5efce94184cacd3095ca26948" datatype="html">
581 <source>Videos Trending</source>
582 <context-group purpose="location">
583 <context context-type="sourcefile">app/+admin/config/edit-custom-config/edit-custom-config.component.ts</context>
584 <context context-type="linenumber">57</context>
585 </context-group>
586 </trans-unit><trans-unit id="1861c96217213992e02dcb77e15ea69e718c9883" datatype="html">
587 <source>Videos Recently Added</source>
588 <context-group purpose="location">
589 <context context-type="sourcefile">app/+admin/config/edit-custom-config/edit-custom-config.component.ts</context>
590 <context context-type="linenumber">58</context>
591 </context-group>
592 </trans-unit><trans-unit id="b6307f83d9f43bff8d5129a7888e89964ddc3f7f" datatype="html">
593 <source>Local videos</source>
594 <context-group purpose="location">
595 <context context-type="sourcefile">app/+admin/config/edit-custom-config/edit-custom-config.component.ts</context>
596 <context context-type="linenumber">59</context>
597 </context-group>
598 </trans-unit><trans-unit id="8551afadb69b3fef89e191f507e8ac84e624e8b9" datatype="html">
599 <source>Policy on videos containing sensitive content</source>
600 <context-group purpose="location">
601 <context context-type="sourcefile">app/+admin/config/edit-custom-config/edit-custom-config.component.ts</context>
602 <context context-type="linenumber">68</context>
603 </context-group>
604 </trans-unit><trans-unit id="aa3ef567a1ea22c1e4d0acfdc8f80bc636bf12df" datatype="html">
605 <source>With &lt;strong&gt;Do not list&lt;/strong&gt; or &lt;strong&gt;Blur thumbnails&lt;/strong&gt;, a confirmation will be requested to watch the video.</source>
606 <context-group purpose="location">
607 <context context-type="sourcefile">app/+admin/config/edit-custom-config/edit-custom-config.component.ts</context>
608 <context context-type="linenumber">71</context>
609 </context-group>
610 <context-group purpose="location">
611 <context context-type="sourcefile">app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.ts</context>
612 <context context-type="linenumber">6</context>
613 </context-group>
614 </trans-unit><trans-unit id="5e155c34fb3ed8159bf0a486a366cfbc6874f9fe" datatype="html">
615 <source>Do not list</source>
616 <context-group purpose="location">
617 <context context-type="sourcefile">app/+admin/config/edit-custom-config/edit-custom-config.component.ts</context>
618 <context context-type="linenumber">76</context>
619 </context-group>
620 <context-group purpose="location">
621 <context context-type="sourcefile">app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.ts</context>
622 <context context-type="linenumber">11</context>
623 </context-group>
624 </trans-unit><trans-unit id="aaa900149c2ca1575ac1918d1ded33fb69830ab2" datatype="html">
625 <source>Blur thumbnails</source>
626 <context-group purpose="location">
627 <context context-type="sourcefile">app/+admin/config/edit-custom-config/edit-custom-config.component.ts</context>
628 <context context-type="linenumber">77</context>
629 </context-group>
630 <context-group purpose="location">
631 <context context-type="sourcefile">app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.ts</context>
632 <context context-type="linenumber">12</context>
633 </context-group>
634 </trans-unit><trans-unit id="010d24ef3c43b2d8f45a4d6cba7d73e12ee1557e" datatype="html">
635 <source>Display</source>
636 <context-group purpose="location">
637 <context context-type="sourcefile">app/+admin/config/edit-custom-config/edit-custom-config.component.ts</context>
638 <context context-type="linenumber">78</context>
639 </context-group>
640 <context-group purpose="location">
641 <context context-type="sourcefile">app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.ts</context>
642 <context context-type="linenumber">13</context>
643 </context-group>
644 </trans-unit><trans-unit id="ca53e66e68986546b7ef820c934145fd7c9c4247" datatype="html">
645 <source>Signup enabled</source>
646 <context-group purpose="location">
647 <context context-type="sourcefile">app/+admin/config/edit-custom-config/edit-custom-config.component.ts</context>
648 <context context-type="linenumber">92</context>
649 </context-group>
650 </trans-unit><trans-unit id="68bda70e0dd4f7f91549462e55f1b2a1602d8402" datatype="html">
651 <source>Signup limit</source>
652 <context-group purpose="location">
653 <context context-type="sourcefile">app/+admin/config/edit-custom-config/edit-custom-config.component.ts</context>
654 <context context-type="linenumber">96</context>
655 </context-group>
656 </trans-unit><trans-unit id="ca2283fc765b9f44b69f0175d685dc2443da6011" datatype="html">
657 <source>Administrator</source>
658 <context-group purpose="location">
659 <context context-type="sourcefile">app/+admin/config/edit-custom-config/edit-custom-config.component.ts</context>
660 <context context-type="linenumber">106</context>
661 </context-group>
662 </trans-unit><trans-unit id="55a0f51e38679d3141841e8333da5779d349c587" datatype="html">
663 <source>Admin email</source>
664 <context-group purpose="location">
665 <context context-type="sourcefile">app/+admin/config/edit-custom-config/edit-custom-config.component.ts</context>
666 <context context-type="linenumber">109</context>
667 </context-group>
668 </trans-unit><trans-unit id="4d13a9cd5ed3dcee0eab22cb25198d43886942be" datatype="html">
669 <source>Users</source>
670 <context-group purpose="location">
671 <context context-type="sourcefile">app/+admin/config/edit-custom-config/edit-custom-config.component.ts</context>
672 <context context-type="linenumber">119</context>
673 </context-group>
674 </trans-unit><trans-unit id="31b3275d999af45fe64c6824e6e017d2e2704f09" datatype="html">
675 <source>User default video quota</source>
676 <context-group purpose="location">
677 <context context-type="sourcefile">app/+admin/config/edit-custom-config/edit-custom-config.component.ts</context>
678 <context context-type="linenumber">122</context>
679 </context-group>
680 </trans-unit><trans-unit id="99cb827741e93125476a0f5b676372d85d15b5fc" datatype="html">
681 <source>Twitter</source>
682 <context-group purpose="location">
683 <context context-type="sourcefile">app/+admin/config/edit-custom-config/edit-custom-config.component.ts</context>
684 <context context-type="linenumber">138</context>
685 </context-group>
686 </trans-unit><trans-unit id="7fdb41bbf2ee042ec5f68725a1c16a1c97f3e524" datatype="html">
687 <source>Your Twitter username</source>
688 <context-group purpose="location">
689 <context context-type="sourcefile">app/+admin/config/edit-custom-config/edit-custom-config.component.ts</context>
690 <context context-type="linenumber">141</context>
691 </context-group>
692 </trans-unit><trans-unit id="6e671e839ca889feef0d8ed525d1a44b4b10870c" datatype="html">
693 <source>Indicates the Twitter account for the website or platform on which the content was published.</source>
694 <context-group purpose="location">
695 <context context-type="sourcefile">app/+admin/config/edit-custom-config/edit-custom-config.component.ts</context>
696 <context context-type="linenumber">144</context>
697 </context-group>
698 </trans-unit><trans-unit id="c0716c28b9d4c9e0b2fd6031334394214e5f9605" datatype="html">
699 <source>Instance whitelisted by Twitter</source>
700 <context-group purpose="location">
701 <context context-type="sourcefile">app/+admin/config/edit-custom-config/edit-custom-config.component.ts</context>
702 <context context-type="linenumber">159</context>
703 </context-group>
704 </trans-unit><trans-unit id="3f008a1a07ca42c6ad258fde1bbd80ed74ada19b" datatype="html">
705 <source>If your instance is whitelisted by Twitter, a video player will be embedded in the Twitter feed on PeerTube video share.&lt;br /&gt;
706If the instance is not whitelisted, we use an image link card that will redirect on your PeerTube instance.&lt;br /&gt;&lt;br /&gt;
707Check this checkbox, save the configuration and test with a video URL of your instance (https://example.com/videos/watch/blabla) on &lt;a target=&apos;_blank&apos; rel=&apos;noopener noreferrer&apos; href=&apos;https://cards-dev.twitter.com/validator&apos;&gt;https://cards-dev.twitter.com/validator&lt;/a&gt; to see if you instance is whitelisted.</source>
708 <context-group purpose="location">
709 <context context-type="sourcefile">app/+admin/config/edit-custom-config/edit-custom-config.component.ts</context>
710 <context context-type="linenumber">162</context>
711 </context-group>
712 </trans-unit><trans-unit id="fe22d2c0020e913ee4b75ec22a3abc8814810490" datatype="html">
713 <source>Transcoding</source>
714 <context-group purpose="location">
715 <context context-type="sourcefile">app/+admin/config/edit-custom-config/edit-custom-config.component.ts</context>
716 <context context-type="linenumber">172</context>
717 </context-group>
718 </trans-unit><trans-unit id="fca29003c4ea1226ff8cbee89481758aab0e2be9" datatype="html">
719 <source>Transcoding enabled</source>
720 <context-group purpose="location">
721 <context context-type="sourcefile">app/+admin/config/edit-custom-config/edit-custom-config.component.ts</context>
722 <context context-type="linenumber">178</context>
723 </context-group>
724 </trans-unit><trans-unit id="a33feadefbb776217c2db96100736314f8b765c2" datatype="html">
725 <source>Transcoding threads</source>
726 <context-group purpose="location">
727 <context context-type="sourcefile">app/+admin/config/edit-custom-config/edit-custom-config.component.ts</context>
728 <context context-type="linenumber">184</context>
729 </context-group>
730 </trans-unit><trans-unit id="6aff7f4b4f140702c4ce791cc9990932623862f0" datatype="html">
731 <source>Resolution &lt;x id="INTERPOLATION" equiv-text="{{ resolution }}"/&gt; enabled</source>
732 <context-group purpose="location">
733 <context context-type="sourcefile">app/+admin/config/edit-custom-config/edit-custom-config.component.ts</context>
734 <context context-type="linenumber">203</context>
735 </context-group>
736 </trans-unit><trans-unit id="1fa92c6ce274f878b2625587daa7e08b2a3a8b38" datatype="html">
737 <source>Cache</source>
738 <context-group purpose="location">
739 <context context-type="sourcefile">app/+admin/config/edit-custom-config/edit-custom-config.component.ts</context>
740 <context context-type="linenumber">207</context>
741 </context-group>
742 </trans-unit><trans-unit id="48c189b718ed2d091e5c515bfc14b03e5ceb4f93" datatype="html">
743 <source>Preview cache size</source>
744 <context-group purpose="location">
745 <context context-type="sourcefile">app/+admin/config/edit-custom-config/edit-custom-config.component.ts</context>
746 <context context-type="linenumber">210</context>
747 </context-group>
748 </trans-unit><trans-unit id="bf91318659ada3d3ad1b0ca1e63ae427e5a857d5" datatype="html">
749 <source>Previews are not federated. We fetch them directly from the origin instance and cache them.</source>
750 <context-group purpose="location">
751 <context context-type="sourcefile">app/+admin/config/edit-custom-config/edit-custom-config.component.ts</context>
752 <context context-type="linenumber">213</context>
753 </context-group>
754 </trans-unit><trans-unit id="e3a65df2560e99864bbde695da3a7bdf743a184c" datatype="html">
755 <source>Customizations</source>
756 <context-group purpose="location">
757 <context context-type="sourcefile">app/+admin/config/edit-custom-config/edit-custom-config.component.ts</context>
758 <context context-type="linenumber">225</context>
759 </context-group>
760 </trans-unit><trans-unit id="0da9752916950ce6890d897b835c923a71ad9c5c" datatype="html">
761 <source>JavaScript</source>
762 <context-group purpose="location">
763 <context context-type="sourcefile">app/+admin/config/edit-custom-config/edit-custom-config.component.ts</context>
764 <context context-type="linenumber">228</context>
765 </context-group>
766 </trans-unit><trans-unit id="fda2339a6e6ba017ee43b560caf660ed4022333c" datatype="html">
767 <source>Write directly JavaScript code.&lt;br /&gt;Example: &lt;pre&gt;console.log(&apos;my instance is amazing&apos;);&lt;/pre&gt;</source>
768 <context-group purpose="location">
769 <context context-type="sourcefile">app/+admin/config/edit-custom-config/edit-custom-config.component.ts</context>
770 <context context-type="linenumber">231</context>
771 </context-group>
772 </trans-unit><trans-unit id="f133b08d6519081bfb8ef51cff4bf2b3af23dde6" datatype="html">
773 <source>
774 Write directly CSS code. Example:&lt;br /&gt;
775 &lt;pre&gt;
776 body &lt;x id="INTERPOLATION" equiv-text="{{ &apos;{&apos; }}"/&gt;
777 background-color: red;
778 &lt;x id="INTERPOLATION_1" equiv-text="{{ &apos;}&apos; }}"/&gt;
779 &lt;/pre&gt;
780
781 Prepend with &lt;em&gt;#custom-css&lt;/em&gt; to override styles. Example:
782 &lt;pre&gt;
783 #custom-css .logged-in-email &lt;x id="INTERPOLATION" equiv-text="{{ &apos;{&apos; }}"/&gt;
784 color: red;
785 &lt;x id="INTERPOLATION_1" equiv-text="{{ &apos;}&apos; }}"/&gt;
786 &lt;/pre&gt;
787 </source>
788 <context-group purpose="location">
789 <context context-type="sourcefile">app/+admin/config/edit-custom-config/edit-custom-config.component.ts</context>
790 <context context-type="linenumber">247</context>
791 </context-group>
792 </trans-unit><trans-unit id="dad5a5283e4c853c011a0f03d5a52310338bbff8" datatype="html">
793 <source>Update configuration</source>
794 <context-group purpose="location">
795 <context context-type="sourcefile">app/+admin/config/edit-custom-config/edit-custom-config.component.ts</context>
796 <context context-type="linenumber">274</context>
797 </context-group>
798 </trans-unit><trans-unit id="80dbb8ba42b97a9ec035c0ba09f45c07ea07096c" datatype="html">
799 <source>
800 Users
801 </source>
802 <context-group purpose="location">
803 <context context-type="sourcefile">app/+admin/admin.component.ts</context>
804 <context context-type="linenumber">3</context>
805 </context-group>
806 </trans-unit><trans-unit id="0315abd64e35510ed0534f597130ef781aca175a" datatype="html">
807 <source>
808 Manage follows
809 </source>
810 <context-group purpose="location">
811 <context context-type="sourcefile">app/+admin/admin.component.ts</context>
812 <context context-type="linenumber">7</context>
813 </context-group>
814 </trans-unit><trans-unit id="1c9406213cf05033eda4d3df678217b5eb822315" datatype="html">
815 <source>
816 Video abuses
817 </source>
818 <context-group purpose="location">
819 <context context-type="sourcefile">app/+admin/admin.component.ts</context>
820 <context context-type="linenumber">11</context>
821 </context-group>
822 </trans-unit><trans-unit id="96ccede058f0022f34230c3adc09e60076b6d037" datatype="html">
823 <source>
824 Video blacklist
825 </source>
826 <context-group purpose="location">
827 <context context-type="sourcefile">app/+admin/admin.component.ts</context>
828 <context context-type="linenumber">15</context>
829 </context-group>
830 </trans-unit><trans-unit id="7bea88c54fdccfdc9f687b0ffe9bf6a653d19368" datatype="html">
831 <source>
832 Jobs
833 </source>
834 <context-group purpose="location">
835 <context context-type="sourcefile">app/+admin/admin.component.ts</context>
836 <context context-type="linenumber">19</context>
837 </context-group>
838 </trans-unit><trans-unit id="9c6ce37623b626a102002901ca12c37e7a3a7f13" datatype="html">
839 <source>
840 Configuration
841 </source>
842 <context-group purpose="location">
843 <context context-type="sourcefile">app/+admin/admin.component.ts</context>
844 <context context-type="linenumber">23</context>
845 </context-group>
846 </trans-unit><trans-unit id="4e8635c108375983b42229df44bda8c0af84f396" datatype="html">
847 <source>1 host (without &quot;http://&quot;) per line</source>
848 <context-group purpose="location">
849 <context context-type="sourcefile">app/+admin/follows/following-add/following-add.component.ts</context>
850 <context context-type="linenumber">5</context>
851 </context-group>
852 </trans-unit><trans-unit id="f7a7a00999ccbd126cbb8e74f5dd1724942dd507" datatype="html">
853 <source>
854 It seems that you are not on a HTTPS server. Your webserver needs to have TLS activated in order to follow servers.
855 </source>
856 <context-group purpose="location">
857 <context context-type="sourcefile">app/+admin/follows/following-add/following-add.component.ts</context>
858 <context context-type="linenumber">17</context>
859 </context-group>
860 </trans-unit><trans-unit id="456c6383d8e7cd15aadbcdc196d4ae7a70092437" datatype="html">
861 <source>Add following</source>
862 <context-group purpose="location">
863 <context context-type="sourcefile">app/+admin/follows/following-add/following-add.component.ts</context>
864 <context context-type="linenumber">21</context>
865 </context-group>
866 </trans-unit><trans-unit id="45cc8ca94b5a50842a9a8ef804a5ab089a38ae5c" datatype="html">
867 <source>ID</source>
868 <context-group purpose="location">
869 <context context-type="sourcefile">app/+admin/follows/followers-list/followers-list.component.ts</context>
870 <context context-type="linenumber">7</context>
871 </context-group>
872 <context-group purpose="location">
873 <context context-type="sourcefile">app/+admin/follows/following-list/following-list.component.ts</context>
874 <context context-type="linenumber">7</context>
875 </context-group>
876 <context-group purpose="location">
877 <context context-type="sourcefile">app/+admin/jobs/jobs-list/jobs-list.component.ts</context>
878 <context context-type="linenumber">18</context>
879 </context-group>
880 </trans-unit><trans-unit id="380e20a1e13d9489c69f6dbea7da19025ab6eb25" datatype="html">
881 <source>Score</source>
882 <context-group purpose="location">
883 <context context-type="sourcefile">app/+admin/follows/followers-list/followers-list.component.ts</context>
884 <context context-type="linenumber">8</context>
885 </context-group>
886 </trans-unit><trans-unit id="fe22ca53e651df951dac25b67c17894b0980f767" datatype="html">
887 <source>Host</source>
888 <context-group purpose="location">
889 <context context-type="sourcefile">app/+admin/follows/followers-list/followers-list.component.ts</context>
890 <context context-type="linenumber">10</context>
891 </context-group>
892 <context-group purpose="location">
893 <context context-type="sourcefile">app/+admin/follows/following-list/following-list.component.ts</context>
894 <context context-type="linenumber">8</context>
895 </context-group>
896 </trans-unit><trans-unit id="873b72903b1858a9cd6c8967521030b4d7d1435b" datatype="html">
897 <source>State</source>
898 <context-group purpose="location">
899 <context context-type="sourcefile">app/+admin/follows/followers-list/followers-list.component.ts</context>
900 <context context-type="linenumber">11</context>
901 </context-group>
902 <context-group purpose="location">
903 <context context-type="sourcefile">app/+admin/follows/following-list/following-list.component.ts</context>
904 <context context-type="linenumber">9</context>
905 </context-group>
906 <context-group purpose="location">
907 <context context-type="sourcefile">app/+admin/jobs/jobs-list/jobs-list.component.ts</context>
908 <context context-type="linenumber">20</context>
909 </context-group>
910 </trans-unit><trans-unit id="ff3173170e5b03536dd3b3e1afbae1f55356eb1b" datatype="html">
911 <source>Created &lt;x id="START_TAG_P-SORTICON" ctype="x-p-sortIcon" equiv-text="&lt;p-sortIcon&gt;"/&gt;<x id="CLOSE_TAG_P-SORTICON" ctype="x-p-sortIcon" equiv-text="&lt;/p-sortIcon&gt;"/></source>
912 <context-group purpose="location">
913 <context context-type="sourcefile">app/+admin/follows/followers-list/followers-list.component.ts</context>
914 <context context-type="linenumber">12</context>
915 </context-group>
916 <context-group purpose="location">
917 <context context-type="sourcefile">app/+admin/follows/following-list/following-list.component.ts</context>
918 <context context-type="linenumber">10</context>
919 </context-group>
920 <context-group purpose="location">
921 <context context-type="sourcefile">app/+admin/jobs/jobs-list/jobs-list.component.ts</context>
922 <context context-type="linenumber">21</context>
923 </context-group>
924 <context-group purpose="location">
925 <context context-type="sourcefile">app/+admin/users/user-list/user-list.component.ts</context>
926 <context context-type="linenumber">20</context>
927 </context-group>
928 <context-group purpose="location">
929 <context context-type="sourcefile">app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.ts</context>
930 <context context-type="linenumber">13</context>
931 </context-group>
932 <context-group purpose="location">
933 <context context-type="sourcefile">app/+admin/video-blacklist/video-blacklist-list/video-blacklist-list.component.ts</context>
934 <context context-type="linenumber">16</context>
935 </context-group>
936 </trans-unit><trans-unit id="5fccee488a9ea908c16d2ab9dbdaf264f1aac479" datatype="html">
937 <source>Manage follows</source>
938 <context-group purpose="location">
939 <context context-type="sourcefile">app/+admin/follows/follows.component.ts</context>
940 <context context-type="linenumber">2</context>
941 </context-group>
942 </trans-unit><trans-unit id="a9f2501fcb2ff71f1376c2d2fbbbd49f200e6c8f" datatype="html">
943 <source>Jobs list</source>
944 <context-group purpose="location">
945 <context context-type="sourcefile">app/+admin/jobs/jobs-list/jobs-list.component.ts</context>
946 <context context-type="linenumber">2</context>
947 </context-group>
948 </trans-unit><trans-unit id="f61c6867295f3b53d23557021f2f4e0aa1d0b8fc" datatype="html">
949 <source>Type</source>
950 <context-group purpose="location">
951 <context context-type="sourcefile">app/+admin/jobs/jobs-list/jobs-list.component.ts</context>
952 <context context-type="linenumber">19</context>
953 </context-group>
954 </trans-unit><trans-unit id="9da0107a35751e722c8b4bca7636fc7645dbdbdc" datatype="html">
955 <source>Updated</source>
956 <context-group purpose="location">
957 <context context-type="sourcefile">app/+admin/jobs/jobs-list/jobs-list.component.ts</context>
958 <context context-type="linenumber">22</context>
959 </context-group>
960 </trans-unit><trans-unit id="31cf824034489eb42f6a388d5980b98b8e1de015" datatype="html">
961 <source>Create user</source>
962 <context-group purpose="location">
963 <context context-type="sourcefile">app/+admin/users/user-edit/user-create.component.ts</context>
964 <context context-type="linenumber">1</context>
965 </context-group>
966 <context-group purpose="location">
967 <context context-type="sourcefile">app/+admin/users/user-edit/user-update.component.ts</context>
968 <context context-type="linenumber">1</context>
969 </context-group>
970 <context-group purpose="location">
971 <context context-type="sourcefile">app/+admin/users/user-list/user-list.component.ts</context>
972 <context context-type="linenumber">6</context>
973 </context-group>
974 </trans-unit><trans-unit id="2788d9a67ed2b6f35c85818e6af1871317c57a7e" datatype="html">
975 <source>Edit user &lt;x id="INTERPOLATION" equiv-text="{{ username }}"/&gt;</source>
976 <context-group purpose="location">
977 <context context-type="sourcefile">app/+admin/users/user-edit/user-create.component.ts</context>
978 <context context-type="linenumber">2</context>
979 </context-group>
980 <context-group purpose="location">
981 <context context-type="sourcefile">app/+admin/users/user-edit/user-update.component.ts</context>
982 <context context-type="linenumber">2</context>
983 </context-group>
984 </trans-unit><trans-unit id="1bd571d8f3981f6043b0df3402cc3d97e0d7ad2a" datatype="html">
985 <source>john</source>
986 <context-group purpose="location">
987 <context context-type="sourcefile">app/+admin/users/user-edit/user-create.component.ts</context>
988 <context context-type="linenumber">10</context>
989 </context-group>
990 <context-group purpose="location">
991 <context context-type="sourcefile">app/+admin/users/user-edit/user-update.component.ts</context>
992 <context context-type="linenumber">10</context>
993 </context-group>
994 </trans-unit><trans-unit id="bb3542ff8e5defa6d0c773799e5c8fe399605d05" datatype="html">
995 <source>mail@example.com</source>
996 <context-group purpose="location">
997 <context context-type="sourcefile">app/+admin/users/user-edit/user-create.component.ts</context>
998 <context context-type="linenumber">21</context>
999 </context-group>
1000 <context-group purpose="location">
1001 <context context-type="sourcefile">app/+admin/users/user-edit/user-update.component.ts</context>
1002 <context context-type="linenumber">21</context>
1003 </context-group>
1004 </trans-unit><trans-unit id="c36a66f2107e8da5371ebc9d15c2008dff567f46" datatype="html">
1005 <source>Role</source>
1006 <context-group purpose="location">
1007 <context context-type="sourcefile">app/+admin/users/user-edit/user-create.component.ts</context>
1008 <context context-type="linenumber">41</context>
1009 </context-group>
1010 <context-group purpose="location">
1011 <context context-type="sourcefile">app/+admin/users/user-edit/user-update.component.ts</context>
1012 <context context-type="linenumber">41</context>
1013 </context-group>
1014 <context-group purpose="location">
1015 <context context-type="sourcefile">app/+admin/users/user-list/user-list.component.ts</context>
1016 <context context-type="linenumber">19</context>
1017 </context-group>
1018 </trans-unit><trans-unit id="15f046007e4fca2e8477966745e2ec4e3e81bc3b" datatype="html">
1019 <source>Video quota</source>
1020 <context-group purpose="location">
1021 <context context-type="sourcefile">app/+admin/users/user-edit/user-create.component.ts</context>
1022 <context context-type="linenumber">56</context>
1023 </context-group>
1024 <context-group purpose="location">
1025 <context context-type="sourcefile">app/+admin/users/user-edit/user-update.component.ts</context>
1026 <context context-type="linenumber">56</context>
1027 </context-group>
1028 <context-group purpose="location">
1029 <context context-type="sourcefile">app/+admin/users/user-list/user-list.component.ts</context>
1030 <context context-type="linenumber">18</context>
1031 </context-group>
1032 </trans-unit><trans-unit id="42e3c0e89177ca135974221eaf0e4e836c32e345" datatype="html">
1033 <source>
1034 Transcoding is enabled on server. The video quota only take in account &lt;x id="START_TAG_STRONG" ctype="x-strong" equiv-text="&lt;strong&gt;"/&gt;original<x id="CLOSE_TAG_STRONG" ctype="x-strong" equiv-text="&lt;/strong&gt;"/> video. <x id="LINE_BREAK" ctype="lb" equiv-text="&lt;br/&gt;"/>
1035 At most, this user could use ~ &lt;x id="INTERPOLATION" equiv-text="{{ computeQuotaWithTranscoding() | bytes: 0 }}"/&gt;.
1036 </source>
1037 <context-group purpose="location">
1038 <context context-type="sourcefile">app/+admin/users/user-edit/user-create.component.ts</context>
1039 <context context-type="linenumber">65</context>
1040 </context-group>
1041 <context-group purpose="location">
1042 <context context-type="sourcefile">app/+admin/users/user-edit/user-update.component.ts</context>
1043 <context context-type="linenumber">65</context>
1044 </context-group>
1045 </trans-unit><trans-unit id="5e8b4663c17c337a1f11160c0a683350936faa1f" datatype="html">
1046 <source>Users list</source>
1047 <context-group purpose="location">
1048 <context context-type="sourcefile">app/+admin/users/user-list/user-list.component.ts</context>
1049 <context context-type="linenumber">2</context>
1050 </context-group>
1051 </trans-unit><trans-unit id="08ea8692dc2a7050026df26fc39b22960bde9de5" datatype="html">
1052 <source>Username &lt;x id="START_TAG_P-SORTICON" ctype="x-p-sortIcon" equiv-text="&lt;p-sortIcon&gt;"/&gt;<x id="CLOSE_TAG_P-SORTICON" ctype="x-p-sortIcon" equiv-text="&lt;/p-sortIcon&gt;"/></source>
1053 <context-group purpose="location">
1054 <context context-type="sourcefile">app/+admin/users/user-list/user-list.component.ts</context>
1055 <context context-type="linenumber">16</context>
1056 </context-group>
1057 </trans-unit><trans-unit id="0c7e8870481f1287af6a142f538391d8c16c2408" datatype="html">
1058 <source>Video abuses list</source>
1059 <context-group purpose="location">
1060 <context context-type="sourcefile">app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.ts</context>
1061 <context context-type="linenumber">2</context>
1062 </context-group>
1063 </trans-unit><trans-unit id="4ba250869daa372b54d24fafc0ea934769ee4076" datatype="html">
1064 <source>Reason</source>
1065 <context-group purpose="location">
1066 <context context-type="sourcefile">app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.ts</context>
1067 <context context-type="linenumber">11</context>
1068 </context-group>
1069 </trans-unit><trans-unit id="2bf5a31043ff476ca081a4080f3f3f17518dc6f2" datatype="html">
1070 <source>Reporter</source>
1071 <context-group purpose="location">
1072 <context context-type="sourcefile">app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.ts</context>
1073 <context context-type="linenumber">12</context>
1074 </context-group>
1075 </trans-unit><trans-unit id="2d1ea268a6a9f483dbc2cbfe19bf4256a57a6af4" datatype="html">
1076 <source>Video</source>
1077 <context-group purpose="location">
1078 <context context-type="sourcefile">app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.ts</context>
1079 <context context-type="linenumber">14</context>
1080 </context-group>
1081 </trans-unit><trans-unit id="c6ab75e099e131d7a4f94e1732e7436d8fc386c7" datatype="html">
1082 <source>Go to the account</source>
1083 <context-group purpose="location">
1084 <context context-type="sourcefile">app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.ts</context>
1085 <context context-type="linenumber">22</context>
1086 </context-group>
1087 </trans-unit><trans-unit id="1cb8348c199d03e297d165e262237194f25fe3f5" datatype="html">
1088 <source>Go to the video</source>
1089 <context-group purpose="location">
1090 <context context-type="sourcefile">app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.ts</context>
1091 <context context-type="linenumber">28</context>
1092 </context-group>
1093 </trans-unit><trans-unit id="00ecde6001106fe7406a34cc3459cc5b88e4aec1" datatype="html">
1094 <source>Blacklisted videos</source>
1095 <context-group purpose="location">
1096 <context context-type="sourcefile">app/+admin/video-blacklist/video-blacklist-list/video-blacklist-list.component.ts</context>
1097 <context context-type="linenumber">2</context>
1098 </context-group>
1099 </trans-unit><trans-unit id="7c02d113e9b7884037834cddecf2a32a5538b35b" datatype="html">
1100 <source>Name &lt;x id="START_TAG_P-SORTICON" ctype="x-p-sortIcon" equiv-text="&lt;p-sortIcon&gt;"/&gt;<x id="CLOSE_TAG_P-SORTICON" ctype="x-p-sortIcon" equiv-text="&lt;/p-sortIcon&gt;"/></source>
1101 <context-group purpose="location">
1102 <context context-type="sourcefile">app/+admin/video-blacklist/video-blacklist-list/video-blacklist-list.component.ts</context>
1103 <context context-type="linenumber">11</context>
1104 </context-group>
1105 </trans-unit><trans-unit id="cd5ca5da9e2fa21571e9f86a24a5c3b45a3ddc51" datatype="html">
1106 <source>Views &lt;x id="START_TAG_P-SORTICON" ctype="x-p-sortIcon" equiv-text="&lt;p-sortIcon&gt;"/&gt;<x id="CLOSE_TAG_P-SORTICON" ctype="x-p-sortIcon" equiv-text="&lt;/p-sortIcon&gt;"/></source>
1107 <context-group purpose="location">
1108 <context context-type="sourcefile">app/+admin/video-blacklist/video-blacklist-list/video-blacklist-list.component.ts</context>
1109 <context context-type="linenumber">13</context>
1110 </context-group>
1111 </trans-unit><trans-unit id="d4717113115ca7106a354a5aac54d1c0126261d9" datatype="html">
1112 <source>NSFW</source>
1113 <context-group purpose="location">
1114 <context context-type="sourcefile">app/+admin/video-blacklist/video-blacklist-list/video-blacklist-list.component.ts</context>
1115 <context context-type="linenumber">14</context>
1116 </context-group>
1117 </trans-unit><trans-unit id="8c87d9527af7ff2ada84c911516a9e43a352e401" datatype="html">
1118 <source>UUID</source>
1119 <context-group purpose="location">
1120 <context context-type="sourcefile">app/+admin/video-blacklist/video-blacklist-list/video-blacklist-list.component.ts</context>
1121 <context context-type="linenumber">15</context>
1122 </context-group>
1123 </trans-unit><trans-unit id="86f26b106c67be3c2e98b82766656e5d9da86dff" datatype="html">
1124 <source>Unblacklist</source>
1125 <context-group purpose="location">
1126 <context context-type="sourcefile">app/+admin/video-blacklist/video-blacklist-list/video-blacklist-list.component.ts</context>
1127 <context context-type="linenumber">30</context>
1128 </context-group>
1129 </trans-unit><trans-unit id="efad4be364b8fb5c73cbfcc7acccd542f9d84ad6" datatype="html">
1130 <source>My settings</source>
1131 <context-group purpose="location">
1132 <context context-type="sourcefile">app/+my-account/my-account.component.ts</context>
1133 <context context-type="linenumber">3</context>
1134 </context-group>
1135 </trans-unit><trans-unit id="520d68b2c9f7dacaf2a5073716cad9bd328ea7e7" datatype="html">
1136 <source>My video channels</source>
1137 <context-group purpose="location">
1138 <context context-type="sourcefile">app/+my-account/my-account.component.ts</context>
1139 <context context-type="linenumber">5</context>
1140 </context-group>
1141 </trans-unit><trans-unit id="d02888c485d3aeab6de628508f4a00312a722894" datatype="html">
1142 <source>My videos</source>
1143 <context-group purpose="location">
1144 <context context-type="sourcefile">app/+my-account/my-account.component.ts</context>
1145 <context context-type="linenumber">7</context>
1146 </context-group>
1147 </trans-unit><trans-unit id="7cadf30b337f4ef9b05b7d02e13ec3cf79de9dba" datatype="html">
1148 <source>&lt;x id="INTERPOLATION" equiv-text="{{ user.account?.followersCount }}"/&gt; subscribers</source>
1149 <context-group purpose="location">
1150 <context context-type="sourcefile">app/+my-account/my-account-settings/my-account-settings.component.ts</context>
1151 <context context-type="linenumber">9</context>
1152 </context-group>
1153 </trans-unit><trans-unit id="3fb9a5f7268114445d8c109a8f48102e93471f5a" datatype="html">
1154 <source>Change your avatar</source>
1155 <context-group purpose="location">
1156 <context context-type="sourcefile">app/+my-account/my-account-settings/my-account-settings.component.ts</context>
1157 <context context-type="linenumber">14</context>
1158 </context-group>
1159 </trans-unit><trans-unit id="c860c88df9ad58b1187084251340b232cdf0a7f9" datatype="html">
1160 <source>(extensions: &lt;x id="INTERPOLATION" equiv-text="{{ avatarExtensions }}"/&gt;, max size: &lt;x id="INTERPOLATION_1" equiv-text="{{ maxAvatarSize | bytes }}"/&gt;)</source>
1161 <context-group purpose="location">
1162 <context context-type="sourcefile">app/+my-account/my-account-settings/my-account-settings.component.ts</context>
1163 <context context-type="linenumber">17</context>
1164 </context-group>
1165 </trans-unit><trans-unit id="9518d3fb042d551167c1701ddeb88a1374cf1e48" datatype="html">
1166 <source>Video quota:</source>
1167 <context-group purpose="location">
1168 <context context-type="sourcefile">app/+my-account/my-account-settings/my-account-settings.component.ts</context>
1169 <context context-type="linenumber">20</context>
1170 </context-group>
1171 </trans-unit><trans-unit id="994363f08f9fbfa3b3994ff7b35c6904fdff18d8" datatype="html">
1172 <source>Profile</source>
1173 <context-group purpose="location">
1174 <context context-type="sourcefile">app/+my-account/my-account-settings/my-account-settings.component.ts</context>
1175 <context context-type="linenumber">24</context>
1176 </context-group>
1177 </trans-unit><trans-unit id="b5398623f87ee72ed23f5023918db1707771e925" datatype="html">
1178 <source>Video settings</source>
1179 <context-group purpose="location">
1180 <context context-type="sourcefile">app/+my-account/my-account-settings/my-account-settings.component.ts</context>
1181 <context context-type="linenumber">31</context>
1182 </context-group>
1183 </trans-unit><trans-unit id="8057bddbed23d6cd911df8cc3a4ec24d1f258b79" datatype="html">
1184 <source>&lt;x id="INTERPOLATION" equiv-text="{{ video.createdAt | myFromNow }}"/&gt; - &lt;x id="INTERPOLATION_1" equiv-text="{{ video.views | myNumberFormatter }}"/&gt; views</source>
1185 <context-group purpose="location">
1186 <context context-type="sourcefile">app/+my-account/my-account-videos/my-account-videos.component.ts</context>
1187 <context context-type="linenumber">20</context>
1188 </context-group>
1189 </trans-unit><trans-unit id="a475a4862efc4e473d6201f09b258e05d651c1df" datatype="html">
1190 <source>
1191 &lt;x id="START_TAG_SPAN" ctype="x-span" equiv-text="&lt;span&gt;"/&gt;<x id="CLOSE_TAG_SPAN" ctype="x-span" equiv-text="&lt;/span&gt;"/>
1192 Delete
1193 </source>
1194 <context-group purpose="location">
1195 <context context-type="sourcefile">app/+my-account/my-account-videos/my-account-videos.component.ts</context>
1196 <context context-type="linenumber">31</context>
1197 </context-group>
1198 </trans-unit><trans-unit id="73c1cefc348a6f361497210dea1ed79499fd1260" datatype="html">
1199 <source>Create another video channel</source>
1200 <context-group purpose="location">
1201 <context context-type="sourcefile">app/+my-account/my-account-video-channels/my-account-video-channels.component.ts</context>
1202 <context context-type="linenumber">4</context>
1203 </context-group>
1204 </trans-unit><trans-unit id="30fcac6c20aac1f24e000efc4a889cbb93d4baf2" datatype="html">
1205 <source>Go to the channel</source>
1206 <context-group purpose="location">
1207 <context context-type="sourcefile">app/+my-account/my-account-video-channels/my-account-video-channels.component.ts</context>
1208 <context context-type="linenumber">15</context>
1209 </context-group>
1210 </trans-unit><trans-unit id="9dbe4718a5611fbc611fc6b5e0b27df813372c68" datatype="html">
1211 <source>Create a video channel</source>
1212 <context-group purpose="location">
1213 <context context-type="sourcefile">app/+my-account/my-account-video-channels/my-account-video-channel-create.component.ts</context>
1214 <context context-type="linenumber">1</context>
1215 </context-group>
1216 <context-group purpose="location">
1217 <context context-type="sourcefile">app/+my-account/my-account-video-channels/my-account-video-channel-update.component.ts</context>
1218 <context context-type="linenumber">1</context>
1219 </context-group>
1220 </trans-unit><trans-unit id="9277e6f7b8ed9538d1f6ad812b620384252ffe56" datatype="html">
1221 <source>Update &lt;x id="INTERPOLATION" equiv-text="{{ videoChannel?.displayName }}"/&gt;</source>
1222 <context-group purpose="location">
1223 <context context-type="sourcefile">app/+my-account/my-account-video-channels/my-account-video-channel-create.component.ts</context>
1224 <context context-type="linenumber">2</context>
1225 </context-group>
1226 <context-group purpose="location">
1227 <context context-type="sourcefile">app/+my-account/my-account-video-channels/my-account-video-channel-update.component.ts</context>
1228 <context context-type="linenumber">2</context>
1229 </context-group>
1230 </trans-unit><trans-unit id="bc155f9fc3be3f32083f19b2c77d4ad3b696d9b9" datatype="html">
1231 <source>Display name</source>
1232 <context-group purpose="location">
1233 <context context-type="sourcefile">app/+my-account/my-account-video-channels/my-account-video-channel-create.component.ts</context>
1234 <context context-type="linenumber">8</context>
1235 </context-group>
1236 <context-group purpose="location">
1237 <context context-type="sourcefile">app/+my-account/my-account-video-channels/my-account-video-channel-update.component.ts</context>
1238 <context context-type="linenumber">8</context>
1239 </context-group>
1240 <context-group purpose="location">
1241 <context context-type="sourcefile">app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.ts</context>
1242 <context context-type="linenumber">5</context>
1243 </context-group>
1244 </trans-unit><trans-unit id="74728de5289ea2ff3f553bc2b48f1811680b931a" datatype="html">
1245 <source>Short text to tell people how they can support your channel (membership platform...).&lt;br /&gt;&lt;br /&gt;
1246When you will upload a video in this channel, the video support field will be automatically filled by this text.</source>
1247 <context-group purpose="location">
1248 <context context-type="sourcefile">app/+my-account/my-account-video-channels/my-account-video-channel-create.component.ts</context>
1249 <context context-type="linenumber">32</context>
1250 </context-group>
1251 <context-group purpose="location">
1252 <context context-type="sourcefile">app/+my-account/my-account-video-channels/my-account-video-channel-update.component.ts</context>
1253 <context context-type="linenumber">32</context>
1254 </context-group>
1255 </trans-unit><trans-unit id="739516c2ca75843d5aec9cf0e6b3e4335c4227b9" datatype="html">
1256 <source>Change password</source>
1257 <context-group purpose="location">
1258 <context context-type="sourcefile">app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.ts</context>
1259 <context context-type="linenumber">5</context>
1260 </context-group>
1261 <context-group purpose="location">
1262 <context context-type="sourcefile">app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.ts</context>
1263 <context context-type="linenumber">19</context>
1264 </context-group>
1265 </trans-unit><trans-unit id="e70e209561583f360b1e9cefd2cbb1fe434b6229" datatype="html">
1266 <source>New password</source>
1267 <context-group purpose="location">
1268 <context context-type="sourcefile">app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.ts</context>
1269 <context context-type="linenumber">7</context>
1270 </context-group>
1271 </trans-unit><trans-unit id="ede41f01c781b168a783cfcefc6fb67d48780d9b" datatype="html">
1272 <source>Confirm new password</source>
1273 <context-group purpose="location">
1274 <context context-type="sourcefile">app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.ts</context>
1275 <context context-type="linenumber">15</context>
1276 </context-group>
1277 </trans-unit><trans-unit id="20f62f24170d57b1efeb2387a0949f482cd4d129" datatype="html">
1278 <source>Default policy on videos containing sensitive content</source>
1279 <context-group purpose="location">
1280 <context context-type="sourcefile">app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.ts</context>
1281 <context context-type="linenumber">3</context>
1282 </context-group>
1283 </trans-unit><trans-unit id="fb17c44abac2d1ed2a54cdd28bae289dc0b9a1c2" datatype="html">
1284 <source>Automatically plays video</source>
1285 <context-group purpose="location">
1286 <context context-type="sourcefile">app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.ts</context>
1287 <context context-type="linenumber">24</context>
1288 </context-group>
1289 </trans-unit><trans-unit id="52c9a103b812f258bcddc3d90a6e3f46871d25fe" datatype="html">
1290 <source>Save</source>
1291 <context-group purpose="location">
1292 <context context-type="sourcefile">app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.ts</context>
1293 <context context-type="linenumber">27</context>
1294 </context-group>
1295 </trans-unit><trans-unit id="d2fa66a905b6b7f691c83be681d18188cbe4a8ba" datatype="html">
1296 <source>Update my profile</source>
1297 <context-group purpose="location">
1298 <context context-type="sourcefile">app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.ts</context>
1299 <context context-type="linenumber">23</context>
1300 </context-group>
1301 </trans-unit><trans-unit id="e242e3e8608a3c4a944327eb3d5c221dc6e4e3cd" datatype="html">
1302 <source>
1303 Sorry, but we couldn&apos;t find the page you were looking for.
1304</source>
1305 <context-group purpose="location">
1306 <context context-type="sourcefile">app/+page-not-found/page-not-found.component.ts</context>
1307 <context context-type="linenumber">1</context>
1308 </context-group>
1309 </trans-unit><trans-unit id="c65641c36859c328928e6b0f14c3f913886f8add" datatype="html">
1310 <source>Created by &lt;x id="INTERPOLATION" equiv-text="{{ videoChannel.ownerBy }}"/&gt;</source>
1311 <context-group purpose="location">
1312 <context context-type="sourcefile">app/+video-channels/video-channels.component.ts</context>
1313 <context context-type="linenumber">14</context>
1314 </context-group>
1315 </trans-unit><trans-unit id="e006ed166ce188cab168e1ca90435b33d042d913" datatype="html">
1316 <source>Go the owner account page</source>
1317 <context-group purpose="location">
1318 <context context-type="sourcefile">app/+video-channels/video-channels.component.ts</context>
1319 <context context-type="linenumber">13</context>
1320 </context-group>
1321 </trans-unit><trans-unit id="1380539d91f77f565de6e21ce210da891e6644b8" datatype="html">
1322 <source>Support this channel</source>
1323 <context-group purpose="location">
1324 <context context-type="sourcefile">app/+video-channels/video-channel-about/video-channel-about.component.ts</context>
1325 <context context-type="linenumber">9</context>
1326 </context-group>
1327 </trans-unit><trans-unit id="5523952d0300c96cfba2ec5a693c95f923e90c40" datatype="html">
1328 <source>Created &lt;x id="INTERPOLATION" equiv-text="{{ videoChannel.createdAt | date }}"/&gt;</source>
1329 <context-group purpose="location">
1330 <context context-type="sourcefile">app/+video-channels/video-channel-about/video-channel-about.component.ts</context>
1331 <context context-type="linenumber">17</context>
1332 </context-group>
1333 </trans-unit><trans-unit id="d4dcf74163f127ca9afa84d55b5d95846958faa0" datatype="html">
1334 <source>Upload your video</source>
1335 <context-group purpose="location">
1336 <context context-type="sourcefile">app/videos/+video-edit/video-add.component.ts</context>
1337 <context context-type="linenumber">3</context>
1338 </context-group>
1339 </trans-unit><trans-unit id="1af3dcf5aad5b7f4b3251da88a89dc9a184445dd" datatype="html">
1340 <source>Upload &lt;x id="INTERPOLATION" equiv-text="{{ videoFileName }}"/&gt;</source>
1341 <context-group purpose="location">
1342 <context context-type="sourcefile">app/videos/+video-edit/video-add.component.ts</context>
1343 <context context-type="linenumber">4</context>
1344 </context-group>
1345 </trans-unit><trans-unit id="21add64f0f3ebbedf1150ca822c6e149494ab7a9" datatype="html">
1346 <source>Select the file to upload</source>
1347 <context-group purpose="location">
1348 <context context-type="sourcefile">app/videos/+video-edit/video-add.component.ts</context>
1349 <context context-type="linenumber">12</context>
1350 </context-group>
1351 </trans-unit><trans-unit id="0cc554f4d7bb6a87515d2d95438e183b50702071" datatype="html">
1352 <source>Channel</source>
1353 <context-group purpose="location">
1354 <context context-type="sourcefile">app/videos/+video-edit/video-add.component.ts</context>
1355 <context context-type="linenumber">17</context>
1356 </context-group>
1357 <context-group purpose="location">
1358 <context context-type="sourcefile">app/videos/+video-edit/shared/video-edit.component.ts</context>
1359 <context context-type="linenumber">35</context>
1360 </context-group>
1361 </trans-unit><trans-unit id="3c78b53bca33467190c0b7a01320bc093a2b1427" datatype="html">
1362 <source>Privacy</source>
1363 <context-group purpose="location">
1364 <context context-type="sourcefile">app/videos/+video-edit/video-add.component.ts</context>
1365 <context context-type="linenumber">26</context>
1366 </context-group>
1367 <context-group purpose="location">
1368 <context context-type="sourcefile">app/videos/+video-edit/shared/video-edit.component.ts</context>
1369 <context context-type="linenumber">86</context>
1370 </context-group>
1371 </trans-unit><trans-unit id="f7ac2376749c7985f94f0fc89ba75ea624de1215" datatype="html">
1372 <source>Publish will be available when upload is finished</source>
1373 <context-group purpose="location">
1374 <context context-type="sourcefile">app/videos/+video-edit/video-add.component.ts</context>
1375 <context context-type="linenumber">52</context>
1376 </context-group>
1377 </trans-unit><trans-unit id="223aae0477f79f0bc4436c1c57619415f04cbbb3" datatype="html">
1378 <source>Publish</source>
1379 <context-group purpose="location">
1380 <context context-type="sourcefile">app/videos/+video-edit/video-add.component.ts</context>
1381 <context context-type="linenumber">59</context>
1382 </context-group>
1383 </trans-unit><trans-unit id="fdf7cbdc140d0aab0f0b6c06065a0fd448ed6a2e" datatype="html">
1384 <source>Title</source>
1385 <context-group purpose="location">
1386 <context context-type="sourcefile">app/videos/+video-edit/shared/video-edit.component.ts</context>
1387 <context context-type="linenumber">7</context>
1388 </context-group>
1389 </trans-unit><trans-unit id="cafc87479686947e2590b9f588a88040aeaf660b" datatype="html">
1390 <source>Tags</source>
1391 <context-group purpose="location">
1392 <context context-type="sourcefile">app/videos/+video-edit/shared/video-edit.component.ts</context>
1393 <context context-type="linenumber">15</context>
1394 </context-group>
1395 </trans-unit><trans-unit id="935e7146fe6c12169abfda18536c5856935cfd82" datatype="html">
1396 <source>(press Enter to add)</source>
1397 <context-group purpose="location">
1398 <context context-type="sourcefile">app/videos/+video-edit/shared/video-edit.component.ts</context>
1399 <context context-type="linenumber">15</context>
1400 </context-group>
1401 </trans-unit><trans-unit id="50f53834157770b8205ada0e7a6e235211e4765e" datatype="html">
1402 <source>Video descriptions are truncated by default and require manual action to expand them.</source>
1403 <context-group purpose="location">
1404 <context context-type="sourcefile">app/videos/+video-edit/shared/video-edit.component.ts</context>
1405 <context context-type="linenumber">24</context>
1406 </context-group>
1407 </trans-unit><trans-unit id="607de17c2a755f65775881c19e276e7c933bcf94" datatype="html">
1408 <source>Category</source>
1409 <context-group purpose="location">
1410 <context context-type="sourcefile">app/videos/+video-edit/shared/video-edit.component.ts</context>
1411 <context context-type="linenumber">44</context>
1412 </context-group>
1413 </trans-unit><trans-unit id="78d6d3ea26777cd0dad8ddbf9b314151678da46c" datatype="html">
1414 <source>Licence</source>
1415 <context-group purpose="location">
1416 <context context-type="sourcefile">app/videos/+video-edit/shared/video-edit.component.ts</context>
1417 <context context-type="linenumber">58</context>
1418 </context-group>
1419 </trans-unit><trans-unit id="fe46ccaae902ce974e2441abe752399288298619" datatype="html">
1420 <source>Language</source>
1421 <context-group purpose="location">
1422 <context context-type="sourcefile">app/videos/+video-edit/shared/video-edit.component.ts</context>
1423 <context context-type="linenumber">72</context>
1424 </context-group>
1425 </trans-unit><trans-unit id="5ef7108218e096d09f4ee8525a05a8c90d7b95ee" datatype="html">
1426 <source>This video contains mature or explicit content</source>
1427 <context-group purpose="location">
1428 <context context-type="sourcefile">app/videos/+video-edit/shared/video-edit.component.ts</context>
1429 <context context-type="linenumber">102</context>
1430 </context-group>
1431 </trans-unit><trans-unit id="73743a7cbb03abe81de0960a6bc4b6c42c18633a" datatype="html">
1432 <source>Some instances do not list NSFW videos by default.</source>
1433 <context-group purpose="location">
1434 <context context-type="sourcefile">app/videos/+video-edit/shared/video-edit.component.ts</context>
1435 <context context-type="linenumber">103</context>
1436 </context-group>
1437 </trans-unit><trans-unit id="3549ee96125a43181f80712ed744ee223a0e645a" datatype="html">
1438 <source>Enable video comments</source>
1439 <context-group purpose="location">
1440 <context context-type="sourcefile">app/videos/+video-edit/shared/video-edit.component.ts</context>
1441 <context context-type="linenumber">109</context>
1442 </context-group>
1443 </trans-unit><trans-unit id="1dd793abd1cb8d16a7a2cb71ca5549a7111ee513" datatype="html">
1444 <source>Upload thumbnail</source>
1445 <context-group purpose="location">
1446 <context context-type="sourcefile">app/videos/+video-edit/shared/video-edit.component.ts</context>
1447 <context context-type="linenumber">119</context>
1448 </context-group>
1449 </trans-unit><trans-unit id="9df3f57e251c077bef7e7da81677cb971c55b639" datatype="html">
1450 <source>Upload preview</source>
1451 <context-group purpose="location">
1452 <context context-type="sourcefile">app/videos/+video-edit/shared/video-edit.component.ts</context>
1453 <context context-type="linenumber">126</context>
1454 </context-group>
1455 </trans-unit><trans-unit id="b5629d298ff1a69b8db19a4ba2995c76b52da604" datatype="html">
1456 <source>Support</source>
1457 <context-group purpose="location">
1458 <context context-type="sourcefile">app/videos/+video-edit/shared/video-edit.component.ts</context>
1459 <context context-type="linenumber">132</context>
1460 </context-group>
1461 <context-group purpose="location">
1462 <context context-type="sourcefile">app/videos/+video-watch/modal/video-support.component.ts</context>
1463 <context context-type="linenumber">7</context>
1464 </context-group>
1465 <context-group purpose="location">
1466 <context context-type="sourcefile">app/videos/+video-watch/video-watch.component.ts</context>
1467 <context context-type="linenumber">53</context>
1468 </context-group>
1469 </trans-unit><trans-unit id="f61f989de6fc12f99369a90800e4b5462d3f10a0" datatype="html">
1470 <source>Short text to tell people how they can support you (membership platform...).</source>
1471 <context-group purpose="location">
1472 <context context-type="sourcefile">app/videos/+video-edit/shared/video-edit.component.ts</context>
1473 <context context-type="linenumber">133</context>
1474 </context-group>
1475 </trans-unit><trans-unit id="c07377d8b52fde03fcf70824a980346b9222d056" datatype="html">
1476 <source>(extensions: &lt;x id="INTERPOLATION" equiv-text="{{ videoImageExtensions }}"/&gt;, max size: &lt;x id="INTERPOLATION_1" equiv-text="{{ maxVideoImageSize | bytes }}"/&gt;)</source>
1477 <context-group purpose="location">
1478 <context context-type="sourcefile">app/videos/+video-edit/shared/video-image.component.ts</context>
1479 <context context-type="linenumber">11</context>
1480 </context-group>
1481 </trans-unit><trans-unit id="2335f0bd17c63d835b50cfbbcea6c459cb1314c0" datatype="html">
1482 <source>
1483 Update &lt;x id="INTERPOLATION" equiv-text="{{ video?.name }}"/&gt;
1484 </source>
1485 <context-group purpose="location">
1486 <context context-type="sourcefile">app/videos/+video-edit/video-update.component.ts</context>
1487 <context context-type="linenumber">2</context>
1488 </context-group>
1489 </trans-unit><trans-unit id="047f50bc5b5d17b5bec0196355953e1a5c590ddb" datatype="html">
1490 <source>Update</source>
1491 <context-group purpose="location">
1492 <context context-type="sourcefile">app/videos/+video-edit/video-update.component.ts</context>
1493 <context context-type="linenumber">16</context>
1494 </context-group>
1495 <context-group purpose="location">
1496 <context context-type="sourcefile">app/videos/+video-watch/video-watch.component.ts</context>
1497 <context context-type="linenumber">87</context>
1498 </context-group>
1499 </trans-unit><trans-unit id="9aafb2a928664aa7a9375fd37c533f0375f8b611" datatype="html">
1500 <source>Download video</source>
1501 <context-group purpose="location">
1502 <context context-type="sourcefile">app/videos/+video-watch/modal/video-download.component.ts</context>
1503 <context context-type="linenumber">7</context>
1504 </context-group>
1505 </trans-unit><trans-unit id="b92eaf680d6d1cd83e1bc61c3ee88b1b7754eb66" datatype="html">
1506 <source>Torrent</source>
1507 <context-group purpose="location">
1508 <context context-type="sourcefile">app/videos/+video-watch/modal/video-download.component.ts</context>
1509 <context context-type="linenumber">20</context>
1510 </context-group>
1511 </trans-unit><trans-unit id="8d6a41c2703bed3edfc76e1df0b1ca203404c17c" datatype="html">
1512 <source>Direct download</source>
1513 <context-group purpose="location">
1514 <context context-type="sourcefile">app/videos/+video-watch/modal/video-download.component.ts</context>
1515 <context context-type="linenumber">25</context>
1516 </context-group>
1517 </trans-unit><trans-unit id="dc75033a5238fdc4f462212c847a45ba8018a3fd" datatype="html">
1518 <source>Download</source>
1519 <context-group purpose="location">
1520 <context context-type="sourcefile">app/videos/+video-watch/modal/video-download.component.ts</context>
1521 <context context-type="linenumber">35</context>
1522 </context-group>
1523 <context-group purpose="location">
1524 <context context-type="sourcefile">app/videos/+video-watch/video-watch.component.ts</context>
1525 <context context-type="linenumber">69</context>
1526 </context-group>
1527 </trans-unit><trans-unit id="11749f4fc0aa1b5e37f38575e4d4e3b1b7e0e96b" datatype="html">
1528 <source>Report video</source>
1529 <context-group purpose="location">
1530 <context context-type="sourcefile">app/videos/+video-watch/modal/video-report.component.ts</context>
1531 <context context-type="linenumber">7</context>
1532 </context-group>
1533 </trans-unit><trans-unit id="bb44873ad8d4c5dbad0ac2a6a50e0ceee9119125" datatype="html">
1534 <source>Reason...</source>
1535 <context-group purpose="location">
1536 <context context-type="sourcefile">app/videos/+video-watch/modal/video-report.component.ts</context>
1537 <context context-type="linenumber">14</context>
1538 </context-group>
1539 </trans-unit><trans-unit id="0e6b8229bd65f93bc8040d0fb598967f220740c7" datatype="html">
1540 <source>
1541 Cancel
1542 </source>
1543 <context-group purpose="location">
1544 <context context-type="sourcefile">app/videos/+video-watch/modal/video-report.component.ts</context>
1545 <context context-type="linenumber">22</context>
1546 </context-group>
1547 </trans-unit><trans-unit id="71c77bb8cecdf11ec3eead24dd1ba506573fa9cd" datatype="html">
1548 <source>Submit</source>
1549 <context-group purpose="location">
1550 <context context-type="sourcefile">app/videos/+video-watch/modal/video-report.component.ts</context>
1551 <context context-type="linenumber">27</context>
1552 </context-group>
1553 </trans-unit><trans-unit id="0bd8b27f60a1f098a53e06328426d818e3508ff9" datatype="html">
1554 <source>Share</source>
1555 <context-group purpose="location">
1556 <context context-type="sourcefile">app/videos/+video-watch/modal/video-share.component.ts</context>
1557 <context context-type="linenumber">7</context>
1558 </context-group>
1559 <context-group purpose="location">
1560 <context context-type="sourcefile">app/videos/+video-watch/video-watch.component.ts</context>
1561 <context context-type="linenumber">58</context>
1562 </context-group>
1563 </trans-unit><trans-unit id="801b98c6f02fe3b32f6afa3ee854c99ed83474e6" datatype="html">
1564 <source>URL</source>
1565 <context-group purpose="location">
1566 <context context-type="sourcefile">app/videos/+video-watch/modal/video-share.component.ts</context>
1567 <context context-type="linenumber">12</context>
1568 </context-group>
1569 </trans-unit><trans-unit id="d3b15c3bf4a7ea38d6002d2d2c4781642d30e79c" datatype="html">
1570 <source>Embed</source>
1571 <context-group purpose="location">
1572 <context context-type="sourcefile">app/videos/+video-watch/modal/video-share.component.ts</context>
1573 <context context-type="linenumber">24</context>
1574 </context-group>
1575 </trans-unit><trans-unit id="239fe0316cfe91aa6e1e7bf1ef19e3b7772131f8" datatype="html">
1576 <source>
1577 The url is not secured (no HTTPS), so the embed video won&apos;t work on HTTPS websites (web browsers block non secured HTTP requests on HTTPS websites).
1578 </source>
1579 <context-group purpose="location">
1580 <context context-type="sourcefile">app/videos/+video-watch/modal/video-share.component.ts</context>
1581 <context context-type="linenumber">35</context>
1582 </context-group>
13 </trans-unit><trans-unit id="5f60990802486b7906b422d80aace6a1b19dcc02" datatype="html"> 1583 </trans-unit><trans-unit id="5f60990802486b7906b422d80aace6a1b19dcc02" datatype="html">
14 <source>Video not found :&apos;(</source> 1584 <source>Video not found :&apos;(</source>
15 <context-group purpose="location"> 1585 <context-group purpose="location">
@@ -60,24 +1630,6 @@
60 <context context-type="sourcefile">app/videos/+video-watch/video-watch.component.ts</context> 1630 <context context-type="sourcefile">app/videos/+video-watch/video-watch.component.ts</context>
61 <context context-type="linenumber">48</context> 1631 <context context-type="linenumber">48</context>
62 </context-group> 1632 </context-group>
63 </trans-unit><trans-unit id="b5629d298ff1a69b8db19a4ba2995c76b52da604" datatype="html">
64 <source>Support</source>
65 <context-group purpose="location">
66 <context context-type="sourcefile">app/videos/+video-watch/video-watch.component.ts</context>
67 <context context-type="linenumber">53</context>
68 </context-group>
69 </trans-unit><trans-unit id="0bd8b27f60a1f098a53e06328426d818e3508ff9" datatype="html">
70 <source>Share</source>
71 <context-group purpose="location">
72 <context context-type="sourcefile">app/videos/+video-watch/video-watch.component.ts</context>
73 <context context-type="linenumber">58</context>
74 </context-group>
75 </trans-unit><trans-unit id="dc75033a5238fdc4f462212c847a45ba8018a3fd" datatype="html">
76 <source>Download</source>
77 <context-group purpose="location">
78 <context context-type="sourcefile">app/videos/+video-watch/video-watch.component.ts</context>
79 <context context-type="linenumber">69</context>
80 </context-group>
81 </trans-unit><trans-unit id="144fff5c40b85414d59e644d8dee7cfefba925a2" datatype="html"> 1633 </trans-unit><trans-unit id="144fff5c40b85414d59e644d8dee7cfefba925a2" datatype="html">
82 <source>Download the video</source> 1634 <source>Download the video</source>
83 <context-group purpose="location"> 1635 <context-group purpose="location">
@@ -108,12 +1660,6 @@
108 <context context-type="sourcefile">app/videos/+video-watch/video-watch.component.ts</context> 1660 <context context-type="sourcefile">app/videos/+video-watch/video-watch.component.ts</context>
109 <context context-type="linenumber">80</context> 1661 <context context-type="linenumber">80</context>
110 </context-group> 1662 </context-group>
111 </trans-unit><trans-unit id="047f50bc5b5d17b5bec0196355953e1a5c590ddb" datatype="html">
112 <source>Update</source>
113 <context-group purpose="location">
114 <context context-type="sourcefile">app/videos/+video-watch/video-watch.component.ts</context>
115 <context context-type="linenumber">87</context>
116 </context-group>
117 </trans-unit><trans-unit id="cd27f761b923a5bdb16ba9844da632edd878f1b1" datatype="html"> 1663 </trans-unit><trans-unit id="cd27f761b923a5bdb16ba9844da632edd878f1b1" datatype="html">
118 <source>Update this video</source> 1664 <source>Update this video</source>
119 <context-group purpose="location"> 1665 <context-group purpose="location">
@@ -126,6 +1672,10 @@
126 <context context-type="sourcefile">app/videos/+video-watch/video-watch.component.ts</context> 1672 <context context-type="sourcefile">app/videos/+video-watch/video-watch.component.ts</context>
127 <context context-type="linenumber">93</context> 1673 <context context-type="linenumber">93</context>
128 </context-group> 1674 </context-group>
1675 <context-group purpose="location">
1676 <context context-type="sourcefile">app/videos/+video-watch/comment/video-comment.component.ts</context>
1677 <context context-type="linenumber">15</context>
1678 </context-group>
129 </trans-unit><trans-unit id="3dbfdc68f83d91cb360172eb65578cae94e7cbe5" datatype="html"> 1679 </trans-unit><trans-unit id="3dbfdc68f83d91cb360172eb65578cae94e7cbe5" datatype="html">
130 <source>Delete this video</source> 1680 <source>Delete this video</source>
131 <context-group purpose="location"> 1681 <context-group purpose="location">
@@ -226,35 +1776,227 @@
226 <context context-type="sourcefile">app/videos/+video-watch/video-watch.component.ts</context> 1776 <context context-type="sourcefile">app/videos/+video-watch/video-watch.component.ts</context>
227 <context context-type="linenumber">195</context> 1777 <context context-type="linenumber">195</context>
228 </context-group> 1778 </context-group>
1779 </trans-unit><trans-unit id="4b1a394a3d619606f79b1051b1493e6b743a072d" datatype="html">
1780 <source>You can either comment on the page of your instance where this video is federated with your PeerTube account, or via any ActivityPub-capable fediverse instance. For instance with Mastodon or Pleroma you can type in the search box &lt;strong&gt;@&lt;x id="INTERPOLATION" equiv-text="{{video.account.displayName}}"/&gt;@&lt;x id="INTERPOLATION_1" equiv-text="{{video.account.host}}"/&gt;&lt;/strong&gt; and find back the video. Direct commenting capabilities are being worked on in &lt;a href=&apos;https://github.com/Chocobozzz/PeerTube/issues/224&apos;&gt;#224&lt;/a&gt;.</source>
1781 <context-group purpose="location">
1782 <context context-type="sourcefile">app/videos/+video-watch/comment/video-comments.component.ts</context>
1783 <context context-type="linenumber">8</context>
1784 </context-group>
1785 </trans-unit><trans-unit id="17810e68b0ba21e62e61eecfaf0a93b2c91033b4" datatype="html">
1786 <source>No comments.</source>
1787 <context-group purpose="location">
1788 <context context-type="sourcefile">app/videos/+video-watch/comment/video-comments.component.ts</context>
1789 <context context-type="linenumber">20</context>
1790 </context-group>
1791 </trans-unit><trans-unit id="69c081796209e45e26af91152ec9bd0a65ec261e" datatype="html">
1792 <source>View all &lt;x id="INTERPOLATION" equiv-text="{{ comment.totalReplies }}"/&gt; replies</source>
1793 <context-group purpose="location">
1794 <context context-type="sourcefile">app/videos/+video-watch/comment/video-comments.component.ts</context>
1795 <context context-type="linenumber">56</context>
1796 </context-group>
1797 </trans-unit><trans-unit id="b7fccd922d6473725247ed85a9fdf96fe6794828" datatype="html">
1798 <source>
1799 Comments are disabled.
1800 </source>
1801 <context-group purpose="location">
1802 <context context-type="sourcefile">app/videos/+video-watch/comment/video-comments.component.ts</context>
1803 <context context-type="linenumber">65</context>
1804 </context-group>
1805 </trans-unit><trans-unit id="db79255cb8757e9e945ba5f901a2b67e4189016e" datatype="html">
1806 <source>Add comment...</source>
1807 <context-group purpose="location">
1808 <context context-type="sourcefile">app/videos/+video-watch/comment/video-comment-add.component.ts</context>
1809 <context context-type="linenumber">6</context>
1810 </context-group>
1811 </trans-unit><trans-unit id="26fa50ba8e69b53162b348d98e25f8b76c81343e" datatype="html">
1812 <source>
1813 Post comment
1814 </source>
1815 <context-group purpose="location">
1816 <context context-type="sourcefile">app/videos/+video-watch/comment/video-comment-add.component.ts</context>
1817 <context context-type="linenumber">17</context>
1818 </context-group>
1819 </trans-unit><trans-unit id="a607fab03e11b0e07c1640e11a1b02d7af06b285" datatype="html">
1820 <source>Highlighted comment</source>
1821 <context-group purpose="location">
1822 <context context-type="sourcefile">app/videos/+video-watch/comment/video-comment.component.ts</context>
1823 <context context-type="linenumber">5</context>
1824 </context-group>
1825 </trans-unit><trans-unit id="cb23d4d98007aa4d7123837f4c17a671848377d6" datatype="html">
1826 <source>Reply</source>
1827 <context-group purpose="location">
1828 <context context-type="sourcefile">app/videos/+video-watch/comment/video-comment.component.ts</context>
1829 <context context-type="linenumber">14</context>
1830 </context-group>
229 </trans-unit> 1831 </trans-unit>
230 <trans-unit id="23b2c2f4dd69e29c3bff00469e259dcb01de5633" datatype="html"> 1832 <trans-unit id="37b56526e384f843a15323dc730b484a97b4c968" datatype="html">
231 <source>Do you really want to blacklist this video?</source> 1833 <source>No description</source>
232 <context-group purpose="location"> 1834 <context-group purpose="location">
233 <context context-type="sourcefile">src/app/videos/+video-watch/video-watch.component.ts</context> 1835 <context context-type="sourcefile">src/app/+accounts/account-about/account-about.component.ts</context>
1836 <context context-type="linenumber">1</context>
1837 </context-group>
1838 <context-group purpose="location">
1839 <context context-type="sourcefile">src/app/+video-channels/video-channel-about/video-channel-about.component.ts</context>
234 <context context-type="linenumber">1</context> 1840 <context context-type="linenumber">1</context>
235 </context-group> 1841 </context-group>
236 </trans-unit> 1842 </trans-unit>
237 <trans-unit id="1e035e6ccfab771cad4226b2ad230cb0d4a88cba" datatype="html"> 1843 <trans-unit id="2f03e577e8f81a9f8be0095f93e1f9376c6eedc9" datatype="html">
238 <source>Success</source> 1844 <source>Published videos</source>
239 <context-group purpose="location"> 1845 <context-group purpose="location">
240 <context context-type="sourcefile">src/app/videos/+video-watch/video-watch.component.ts</context> 1846 <context context-type="sourcefile">src/app/+accounts/account-videos/account-videos.component.ts</context>
241 <context context-type="linenumber">1</context> 1847 <context context-type="linenumber">1</context>
242 </context-group> 1848 </context-group>
243 <context-group purpose="location"> 1849 <context-group purpose="location">
244 <context context-type="sourcefile">src/app/videos/+video-watch/video-watch.component.ts</context> 1850 <context context-type="sourcefile">src/app/+video-channels/video-channel-videos/video-channel-videos.component.ts</context>
245 <context context-type="linenumber">1</context> 1851 <context context-type="linenumber">1</context>
246 </context-group> 1852 </context-group>
247 </trans-unit> 1853 </trans-unit>
248 <trans-unit id="085d56464b75ae5c1e370f5290e4c4cf23961a61" datatype="html"> 1854 <trans-unit id="b0ea97653991a80d6324423949d37b8f165a4505" datatype="html">
249 <source>Video &lt;x id="INTERPOLATION" equiv-text="{{ videoName }}"/&gt; had been blacklisted.</source> 1855 <source>Published &lt;x id="INTERPOLATION" equiv-text="{{ totalVideos }}"/&gt; videos</source>
250 <context-group purpose="location"> 1856 <context-group purpose="location">
251 <context context-type="sourcefile">src/app/videos/+video-watch/video-watch.component.ts</context> 1857 <context context-type="sourcefile">src/app/+accounts/account-videos/account-videos.component.ts</context>
1858 <context context-type="linenumber">1</context>
1859 </context-group>
1860 <context-group purpose="location">
1861 <context context-type="sourcefile">src/app/+video-channels/video-channel-videos/video-channel-videos.component.ts</context>
252 <context context-type="linenumber">1</context> 1862 <context context-type="linenumber">1</context>
253 </context-group> 1863 </context-group>
254 </trans-unit> 1864 </trans-unit>
255 <trans-unit id="6080b77234e92ad41bb52653b239c4c4f851317d" datatype="html"> 1865 <trans-unit id="6080b77234e92ad41bb52653b239c4c4f851317d" datatype="html">
256 <source>Error</source> 1866 <source>Error</source>
257 <context-group purpose="location"> 1867 <context-group purpose="location">
1868 <context context-type="sourcefile">src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts</context>
1869 <context context-type="linenumber">1</context>
1870 </context-group>
1871 <context-group purpose="location">
1872 <context context-type="sourcefile">src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts</context>
1873 <context context-type="linenumber">1</context>
1874 </context-group>
1875 <context-group purpose="location">
1876 <context context-type="sourcefile">src/app/+admin/follows/followers-list/followers-list.component.ts</context>
1877 <context context-type="linenumber">1</context>
1878 </context-group>
1879 <context-group purpose="location">
1880 <context context-type="sourcefile">src/app/+admin/follows/following-add/following-add.component.ts</context>
1881 <context context-type="linenumber">1</context>
1882 </context-group>
1883 <context-group purpose="location">
1884 <context context-type="sourcefile">src/app/+admin/follows/following-list/following-list.component.ts</context>
1885 <context context-type="linenumber">1</context>
1886 </context-group>
1887 <context-group purpose="location">
1888 <context context-type="sourcefile">src/app/+admin/follows/following-list/following-list.component.ts</context>
1889 <context context-type="linenumber">1</context>
1890 </context-group>
1891 <context-group purpose="location">
1892 <context context-type="sourcefile">src/app/+admin/jobs/jobs-list/jobs-list.component.ts</context>
1893 <context context-type="linenumber">1</context>
1894 </context-group>
1895 <context-group purpose="location">
1896 <context context-type="sourcefile">src/app/+admin/users/user-list/user-list.component.ts</context>
1897 <context context-type="linenumber">1</context>
1898 </context-group>
1899 <context-group purpose="location">
1900 <context context-type="sourcefile">src/app/+admin/users/user-list/user-list.component.ts</context>
1901 <context context-type="linenumber">1</context>
1902 </context-group>
1903 <context-group purpose="location">
1904 <context context-type="sourcefile">src/app/+admin/users/user-list/user-list.component.ts</context>
1905 <context context-type="linenumber">1</context>
1906 </context-group>
1907 <context-group purpose="location">
1908 <context context-type="sourcefile">src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.ts</context>
1909 <context context-type="linenumber">1</context>
1910 </context-group>
1911 <context-group purpose="location">
1912 <context context-type="sourcefile">src/app/+admin/video-blacklist/video-blacklist-list/video-blacklist-list.component.ts</context>
1913 <context context-type="linenumber">1</context>
1914 </context-group>
1915 <context-group purpose="location">
1916 <context context-type="sourcefile">src/app/+admin/video-blacklist/video-blacklist-list/video-blacklist-list.component.ts</context>
1917 <context context-type="linenumber">1</context>
1918 </context-group>
1919 <context-group purpose="location">
1920 <context context-type="sourcefile">src/app/+my-account/my-account-settings/my-account-settings.component.ts</context>
1921 <context context-type="linenumber">1</context>
1922 </context-group>
1923 <context-group purpose="location">
1924 <context context-type="sourcefile">src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.ts</context>
1925 <context context-type="linenumber">1</context>
1926 </context-group>
1927 <context-group purpose="location">
1928 <context context-type="sourcefile">src/app/+my-account/my-account-video-channels/my-account-video-channels.component.ts</context>
1929 <context context-type="linenumber">1</context>
1930 </context-group>
1931 <context-group purpose="location">
1932 <context context-type="sourcefile">src/app/core/auth/auth.service.ts</context>
1933 <context context-type="linenumber">1</context>
1934 </context-group>
1935 <context-group purpose="location">
1936 <context context-type="sourcefile">src/app/login/login.component.ts</context>
1937 <context context-type="linenumber">1</context>
1938 </context-group>
1939 <context-group purpose="location">
1940 <context context-type="sourcefile">src/app/reset-password/reset-password.component.ts</context>
1941 <context context-type="linenumber">1</context>
1942 </context-group>
1943 <context-group purpose="location">
1944 <context context-type="sourcefile">src/app/videos/+video-edit/video-add.component.ts</context>
1945 <context context-type="linenumber">1</context>
1946 </context-group>
1947 <context-group purpose="location">
1948 <context context-type="sourcefile">src/app/videos/+video-edit/video-add.component.ts</context>
1949 <context context-type="linenumber">1</context>
1950 </context-group>
1951 <context-group purpose="location">
1952 <context context-type="sourcefile">src/app/videos/+video-edit/video-add.component.ts</context>
1953 <context context-type="linenumber">1</context>
1954 </context-group>
1955 <context-group purpose="location">
1956 <context context-type="sourcefile">src/app/videos/+video-edit/video-add.component.ts</context>
1957 <context context-type="linenumber">1</context>
1958 </context-group>
1959 <context-group purpose="location">
1960 <context context-type="sourcefile">src/app/videos/+video-edit/video-update.component.ts</context>
1961 <context context-type="linenumber">1</context>
1962 </context-group>
1963 <context-group purpose="location">
1964 <context context-type="sourcefile">src/app/videos/+video-edit/video-update.component.ts</context>
1965 <context context-type="linenumber">1</context>
1966 </context-group>
1967 <context-group purpose="location">
1968 <context context-type="sourcefile">src/app/videos/+video-watch/comment/video-comment-add.component.ts</context>
1969 <context context-type="linenumber">1</context>
1970 </context-group>
1971 <context-group purpose="location">
1972 <context context-type="sourcefile">src/app/videos/+video-watch/comment/video-comments.component.ts</context>
1973 <context context-type="linenumber">1</context>
1974 </context-group>
1975 <context-group purpose="location">
1976 <context context-type="sourcefile">src/app/videos/+video-watch/comment/video-comments.component.ts</context>
1977 <context context-type="linenumber">1</context>
1978 </context-group>
1979 <context-group purpose="location">
1980 <context context-type="sourcefile">src/app/videos/+video-watch/comment/video-comments.component.ts</context>
1981 <context context-type="linenumber">1</context>
1982 </context-group>
1983 <context-group purpose="location">
1984 <context context-type="sourcefile">src/app/videos/+video-watch/modal/video-report.component.ts</context>
1985 <context context-type="linenumber">1</context>
1986 </context-group>
1987 <context-group purpose="location">
1988 <context context-type="sourcefile">src/app/videos/+video-watch/video-watch.component.ts</context>
1989 <context context-type="linenumber">1</context>
1990 </context-group>
1991 <context-group purpose="location">
1992 <context context-type="sourcefile">src/app/videos/+video-watch/video-watch.component.ts</context>
1993 <context context-type="linenumber">1</context>
1994 </context-group>
1995 <context-group purpose="location">
1996 <context context-type="sourcefile">src/app/videos/+video-watch/video-watch.component.ts</context>
1997 <context context-type="linenumber">1</context>
1998 </context-group>
1999 <context-group purpose="location">
258 <context context-type="sourcefile">src/app/videos/+video-watch/video-watch.component.ts</context> 2000 <context context-type="sourcefile">src/app/videos/+video-watch/video-watch.component.ts</context>
259 <context context-type="linenumber">1</context> 2001 <context context-type="linenumber">1</context>
260 </context-group> 2002 </context-group>
@@ -266,14 +2008,644 @@
266 <context context-type="sourcefile">src/app/videos/+video-watch/video-watch.component.ts</context> 2008 <context context-type="sourcefile">src/app/videos/+video-watch/video-watch.component.ts</context>
267 <context context-type="linenumber">1</context> 2009 <context context-type="linenumber">1</context>
268 </context-group> 2010 </context-group>
2011 </trans-unit>
2012 <trans-unit id="6b988bab9e171f65ed3510e8a66b9c5f7fcc5209" datatype="html">
2013 <source>You set custom &lt;x id="INTERPOLATION" equiv-text="{{ customizationsText }}"/&gt;. </source>
2014 <context-group purpose="location">
2015 <context context-type="sourcefile">src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts</context>
2016 <context context-type="linenumber">1</context>
2017 </context-group>
2018 </trans-unit>
2019 <trans-unit id="865bc18d22e223101ede0916967ead0abd515d0e" datatype="html">
2020 <source>This could lead to security issues or bugs if you do not understand it. </source>
2021 <context-group purpose="location">
2022 <context context-type="sourcefile">src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts</context>
2023 <context context-type="linenumber">1</context>
2024 </context-group>
2025 </trans-unit>
2026 <trans-unit id="262e18b2efb5912651684a522fc08d77c99972d0" datatype="html">
2027 <source>Are you sure you want to update the configuration?</source>
2028 <context-group purpose="location">
2029 <context context-type="sourcefile">src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts</context>
2030 <context context-type="linenumber">1</context>
2031 </context-group>
2032 </trans-unit>
2033 <trans-unit id="03b6bae23e3f895ed8f53e3b29fad0cafc7dd002" datatype="html">
2034 <source>Please type &quot;I understand the &lt;x id="INTERPOLATION" equiv-text="{{ customizationsText }}"/&gt; I set&quot; to confirm.</source>
2035 <context-group purpose="location">
2036 <context context-type="sourcefile">src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts</context>
2037 <context context-type="linenumber">1</context>
2038 </context-group>
2039 </trans-unit>
2040 <trans-unit id="892eb3bbce40125f9ed1dc13078d2938b921ff53" datatype="html">
2041 <source>I understand the &lt;x id="INTERPOLATION" equiv-text="{{ customizationsText }}"/&gt; I set</source>
2042 <context-group purpose="location">
2043 <context context-type="sourcefile">src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts</context>
2044 <context context-type="linenumber">1</context>
2045 </context-group>
2046 </trans-unit>
2047 <trans-unit id="1e035e6ccfab771cad4226b2ad230cb0d4a88cba" datatype="html">
2048 <source>Success</source>
2049 <context-group purpose="location">
2050 <context context-type="sourcefile">src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts</context>
2051 <context context-type="linenumber">1</context>
2052 </context-group>
2053 <context-group purpose="location">
2054 <context context-type="sourcefile">src/app/+admin/follows/following-add/following-add.component.ts</context>
2055 <context context-type="linenumber">1</context>
2056 </context-group>
2057 <context-group purpose="location">
2058 <context context-type="sourcefile">src/app/+admin/follows/following-list/following-list.component.ts</context>
2059 <context context-type="linenumber">1</context>
2060 </context-group>
2061 <context-group purpose="location">
2062 <context context-type="sourcefile">src/app/+admin/users/user-edit/user-create.component.ts</context>
2063 <context context-type="linenumber">1</context>
2064 </context-group>
2065 <context-group purpose="location">
2066 <context context-type="sourcefile">src/app/+admin/users/user-edit/user-update.component.ts</context>
2067 <context context-type="linenumber">1</context>
2068 </context-group>
2069 <context-group purpose="location">
2070 <context context-type="sourcefile">src/app/+admin/users/user-list/user-list.component.ts</context>
2071 <context context-type="linenumber">1</context>
2072 </context-group>
2073 <context-group purpose="location">
2074 <context context-type="sourcefile">src/app/+admin/video-blacklist/video-blacklist-list/video-blacklist-list.component.ts</context>
2075 <context context-type="linenumber">1</context>
2076 </context-group>
2077 <context-group purpose="location">
2078 <context context-type="sourcefile">src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.ts</context>
2079 <context context-type="linenumber">1</context>
2080 </context-group>
2081 <context-group purpose="location">
2082 <context context-type="sourcefile">src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.ts</context>
2083 <context context-type="linenumber">1</context>
2084 </context-group>
2085 <context-group purpose="location">
2086 <context context-type="sourcefile">src/app/+my-account/my-account-settings/my-account-settings.component.ts</context>
2087 <context context-type="linenumber">1</context>
2088 </context-group>
2089 <context-group purpose="location">
2090 <context context-type="sourcefile">src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.ts</context>
2091 <context context-type="linenumber">1</context>
2092 </context-group>
2093 <context-group purpose="location">
2094 <context context-type="sourcefile">src/app/+my-account/my-account-video-channels/my-account-video-channel-create.component.ts</context>
2095 <context context-type="linenumber">1</context>
2096 </context-group>
2097 <context-group purpose="location">
2098 <context context-type="sourcefile">src/app/+my-account/my-account-video-channels/my-account-video-channel-update.component.ts</context>
2099 <context context-type="linenumber">1</context>
2100 </context-group>
2101 <context-group purpose="location">
2102 <context context-type="sourcefile">src/app/+my-account/my-account-video-channels/my-account-video-channels.component.ts</context>
2103 <context context-type="linenumber">1</context>
2104 </context-group>
2105 <context-group purpose="location">
2106 <context context-type="sourcefile">src/app/login/login.component.ts</context>
2107 <context context-type="linenumber">1</context>
2108 </context-group>
2109 <context-group purpose="location">
2110 <context context-type="sourcefile">src/app/reset-password/reset-password.component.ts</context>
2111 <context context-type="linenumber">1</context>
2112 </context-group>
2113 <context-group purpose="location">
2114 <context context-type="sourcefile">src/app/signup/signup.component.ts</context>
2115 <context context-type="linenumber">1</context>
2116 </context-group>
2117 <context-group purpose="location">
2118 <context context-type="sourcefile">src/app/videos/+video-edit/video-add.component.ts</context>
2119 <context context-type="linenumber">1</context>
2120 </context-group>
2121 <context-group purpose="location">
2122 <context context-type="sourcefile">src/app/videos/+video-edit/video-update.component.ts</context>
2123 <context context-type="linenumber">1</context>
2124 </context-group>
2125 <context-group purpose="location">
2126 <context context-type="sourcefile">src/app/videos/+video-watch/modal/video-report.component.ts</context>
2127 <context context-type="linenumber">1</context>
2128 </context-group>
2129 <context-group purpose="location">
2130 <context context-type="sourcefile">src/app/videos/+video-watch/modal/video-share.component.ts</context>
2131 <context context-type="linenumber">1</context>
2132 </context-group>
2133 <context-group purpose="location">
2134 <context context-type="sourcefile">src/app/videos/+video-watch/video-watch.component.ts</context>
2135 <context context-type="linenumber">1</context>
2136 </context-group>
269 <context-group purpose="location"> 2137 <context-group purpose="location">
270 <context context-type="sourcefile">src/app/videos/+video-watch/video-watch.component.ts</context> 2138 <context context-type="sourcefile">src/app/videos/+video-watch/video-watch.component.ts</context>
271 <context context-type="linenumber">1</context> 2139 <context context-type="linenumber">1</context>
272 </context-group> 2140 </context-group>
2141 </trans-unit>
2142 <trans-unit id="b9e64712e3e5c342ce9cd32eec6cd7d6c00f4048" datatype="html">
2143 <source>Configuration updated.</source>
2144 <context-group purpose="location">
2145 <context context-type="sourcefile">src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts</context>
2146 <context context-type="linenumber">1</context>
2147 </context-group>
2148 </trans-unit>
2149 <trans-unit id="511be2e1ddb087fe7a0d95654f5f72b446d3da87" datatype="html">
2150 <source>&lt;x id="INTERPOLATION" equiv-text="{{ host }}"/&gt; is not valid</source>
2151 <context-group purpose="location">
2152 <context context-type="sourcefile">src/app/+admin/follows/following-add/following-add.component.ts</context>
2153 <context context-type="linenumber">1</context>
2154 </context-group>
2155 </trans-unit>
2156 <trans-unit id="e02f50674f1d96966384dc096beb42d4973997df" datatype="html">
2157 <source>You need to specify hosts to follow.</source>
2158 <context-group purpose="location">
2159 <context context-type="sourcefile">src/app/+admin/follows/following-add/following-add.component.ts</context>
2160 <context context-type="linenumber">1</context>
2161 </context-group>
2162 </trans-unit>
2163 <trans-unit id="c2a114eb000e7c38e8ad4b1768821bdf6e946d71" datatype="html">
2164 <source>Hosts need to be unique.</source>
2165 <context-group purpose="location">
2166 <context context-type="sourcefile">src/app/+admin/follows/following-add/following-add.component.ts</context>
2167 <context context-type="linenumber">1</context>
2168 </context-group>
2169 </trans-unit>
2170 <trans-unit id="a6718d6aaf5bcd1692eed48daa61d2bed62c1f50" datatype="html">
2171 <source>If you confirm, you will send a follow request to:<x id="LINE_BREAK" ctype="lb" equiv-text="&lt;br/&gt;"/> - </source>
2172 <context-group purpose="location">
2173 <context context-type="sourcefile">src/app/+admin/follows/following-add/following-add.component.ts</context>
2174 <context context-type="linenumber">1</context>
2175 </context-group>
2176 </trans-unit>
2177 <trans-unit id="1266acb081ef0324c4a38ae2d514dd75d8b38409" datatype="html">
2178 <source>Follow new server(s)</source>
2179 <context-group purpose="location">
2180 <context context-type="sourcefile">src/app/+admin/follows/following-add/following-add.component.ts</context>
2181 <context context-type="linenumber">1</context>
2182 </context-group>
2183 </trans-unit>
2184 <trans-unit id="950f5111d567e5c0e971f07c26e8c2be1d919a8e" datatype="html">
2185 <source>Follow request(s) sent!</source>
2186 <context-group purpose="location">
2187 <context context-type="sourcefile">src/app/+admin/follows/following-add/following-add.component.ts</context>
2188 <context context-type="linenumber">1</context>
2189 </context-group>
2190 </trans-unit>
2191 <trans-unit id="b1f6b95a2d83bc589955f2679de00ce70fa03594" datatype="html">
2192 <source>Do you really want to unfollow &lt;x id="INTERPOLATION" equiv-text="{{ host }}"/&gt;?</source>
2193 <context-group purpose="location">
2194 <context context-type="sourcefile">src/app/+admin/follows/following-list/following-list.component.ts</context>
2195 <context context-type="linenumber">1</context>
2196 </context-group>
2197 </trans-unit>
2198 <trans-unit id="a89875525c82ab81ffe32e481a5475b43d0c2902" datatype="html">
2199 <source>Unfollow</source>
2200 <context-group purpose="location">
2201 <context context-type="sourcefile">src/app/+admin/follows/following-list/following-list.component.ts</context>
2202 <context context-type="linenumber">1</context>
2203 </context-group>
2204 </trans-unit>
2205 <trans-unit id="c02051988cf0b04bc8bea7602c909c4835ed770f" datatype="html">
2206 <source>You are not following &lt;x id="INTERPOLATION" equiv-text="{{ host }}"/&gt; anymore.</source>
2207 <context-group purpose="location">
2208 <context context-type="sourcefile">src/app/+admin/follows/following-list/following-list.component.ts</context>
2209 <context context-type="linenumber">1</context>
2210 </context-group>
2211 </trans-unit>
2212 <trans-unit id="fed7ccf455d8457dfe6b8650161b2ba991fc3162" datatype="html">
2213 <source>User &lt;x id="INTERPOLATION" equiv-text="{{ username }}"/&gt; created.</source>
2214 <context-group purpose="location">
2215 <context context-type="sourcefile">src/app/+admin/users/user-edit/user-create.component.ts</context>
2216 <context context-type="linenumber">1</context>
2217 </context-group>
2218 </trans-unit>
2219 <trans-unit id="047fa00d26afadba9a3c82453e653ba863ed048b" datatype="html">
2220 <source>User &lt;x id="INTERPOLATION" equiv-text="{{ username }}"/&gt; updated.</source>
2221 <context-group purpose="location">
2222 <context context-type="sourcefile">src/app/+admin/users/user-edit/user-update.component.ts</context>
2223 <context context-type="linenumber">1</context>
2224 </context-group>
2225 </trans-unit>
2226 <trans-unit id="9910122dfedd2eaa544a990f1430e5b82a76d99f" datatype="html">
2227 <source>Update user</source>
2228 <context-group purpose="location">
2229 <context context-type="sourcefile">src/app/+admin/users/user-edit/user-update.component.ts</context>
2230 <context context-type="linenumber">1</context>
2231 </context-group>
2232 </trans-unit>
2233 <trans-unit id="911fc197949e47aa5f0541627bc319f59edd9d11" datatype="html">
2234 <source>You cannot delete root.</source>
2235 <context-group purpose="location">
2236 <context context-type="sourcefile">src/app/+admin/users/user-list/user-list.component.ts</context>
2237 <context context-type="linenumber">1</context>
2238 </context-group>
2239 </trans-unit>
2240 <trans-unit id="9ef88654aab4b2df4fa2083f33caa0c5419c1a60" datatype="html">
2241 <source>Do you really want to delete this user?</source>
2242 <context-group purpose="location">
2243 <context context-type="sourcefile">src/app/+admin/users/user-list/user-list.component.ts</context>
2244 <context context-type="linenumber">1</context>
2245 </context-group>
2246 </trans-unit>
2247 <trans-unit id="383611faadd7b4cf0bbc124d2e42b535fa6c2eb0" datatype="html">
2248 <source>User &lt;x id="INTERPOLATION" equiv-text="{{ username }}"/&gt; deleted.</source>
2249 <context-group purpose="location">
2250 <context context-type="sourcefile">src/app/+admin/users/user-list/user-list.component.ts</context>
2251 <context context-type="linenumber">1</context>
2252 </context-group>
2253 </trans-unit>
2254 <trans-unit id="4733ad1d7e63960438c0203b9a64f165b5fc84f2" datatype="html">
2255 <source>Do you really want to remove this video from the blacklist ? It will be available again in the videos list.</source>
2256 <context-group purpose="location">
2257 <context context-type="sourcefile">src/app/+admin/video-blacklist/video-blacklist-list/video-blacklist-list.component.ts</context>
2258 <context context-type="linenumber">1</context>
2259 </context-group>
2260 </trans-unit>
2261 <trans-unit id="4255d5c12ab55f41866ad22453d4b70e0deab89f" datatype="html">
2262 <source>Video &lt;x id="INTERPOLATION" equiv-text="{{ name }}"/&gt; removed from the blacklist.</source>
2263 <context-group purpose="location">
2264 <context context-type="sourcefile">src/app/+admin/video-blacklist/video-blacklist-list/video-blacklist-list.component.ts</context>
2265 <context context-type="linenumber">1</context>
2266 </context-group>
2267 </trans-unit>
2268 <trans-unit id="2db8f1f93a5485c32267762a3bf4da499832e732" datatype="html">
2269 <source>The new password and the confirmed password do not correspond.</source>
2270 <context-group purpose="location">
2271 <context context-type="sourcefile">src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.ts</context>
2272 <context context-type="linenumber">1</context>
2273 </context-group>
2274 </trans-unit>
2275 <trans-unit id="19508af0dfbc685cbf10cf02061bb5a0f423b6fc" datatype="html">
2276 <source>Password updated.</source>
2277 <context-group purpose="location">
2278 <context context-type="sourcefile">src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.ts</context>
2279 <context context-type="linenumber">1</context>
2280 </context-group>
2281 </trans-unit>
2282 <trans-unit id="db4ff52375f6a25ad0472e92754c8c265ae47c6b" datatype="html">
2283 <source>Profile updated.</source>
2284 <context-group purpose="location">
2285 <context context-type="sourcefile">src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.ts</context>
2286 <context context-type="linenumber">1</context>
2287 </context-group>
2288 </trans-unit>
2289 <trans-unit id="aa6fb95c355f172bda303de1ce2f38c251a149cf" datatype="html">
2290 <source>Unlimited</source>
2291 <context-group purpose="location">
2292 <context context-type="sourcefile">src/app/+my-account/my-account-settings/my-account-settings.component.ts</context>
2293 <context context-type="linenumber">1</context>
2294 </context-group>
2295 </trans-unit>
2296 <trans-unit id="1e003ad599ef836949b9f4dad3037a58ef3ff8d1" datatype="html">
2297 <source>Avatar changed.</source>
2298 <context-group purpose="location">
2299 <context context-type="sourcefile">src/app/+my-account/my-account-settings/my-account-settings.component.ts</context>
2300 <context context-type="linenumber">1</context>
2301 </context-group>
2302 </trans-unit>
2303 <trans-unit id="214b802dfd6f544003147a7a68938ec1055c8f32" datatype="html">
2304 <source>Information updated.</source>
2305 <context-group purpose="location">
2306 <context context-type="sourcefile">src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.ts</context>
2307 <context context-type="linenumber">1</context>
2308 </context-group>
2309 </trans-unit>
2310 <trans-unit id="206542c1b57ce583f3cfe68b8609a0c4f791ae0c" datatype="html">
2311 <source>Video channel &lt;x id="INTERPOLATION" equiv-text="{{ videoChannelName }}"/&gt; created.</source>
2312 <context-group purpose="location">
2313 <context context-type="sourcefile">src/app/+my-account/my-account-video-channels/my-account-video-channel-create.component.ts</context>
2314 <context context-type="linenumber">1</context>
2315 </context-group>
2316 </trans-unit>
2317 <trans-unit id="70a67e04629f6d412db0a12d51820b480788d795" datatype="html">
2318 <source>Create</source>
2319 <context-group purpose="location">
2320 <context context-type="sourcefile">src/app/+my-account/my-account-video-channels/my-account-video-channel-create.component.ts</context>
2321 <context context-type="linenumber">1</context>
2322 </context-group>
2323 </trans-unit>
2324 <trans-unit id="8ad57f6504ec3c791c2fc07523053ae4bf12e63e" datatype="html">
2325 <source>Video channel &lt;x id="INTERPOLATION" equiv-text="{{ videoChannelName }}"/&gt; updated.</source>
2326 <context-group purpose="location">
2327 <context context-type="sourcefile">src/app/+my-account/my-account-video-channels/my-account-video-channel-update.component.ts</context>
2328 <context context-type="linenumber">1</context>
2329 </context-group>
2330 </trans-unit>
2331 <trans-unit id="cb033ad5876fce7072bceb4eeba7d2154748153f" datatype="html">
2332 <source>Do you really want to delete &lt;x id="INTERPOLATION" equiv-text="{{ videoChannelName }}"/&gt;? It will delete all videos uploaded in this channel too.</source>
2333 <context-group purpose="location">
2334 <context context-type="sourcefile">src/app/+my-account/my-account-video-channels/my-account-video-channels.component.ts</context>
2335 <context context-type="linenumber">1</context>
2336 </context-group>
2337 </trans-unit>
2338 <trans-unit id="703dee7f3e693f9c77ef17c46f9fa71999609f8e" datatype="html">
2339 <source>Please type the name of the video channel to confirm</source>
2340 <context-group purpose="location">
2341 <context context-type="sourcefile">src/app/+my-account/my-account-video-channels/my-account-video-channels.component.ts</context>
2342 <context context-type="linenumber">1</context>
2343 </context-group>
2344 </trans-unit>
2345 <trans-unit id="504b4bf7053bc5ac9853d4fd7aaa6b38703dcbd2" datatype="html">
2346 <source>Video channel {{ videoChannelName } deleted.</source>
2347 <context-group purpose="location">
2348 <context context-type="sourcefile">src/app/+my-account/my-account-video-channels/my-account-video-channels.component.ts</context>
2349 <context context-type="linenumber">1</context>
2350 </context-group>
2351 </trans-unit>
2352 <trans-unit id="814d28bf9dcbd3122254e664b446ac8e0442bc08" datatype="html">
2353 <source>Error getting about from server</source>
2354 <context-group purpose="location">
2355 <context context-type="sourcefile">src/app/about/about.component.ts</context>
2356 <context context-type="linenumber">1</context>
2357 </context-group>
2358 </trans-unit>
2359 <trans-unit id="070558f351471e268ae7a690ba31ac0c1ead6d8f" datatype="html">
2360 <source>Cannot retrieve OAuth Client credentials: &lt;x id="INTERPOLATION" equiv-text="{{ errorText }}"/&gt;.
2361</source>
2362 <context-group purpose="location">
2363 <context context-type="sourcefile">src/app/core/auth/auth.service.ts</context>
2364 <context context-type="linenumber">1</context>
2365 </context-group>
2366 </trans-unit>
2367 <trans-unit id="8d9b4f4b69108c3c9aa0f3b0dbde87786ba9b319" datatype="html">
2368 <source>Ensure you have correctly configured PeerTube (config/ directory), in particular the &quot;webserver&quot; section.</source>
2369 <context-group purpose="location">
2370 <context context-type="sourcefile">src/app/core/auth/auth.service.ts</context>
2371 <context context-type="linenumber">1</context>
2372 </context-group>
2373 </trans-unit>
2374 <trans-unit id="e31bbf15d6ba5c7c0f17f89a98029cff0bd40b87" datatype="html">
2375 <source>You need to reconnect.</source>
2376 <context-group purpose="location">
2377 <context context-type="sourcefile">src/app/core/auth/auth.service.ts</context>
2378 <context context-type="linenumber">1</context>
2379 </context-group>
2380 </trans-unit>
2381 <trans-unit id="68e710782ccb5398b3acb8844caf0b199da2c3da" datatype="html">
2382 <source>Confirm</source>
2383 <context-group purpose="location">
2384 <context context-type="sourcefile">src/app/core/confirm/confirm.component.ts</context>
2385 <context context-type="linenumber">1</context>
2386 </context-group>
2387 </trans-unit>
2388 <trans-unit id="4fe245955c7ec7d53a4236fda7a985edcb63124c" datatype="html">
2389 <source>An email with the reset password instructions will be sent to &lt;x id="INTERPOLATION" equiv-text="{{ email }}"/&gt;.</source>
2390 <context-group purpose="location">
2391 <context context-type="sourcefile">src/app/login/login.component.ts</context>
2392 <context context-type="linenumber">1</context>
2393 </context-group>
2394 </trans-unit>
2395 <trans-unit id="ccbf0490fb6b60d21e03bb2c9003df0ce1a58752" datatype="html">
2396 <source>Unable to find user id or verification string.</source>
2397 <context-group purpose="location">
2398 <context context-type="sourcefile">src/app/reset-password/reset-password.component.ts</context>
2399 <context context-type="linenumber">1</context>
2400 </context-group>
2401 </trans-unit>
2402 <trans-unit id="b0f24b7136e551a0deba831f1525711245b31a26" datatype="html">
2403 <source>Your password has been successfully reset!</source>
2404 <context-group purpose="location">
2405 <context context-type="sourcefile">src/app/reset-password/reset-password.component.ts</context>
2406 <context context-type="linenumber">1</context>
2407 </context-group>
2408 </trans-unit>
2409 <trans-unit id="0bf41abaa85526711f7952b4600e4044bc7f04a4" datatype="html">
2410 <source>All unsaved data will be lost, are you sure you want to leave this page?</source>
2411 <context-group purpose="location">
2412 <context context-type="sourcefile">src/app/shared/guards/can-deactivate-guard.service.ts</context>
2413 <context context-type="linenumber">1</context>
2414 </context-group>
2415 </trans-unit>
2416 <trans-unit id="a8059e31694578c1b0344a76a345357dd60e8f01" datatype="html">
2417 <source>Warning</source>
2418 <context-group purpose="location">
2419 <context context-type="sourcefile">src/app/shared/guards/can-deactivate-guard.service.ts</context>
2420 <context context-type="linenumber">1</context>
2421 </context-group>
2422 </trans-unit>
2423 <trans-unit id="4ae5829f2615ca2343280765e6b6adfb5cc41128" datatype="html">
2424 <source>&lt;x id="INTERPOLATION" equiv-text="{{ interval }}"/&gt; years ago</source>
2425 <context-group purpose="location">
2426 <context context-type="sourcefile">src/app/shared/misc/from-now.pipe.ts</context>
2427 <context context-type="linenumber">1</context>
2428 </context-group>
2429 </trans-unit>
2430 <trans-unit id="a2bada0a7274e74d4318cc86d413e3ae32f57bdd" datatype="html">
2431 <source>&lt;x id="INTERPOLATION" equiv-text="{{ interval }}"/&gt; months ago</source>
2432 <context-group purpose="location">
2433 <context context-type="sourcefile">src/app/shared/misc/from-now.pipe.ts</context>
2434 <context context-type="linenumber">1</context>
2435 </context-group>
2436 </trans-unit>
2437 <trans-unit id="550f8907c0a4a636d494ed945f3c10dd3a58113a" datatype="html">
2438 <source>&lt;x id="INTERPOLATION" equiv-text="{{ interval }}"/&gt; month ago</source>
2439 <context-group purpose="location">
2440 <context context-type="sourcefile">src/app/shared/misc/from-now.pipe.ts</context>
2441 <context context-type="linenumber">1</context>
2442 </context-group>
2443 </trans-unit>
2444 <trans-unit id="bcc068f243c2f21112b7559f88d1d599b94e2a46" datatype="html">
2445 <source>&lt;x id="INTERPOLATION" equiv-text="{{ interval }}"/&gt; weeks ago</source>
2446 <context-group purpose="location">
2447 <context context-type="sourcefile">src/app/shared/misc/from-now.pipe.ts</context>
2448 <context context-type="linenumber">1</context>
2449 </context-group>
2450 </trans-unit>
2451 <trans-unit id="a8ab22b7de1e4a70285fe7d06962a2140d5a5252" datatype="html">
2452 <source>&lt;x id="INTERPOLATION" equiv-text="{{ interval }}"/&gt; week ago</source>
2453 <context-group purpose="location">
2454 <context context-type="sourcefile">src/app/shared/misc/from-now.pipe.ts</context>
2455 <context context-type="linenumber">1</context>
2456 </context-group>
2457 </trans-unit>
2458 <trans-unit id="ca8bfebe411d4b56e2cfea8bd47346a7a51dea66" datatype="html">
2459 <source>&lt;x id="INTERPOLATION" equiv-text="{{ interval }}"/&gt; days ago</source>
2460 <context-group purpose="location">
2461 <context context-type="sourcefile">src/app/shared/misc/from-now.pipe.ts</context>
2462 <context context-type="linenumber">1</context>
2463 </context-group>
2464 </trans-unit>
2465 <trans-unit id="853e61e6ba27292056e756194829c5498387b381" datatype="html">
2466 <source>&lt;x id="INTERPOLATION" equiv-text="{{ interval }}"/&gt; day ago</source>
2467 <context-group purpose="location">
2468 <context context-type="sourcefile">src/app/shared/misc/from-now.pipe.ts</context>
2469 <context context-type="linenumber">1</context>
2470 </context-group>
2471 </trans-unit>
2472 <trans-unit id="41d5a34bc1c27138d8ffbeecd7499f7854025f11" datatype="html">
2473 <source>&lt;x id="INTERPOLATION" equiv-text="{{ interval }}"/&gt; hours ago</source>
2474 <context-group purpose="location">
2475 <context context-type="sourcefile">src/app/shared/misc/from-now.pipe.ts</context>
2476 <context context-type="linenumber">1</context>
2477 </context-group>
2478 </trans-unit>
2479 <trans-unit id="551090bafad6b52d4677e7d65fb10692b813945b" datatype="html">
2480 <source>&lt;x id="INTERPOLATION" equiv-text="{{ interval }}"/&gt; hour ago</source>
2481 <context-group purpose="location">
2482 <context context-type="sourcefile">src/app/shared/misc/from-now.pipe.ts</context>
2483 <context context-type="linenumber">1</context>
2484 </context-group>
2485 </trans-unit>
2486 <trans-unit id="5f751a2e17480da31cd12f8cac3e85a9a5ea9439" datatype="html">
2487 <source>&lt;x id="INTERPOLATION" equiv-text="{{ interval }}"/&gt; min ago</source>
2488 <context-group purpose="location">
2489 <context context-type="sourcefile">src/app/shared/misc/from-now.pipe.ts</context>
2490 <context context-type="linenumber">1</context>
2491 </context-group>
2492 </trans-unit>
2493 <trans-unit id="a3ac5cb5be93ff145b3bf0139fe20da052060c4c" datatype="html">
2494 <source>&lt;x id="INTERPOLATION" equiv-text="{{ interval }}"/&gt; sec ago</source>
2495 <context-group purpose="location">
2496 <context context-type="sourcefile">src/app/shared/misc/from-now.pipe.ts</context>
2497 <context context-type="linenumber">1</context>
2498 </context-group>
2499 </trans-unit>
2500 <trans-unit id="0c0f5bbcd2386018ec057877f9d3c5c2c9880cac" datatype="html">
2501 <source>Request is too large for the server. Please contact you administrator if you want to increase the limit size.</source>
2502 <context-group purpose="location">
2503 <context context-type="sourcefile">src/app/shared/rest/rest-extractor.service.ts</context>
2504 <context context-type="linenumber">1</context>
2505 </context-group>
2506 </trans-unit>
2507 <trans-unit id="3d6b54e95d42ef7586fb88f535b8d0349d431745" datatype="html">
2508 <source>Too many attempts, please try again after &lt;x id="INTERPOLATION" equiv-text="{{ minutesLeft }}"/&gt; minutes.</source>
2509 <context-group purpose="location">
2510 <context context-type="sourcefile">src/app/shared/rest/rest-extractor.service.ts</context>
2511 <context context-type="linenumber">1</context>
2512 </context-group>
2513 </trans-unit>
2514 <trans-unit id="ab783a52f2df9ff7a20139cab0da6d0764f3cc5d" datatype="html">
2515 <source>Too many attempts, please try again later.</source>
2516 <context-group purpose="location">
2517 <context context-type="sourcefile">src/app/shared/rest/rest-extractor.service.ts</context>
2518 <context context-type="linenumber">1</context>
2519 </context-group>
2520 </trans-unit>
2521 <trans-unit id="0f286a597f0053c3578a52e044769c204ee516fc" datatype="html">
2522 <source>Server error. Please retry later.</source>
2523 <context-group purpose="location">
2524 <context context-type="sourcefile">src/app/shared/rest/rest-extractor.service.ts</context>
2525 <context context-type="linenumber">1</context>
2526 </context-group>
2527 </trans-unit>
2528 <trans-unit id="240f841426d253c459e739c19156f05d913ac10c" datatype="html">
2529 <source>Registration for &lt;x id="INTERPOLATION" equiv-text="{{ username }}"/&gt; complete.</source>
2530 <context-group purpose="location">
2531 <context context-type="sourcefile">src/app/signup/signup.component.ts</context>
2532 <context context-type="linenumber">1</context>
2533 </context-group>
2534 </trans-unit>
2535 <trans-unit id="cb77327761a94def3c7c0c2362e3af9e5949f57b" datatype="html">
2536 <source>&lt;x id="INTERPOLATION" equiv-text="{{ seconds }}"/&gt; of full HD videos</source>
2537 <context-group purpose="location">
2538 <context context-type="sourcefile">src/app/signup/signup.component.ts</context>
2539 <context context-type="linenumber">1</context>
2540 </context-group>
2541 </trans-unit>
2542 <trans-unit id="06dbb94903fc77f10c6760d7ebbb9cf649a0c8fd" datatype="html">
2543 <source>&lt;x id="INTERPOLATION" equiv-text="{{ seconds }}"/&gt; of HD videos</source>
2544 <context-group purpose="location">
2545 <context context-type="sourcefile">src/app/signup/signup.component.ts</context>
2546 <context context-type="linenumber">1</context>
2547 </context-group>
2548 </trans-unit>
2549 <trans-unit id="d44fb1f436492c547bfb99825245526958dc84e7" datatype="html">
2550 <source>&lt;x id="INTERPOLATION" equiv-text="{{ seconds }}"/&gt; of average quality videos</source>
2551 <context-group purpose="location">
2552 <context context-type="sourcefile">src/app/signup/signup.component.ts</context>
2553 <context context-type="linenumber">1</context>
2554 </context-group>
2555 </trans-unit>
2556 <trans-unit id="1e876f14d96cdf3b334c080fe795a2e0ab53aa3a" datatype="html">
2557 <source>Your video was uploaded in your account and is private.</source>
2558 <context-group purpose="location">
2559 <context context-type="sourcefile">src/app/videos/+video-edit/video-add.component.ts</context>
2560 <context context-type="linenumber">1</context>
2561 </context-group>
2562 </trans-unit>
2563 <trans-unit id="24840228f2826b66252cfcaab9820b1c7e0da264" datatype="html">
2564 <source>But associated data (tags, description...) will be lost, are you sure you want to leave this page?</source>
2565 <context-group purpose="location">
2566 <context context-type="sourcefile">src/app/videos/+video-edit/video-add.component.ts</context>
2567 <context context-type="linenumber">1</context>
2568 </context-group>
2569 </trans-unit>
2570 <trans-unit id="5af84926d631326e548573ebf0f6dff07845aeb4" datatype="html">
2571 <source>Your video is not uploaded yet, are you sure you want to leave this page?</source>
2572 <context-group purpose="location">
2573 <context context-type="sourcefile">src/app/videos/+video-edit/video-add.component.ts</context>
2574 <context context-type="linenumber">1</context>
2575 </context-group>
2576 </trans-unit>
2577 <trans-unit id="321e4419a943044e674beb55b8039f42a9761ca5" datatype="html">
2578 <source>Info</source>
2579 <context-group purpose="location">
2580 <context context-type="sourcefile">src/app/videos/+video-edit/video-add.component.ts</context>
2581 <context context-type="linenumber">1</context>
2582 </context-group>
2583 </trans-unit>
2584 <trans-unit id="c5cb19aeb6447deda40cc1227ceca1359ab955e9" datatype="html">
2585 <source>Upload cancelled</source>
2586 <context-group purpose="location">
2587 <context context-type="sourcefile">src/app/videos/+video-edit/video-add.component.ts</context>
2588 <context context-type="linenumber">1</context>
2589 </context-group>
2590 </trans-unit>
2591 <trans-unit id="8b7132ca8401e9b847c242dc9a6b63cc63a80a74" datatype="html">
2592 <source>We are sorry but PeerTube cannot handle videos &gt; 4GB</source>
2593 <context-group purpose="location">
2594 <context context-type="sourcefile">src/app/videos/+video-edit/video-add.component.ts</context>
2595 <context context-type="linenumber">1</context>
2596 </context-group>
2597 </trans-unit>
2598 <trans-unit id="d31d39e8ee9b2f20bffb3468ee062eaa5409c59f" datatype="html">
2599 <source>Your video quota is exceeded with this video (video size: &lt;x id="INTERPOLATION" equiv-text="{{ videoSize }}"/&gt;, used: &lt;x id="INTERPOLATION_1" equiv-text="{{ videoQuotaUsed }}"/&gt;, quota: &lt;x id="INTERPOLATION_2" equiv-text="{{ videoQuota }}"/&gt;)</source>
2600 <context-group purpose="location">
2601 <context context-type="sourcefile">src/app/videos/+video-edit/video-add.component.ts</context>
2602 <context context-type="linenumber">1</context>
2603 </context-group>
2604 </trans-unit>
2605 <trans-unit id="972fc644f847cf84e4732ec012915c4cdaf865ce" datatype="html">
2606 <source>Video published.</source>
2607 <context-group purpose="location">
2608 <context context-type="sourcefile">src/app/videos/+video-edit/video-add.component.ts</context>
2609 <context context-type="linenumber">1</context>
2610 </context-group>
2611 </trans-unit>
2612 <trans-unit id="757e9c083c8f3d578bd74f055cc337c72417e187" datatype="html">
2613 <source>Video updated.</source>
2614 <context-group purpose="location">
2615 <context context-type="sourcefile">src/app/videos/+video-edit/video-update.component.ts</context>
2616 <context context-type="linenumber">1</context>
2617 </context-group>
2618 </trans-unit>
2619 <trans-unit id="36cd97a83cd16866213a1d16d1637a3639ec998f" datatype="html">
2620 <source> &lt;x id="INTERPOLATION" equiv-text="{{ totalReplies }}"/&gt; replies will be deleted too.</source>
2621 <context-group purpose="location">
2622 <context context-type="sourcefile">src/app/videos/+video-watch/comment/video-comments.component.ts</context>
2623 <context context-type="linenumber">1</context>
2624 </context-group>
2625 </trans-unit>
2626 <trans-unit id="fa2601e52cbf5725a13d33fe14458823b882ea50" datatype="html">
2627 <source>Video reported.</source>
2628 <context-group purpose="location">
2629 <context context-type="sourcefile">src/app/videos/+video-watch/modal/video-report.component.ts</context>
2630 <context context-type="linenumber">1</context>
2631 </context-group>
2632 </trans-unit>
2633 <trans-unit id="ef90545bc832876c0d7f9a10363c75137472bbb5" datatype="html">
2634 <source>Copied</source>
2635 <context-group purpose="location">
2636 <context context-type="sourcefile">src/app/videos/+video-watch/modal/video-share.component.ts</context>
2637 <context context-type="linenumber">1</context>
2638 </context-group>
2639 </trans-unit>
2640 <trans-unit id="23b2c2f4dd69e29c3bff00469e259dcb01de5633" datatype="html">
2641 <source>Do you really want to blacklist this video?</source>
273 <context-group purpose="location"> 2642 <context-group purpose="location">
274 <context context-type="sourcefile">src/app/videos/+video-watch/video-watch.component.ts</context> 2643 <context context-type="sourcefile">src/app/videos/+video-watch/video-watch.component.ts</context>
275 <context context-type="linenumber">1</context> 2644 <context context-type="linenumber">1</context>
276 </context-group> 2645 </context-group>
2646 </trans-unit>
2647 <trans-unit id="085d56464b75ae5c1e370f5290e4c4cf23961a61" datatype="html">
2648 <source>Video &lt;x id="INTERPOLATION" equiv-text="{{ videoName }}"/&gt; had been blacklisted.</source>
277 <context-group purpose="location"> 2649 <context-group purpose="location">
278 <context context-type="sourcefile">src/app/videos/+video-watch/video-watch.component.ts</context> 2650 <context context-type="sourcefile">src/app/videos/+video-watch/video-watch.component.ts</context>
279 <context context-type="linenumber">1</context> 2651 <context context-type="linenumber">1</context>
@@ -321,20 +2693,6 @@
321 <context context-type="linenumber">1</context> 2693 <context context-type="linenumber">1</context>
322 </context-group> 2694 </context-group>
323 </trans-unit> 2695 </trans-unit>
324 <trans-unit id="b6307f83d9f43bff8d5129a7888e89964ddc3f7f" datatype="html">
325 <source>Local videos</source>
326 <context-group purpose="location">
327 <context context-type="sourcefile">src/app/videos/video-list/video-local.component.ts</context>
328 <context context-type="linenumber">1</context>
329 </context-group>
330 </trans-unit>
331 <trans-unit id="8d20c5f5dd30acbe71316544dab774393fd9c3c1" datatype="html">
332 <source>Recently added</source>
333 <context-group purpose="location">
334 <context context-type="sourcefile">src/app/videos/video-list/video-recently-added.component.ts</context>
335 <context context-type="linenumber">1</context>
336 </context-group>
337 </trans-unit>
338 <trans-unit id="7e892ba15f2c6c17e83510e273b3e10fc32ea016" datatype="html"> 2696 <trans-unit id="7e892ba15f2c6c17e83510e273b3e10fc32ea016" datatype="html">
339 <source>Search</source> 2697 <source>Search</source>
340 <context-group purpose="location"> 2698 <context-group purpose="location">
@@ -342,13 +2700,6 @@
342 <context context-type="linenumber">1</context> 2700 <context context-type="linenumber">1</context>
343 </context-group> 2701 </context-group>
344 </trans-unit> 2702 </trans-unit>
345 <trans-unit id="b6b7986bc3721ac483baf20bc9a320529075c807" datatype="html">
346 <source>Trending</source>
347 <context-group purpose="location">
348 <context context-type="sourcefile">src/app/videos/video-list/video-trending.component.ts</context>
349 <context context-type="linenumber">1</context>
350 </context-group>
351 </trans-unit>
352 </body> 2703 </body>
353 </file> 2704 </file>
354</xliff> 2705</xliff>