diff options
author | Chocobozzz <me@florianbigard.com> | 2018-06-04 16:21:17 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-06-05 08:43:01 +0200 |
commit | b1d40cff89f7cff565a98cdbcea9a624196a169a (patch) | |
tree | d24746c1cc69f50471a9eba0dfb1c1bae06a1870 /client/src/app/+admin/follows/followers-list | |
parent | 989e526abf0c0dd7958deb630df009608561bb67 (diff) | |
download | PeerTube-b1d40cff89f7cff565a98cdbcea9a624196a169a.tar.gz PeerTube-b1d40cff89f7cff565a98cdbcea9a624196a169a.tar.zst PeerTube-b1d40cff89f7cff565a98cdbcea9a624196a169a.zip |
Add i18n attributes
Diffstat (limited to 'client/src/app/+admin/follows/followers-list')
-rw-r--r-- | client/src/app/+admin/follows/followers-list/followers-list.component.html | 12 | ||||
-rw-r--r-- | client/src/app/+admin/follows/followers-list/followers-list.component.ts | 6 |
2 files changed, 10 insertions, 8 deletions
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' | |||
5 | import { AccountFollow } from '../../../../../../shared/models/actors/follow.model' | 5 | import { AccountFollow } from '../../../../../../shared/models/actors/follow.model' |
6 | import { RestPagination, RestTable } from '../../../shared' | 6 | import { RestPagination, RestTable } from '../../../shared' |
7 | import { FollowService } from '../shared' | 7 | import { FollowService } from '../shared' |
8 | import { 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 | } |