aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/about
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/about')
-rw-r--r--client/src/app/about/about.component.html24
-rw-r--r--client/src/app/about/about.component.ts6
2 files changed, 16 insertions, 14 deletions
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