aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-06-05 16:31:52 +0200
committerChocobozzz <me@florianbigard.com>2018-06-05 16:31:52 +0200
commit0975cd5cf260bd06c797ac7582675ac624a47ebc (patch)
tree7b02b1694f695d4ff71db52592c3ccd1e6998897 /client/src/app
parent7a9fd8b54dd278cbb341daf96baca769bfe92ce9 (diff)
downloadPeerTube-0975cd5cf260bd06c797ac7582675ac624a47ebc.tar.gz
PeerTube-0975cd5cf260bd06c797ac7582675ac624a47ebc.tar.zst
PeerTube-0975cd5cf260bd06c797ac7582675ac624a47ebc.zip
Translate tab heads
Diffstat (limited to 'client/src/app')
-rw-r--r--client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html6
-rw-r--r--client/src/app/+admin/follows/follows.component.ts38
-rw-r--r--client/src/app/shared/forms/markdown-textarea.component.html6
-rw-r--r--client/src/app/shared/misc/help.component.ts17
-rw-r--r--client/src/app/signup/signup.component.ts1
-rw-r--r--client/src/app/videos/+video-edit/shared/video-edit.component.html4
6 files changed, 40 insertions, 32 deletions
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 a0bd01e5e..4a6c631fb 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
@@ -2,7 +2,7 @@
2 2
3 <tabset class="root-tabset bootstrap"> 3 <tabset class="root-tabset bootstrap">
4 4
5 <tab heading="Basic configuration"> 5 <tab i18n-heading heading="Basic configuration">
6 6
7 <div i18n class="inner-form-title">Instance</div> 7 <div i18n class="inner-form-title">Instance</div>
8 8
@@ -133,7 +133,7 @@
133 </div> 133 </div>
134 </tab> 134 </tab>
135 135
136 <tab heading="Services"> 136 <tab i18n-heading heading="Services">
137 137
138 <div i18n class="inner-form-title">Twitter</div> 138 <div i18n class="inner-form-title">Twitter</div>
139 139
@@ -167,7 +167,7 @@ Check this checkbox, save the configuration and test with a video URL of your in
167 </div> 167 </div>
168 </tab> 168 </tab>
169 169
170 <tab heading="Advanced configuration"> 170 <tab i18n-heading heading="Advanced configuration">
171 171
172 <div i18n class="inner-form-title">Transcoding</div> 172 <div i18n class="inner-form-title">Transcoding</div>
173 173
diff --git a/client/src/app/+admin/follows/follows.component.ts b/client/src/app/+admin/follows/follows.component.ts
index f29ad384f..f7af9826c 100644
--- a/client/src/app/+admin/follows/follows.component.ts
+++ b/client/src/app/+admin/follows/follows.component.ts
@@ -1,6 +1,7 @@
1import { AfterViewInit, Component, OnInit, ViewChild } from '@angular/core' 1import { AfterViewInit, Component, OnInit, ViewChild } from '@angular/core'
2import { NavigationEnd, Router } from '@angular/router' 2import { NavigationEnd, Router } from '@angular/router'
3import { TabsetComponent } from 'ngx-bootstrap/tabs' 3import { TabsetComponent } from 'ngx-bootstrap/tabs'
4import { I18n } from '@ngx-translate/i18n-polyfill'
4 5
5@Component({ 6@Component({
6 templateUrl: './follows.component.html', 7 templateUrl: './follows.component.html',
@@ -9,22 +10,27 @@ import { TabsetComponent } from 'ngx-bootstrap/tabs'
9export class FollowsComponent implements OnInit, AfterViewInit { 10export class FollowsComponent implements OnInit, AfterViewInit {
10 @ViewChild('followsMenuTabs') followsMenuTabs: TabsetComponent 11 @ViewChild('followsMenuTabs') followsMenuTabs: TabsetComponent
11 12
12 links = [ 13 links: { path: string, title: string }[] = []
13 { 14
14 path: 'following-list', 15 constructor (
15 title: 'Following' 16 private i18n: I18n,
16 }, 17 private router: Router
17 { 18 ) {
18 path: 'following-add', 19 this.links = [
19 title: 'Follow' 20 {
20 }, 21 path: 'following-list',
21 { 22 title: this.i18n('Following')
22 path: 'followers-list', 23 },
23 title: 'Followers' 24 {
24 } 25 path: 'following-add',
25 ] 26 title: this.i18n('Follow')
26 27 },
27 constructor (private router: Router) {} 28 {
29 path: 'followers-list',
30 title: this.i18n('Followers')
31 }
32 ]
33 }
28 34
29 ngOnInit () { 35 ngOnInit () {
30 this.router.events.subscribe( 36 this.router.events.subscribe(
diff --git a/client/src/app/shared/forms/markdown-textarea.component.html b/client/src/app/shared/forms/markdown-textarea.component.html
index 6effda5b8..802562dd7 100644
--- a/client/src/app/shared/forms/markdown-textarea.component.html
+++ b/client/src/app/shared/forms/markdown-textarea.component.html
@@ -1,8 +1,8 @@
1<div class="root" [ngStyle]="{ 'flex-direction': flexDirection }"> 1<div class="root" [ngStyle]="{ 'flex-direction': flexDirection }">
2 <textarea 2 <textarea
3 [(ngModel)]="content" (ngModelChange)="onModelChange()" 3 [(ngModel)]="content" (ngModelChange)="onModelChange()"
4 [ngClass]="classes" [ngStyle]="{ width: textareaWidth, height: textareaHeight, 'margin-right': textareaMarginRight }" 4 [ngClass]="classes" [ngStyle]="{ width: textareaWidth, height: textareaHeight, 'margin-right': textareaMarginRight }"
5 id="description" name="description"> 5 id="description" name="description">
6 </textarea> 6 </textarea>
7 7
8 <tabset *ngIf="arePreviewsDisplayed()" class="previews"> 8 <tabset *ngIf="arePreviewsDisplayed()" class="previews">
diff --git a/client/src/app/shared/misc/help.component.ts b/client/src/app/shared/misc/help.component.ts
index 0373a63de..e7af61b4a 100644
--- a/client/src/app/shared/misc/help.component.ts
+++ b/client/src/app/shared/misc/help.component.ts
@@ -1,5 +1,6 @@
1import { Component, Input, OnChanges, OnInit } from '@angular/core' 1import { Component, Input, OnChanges, OnInit } from '@angular/core'
2import { MarkdownService } from '@app/videos/shared' 2import { MarkdownService } from '@app/videos/shared'
3import { I18n } from '@ngx-translate/i18n-polyfill'
3 4
4@Component({ 5@Component({
5 selector: 'my-help', 6 selector: 'my-help',
@@ -16,6 +17,8 @@ export class HelpComponent implements OnInit, OnChanges {
16 17
17 mainHtml = '' 18 mainHtml = ''
18 19
20 constructor (private i18n: I18n) { }
21
19 ngOnInit () { 22 ngOnInit () {
20 this.init() 23 this.init()
21 } 24 }
@@ -42,18 +45,18 @@ export class HelpComponent implements OnInit, OnChanges {
42 } 45 }
43 46
44 private formatMarkdownSupport (rules: string[]) { 47 private formatMarkdownSupport (rules: string[]) {
45 return '<a href="https://en.wikipedia.org/wiki/Markdown#Example" target="_blank" rel="noopener noreferrer">Markdown</a> ' + 48 // tslint:disable:max-line-length
46 'compatible that supports:' + 49 return this.i18n('<a href="https://en.wikipedia.org/wiki/Markdown#Example" target="_blank" rel="noopener noreferrer">Markdown</a> compatible that supports:') +
47 this.createMarkdownList(rules) 50 this.createMarkdownList(rules)
48 } 51 }
49 52
50 private createMarkdownList (rules: string[]) { 53 private createMarkdownList (rules: string[]) {
51 const rulesToText = { 54 const rulesToText = {
52 'emphasis': 'Emphasis', 55 'emphasis': this.i18n('Emphasis'),
53 'link': 'Links', 56 'link': this.i18n('Links'),
54 'newline': 'New lines', 57 'newline': this.i18n('New lines'),
55 'list': 'Lists', 58 'list': this.i18n('Lists'),
56 'image': 'Images' 59 'image': this.i18n('Images')
57 } 60 }
58 61
59 const bullets = rules.map(r => rulesToText[r]) 62 const bullets = rules.map(r => rulesToText[r])
diff --git a/client/src/app/signup/signup.component.ts b/client/src/app/signup/signup.component.ts
index 55ebb573e..53d144572 100644
--- a/client/src/app/signup/signup.component.ts
+++ b/client/src/app/signup/signup.component.ts
@@ -75,7 +75,6 @@ export class SignupComponent extends FormReactive implements OnInit {
75 return this.i18n('~ {{minutes}} {minutes, plural, =1 {minute} other {minutes}}', { minutes }) 75 return this.i18n('~ {{minutes}} {minutes, plural, =1 {minute} other {minutes}}', { minutes })
76 } 76 }
77 77
78
79 private buildQuotaHelpIndication () { 78 private buildQuotaHelpIndication () {
80 if (this.initialUserVideoQuota === -1) return 79 if (this.initialUserVideoQuota === -1) return
81 80
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 bd9f69362..c8cd0d679 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
@@ -1,7 +1,7 @@
1<div class="video-edit row" [formGroup]="form"> 1<div class="video-edit row" [formGroup]="form">
2 <tabset class="root-tabset bootstrap"> 2 <tabset class="root-tabset bootstrap">
3 3
4 <tab heading="Basic info"> 4 <tab i18n-heading 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 i18n for="name">Title</label> 7 <label i18n for="name">Title</label>
@@ -112,7 +112,7 @@
112 </div> 112 </div>
113 </tab> 113 </tab>
114 114
115 <tab heading="Advanced settings"> 115 <tab i18n-heading heading="Advanced settings">
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