diff options
author | Chocobozzz <me@florianbigard.com> | 2018-06-05 16:31:52 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-06-05 16:31:52 +0200 |
commit | 0975cd5cf260bd06c797ac7582675ac624a47ebc (patch) | |
tree | 7b02b1694f695d4ff71db52592c3ccd1e6998897 /client/src/app/+admin | |
parent | 7a9fd8b54dd278cbb341daf96baca769bfe92ce9 (diff) | |
download | PeerTube-0975cd5cf260bd06c797ac7582675ac624a47ebc.tar.gz PeerTube-0975cd5cf260bd06c797ac7582675ac624a47ebc.tar.zst PeerTube-0975cd5cf260bd06c797ac7582675ac624a47ebc.zip |
Translate tab heads
Diffstat (limited to 'client/src/app/+admin')
-rw-r--r-- | client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html | 6 | ||||
-rw-r--r-- | client/src/app/+admin/follows/follows.component.ts | 38 |
2 files changed, 25 insertions, 19 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 @@ | |||
1 | import { AfterViewInit, Component, OnInit, ViewChild } from '@angular/core' | 1 | import { AfterViewInit, Component, OnInit, ViewChild } from '@angular/core' |
2 | import { NavigationEnd, Router } from '@angular/router' | 2 | import { NavigationEnd, Router } from '@angular/router' |
3 | import { TabsetComponent } from 'ngx-bootstrap/tabs' | 3 | import { TabsetComponent } from 'ngx-bootstrap/tabs' |
4 | import { 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' | |||
9 | export class FollowsComponent implements OnInit, AfterViewInit { | 10 | export 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( |