diff options
author | Marcin Mikołajczak <me@mkljczk.pl> | 2021-04-12 08:43:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-12 08:43:40 +0200 |
commit | e0436741397f4d8a51442c9d8b15a9bfb95be7b8 (patch) | |
tree | 233527c5fbc5998fec2ec8a67fec674711c920e6 /client | |
parent | 78ec174cca0f03a0647b0d39c8d91082f63d98db (diff) | |
download | PeerTube-e0436741397f4d8a51442c9d8b15a9bfb95be7b8.tar.gz PeerTube-e0436741397f4d8a51442c9d8b15a9bfb95be7b8.tar.zst PeerTube-e0436741397f4d8a51442c9d8b15a9bfb95be7b8.zip |
Add `i18n` prop where it is missing (#3946)
* Add `i18n` prop
* Update video-comment-list.component.html
* Update account-blocklist.component.html
* Update server-blocklist.component.html
* Update video-redundancies-list.component.html
* Update following-list.component.html
* Update followers-list.component.html
Diffstat (limited to 'client')
7 files changed, 16 insertions, 16 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 622d464e4..633de9677 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 | |||
@@ -24,7 +24,7 @@ | |||
24 | 24 | ||
25 | <ng-template pTemplate="header"> | 25 | <ng-template pTemplate="header"> |
26 | <tr> | 26 | <tr> |
27 | <th style="width: 150px;">Actions</th> | 27 | <th style="width: 150px;" i18n>Actions</th> |
28 | <th i18n>Follower handle</th> | 28 | <th i18n>Follower handle</th> |
29 | <th style="width: 100px;" i18n pSortableColumn="state">State <p-sortIcon field="state"></p-sortIcon></th> | 29 | <th style="width: 100px;" i18n pSortableColumn="state">State <p-sortIcon field="state"></p-sortIcon></th> |
30 | <th style="width: 100px;" i18n pSortableColumn="score">Score <p-sortIcon field="score"></p-sortIcon></th> | 30 | <th style="width: 100px;" i18n pSortableColumn="score">Score <p-sortIcon field="score"></p-sortIcon></th> |
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 cf87ec05f..f4e6a60fe 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 | |||
@@ -31,7 +31,7 @@ | |||
31 | 31 | ||
32 | <ng-template pTemplate="header"> | 32 | <ng-template pTemplate="header"> |
33 | <tr> | 33 | <tr> |
34 | <th style="width: 150px;">Action</th> | 34 | <th style="width: 150px;" i18n>Action</th> |
35 | <th i18n>Host</th> | 35 | <th i18n>Host</th> |
36 | <th style="width: 100px;" i18n pSortableColumn="state">State <p-sortIcon field="state"></p-sortIcon></th> | 36 | <th style="width: 100px;" i18n pSortableColumn="state">State <p-sortIcon field="state"></p-sortIcon></th> |
37 | <th style="width: 150px;" i18n pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th> | 37 | <th style="width: 150px;" i18n pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th> |
diff --git a/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.html b/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.html index a654e51a6..f3bcca497 100644 --- a/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.html +++ b/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.html | |||
@@ -24,7 +24,7 @@ | |||
24 | <ng-template pTemplate="header"> | 24 | <ng-template pTemplate="header"> |
25 | <tr> | 25 | <tr> |
26 | <th style="width: 40px;"></th> | 26 | <th style="width: 40px;"></th> |
27 | <th style="width: 150px;">Action</th> | 27 | <th style="width: 150px;" i18n>Action</th> |
28 | <th style="width: 160px;" i18n *ngIf="isDisplayingRemoteVideos()">Strategy</th> | 28 | <th style="width: 160px;" i18n *ngIf="isDisplayingRemoteVideos()">Strategy</th> |
29 | <th i18n pSortableColumn="name">Video <p-sortIcon field="name"></p-sortIcon></th > | 29 | <th i18n pSortableColumn="name">Video <p-sortIcon field="name"></p-sortIcon></th > |
30 | <th style="width: 100px;" i18n *ngIf="isDisplayingRemoteVideos()">Total size</th> | 30 | <th style="width: 100px;" i18n *ngIf="isDisplayingRemoteVideos()">Total size</th> |
diff --git a/client/src/app/+admin/moderation/video-comment-list/video-comment-list.component.html b/client/src/app/+admin/moderation/video-comment-list/video-comment-list.component.html index fa4a8edfd..d1ecc2834 100644 --- a/client/src/app/+admin/moderation/video-comment-list/video-comment-list.component.html +++ b/client/src/app/+admin/moderation/video-comment-list/video-comment-list.component.html | |||
@@ -5,7 +5,7 @@ | |||
5 | <my-feed [syndicationItems]="syndicationItems"></my-feed> | 5 | <my-feed [syndicationItems]="syndicationItems"></my-feed> |
6 | </h1> | 6 | </h1> |
7 | 7 | ||
8 | <em>This view also shows comments from muted accounts.</em> | 8 | <em i18n>This view also shows comments from muted accounts.</em> |
9 | 9 | ||
10 | <p-table | 10 | <p-table |
11 | [value]="comments" [lazy]="true" [paginator]="totalRecords > 0" [totalRecords]="totalRecords" [rows]="rowsPerPage" [rowsPerPageOptions]="rowsPerPageOptions" | 11 | [value]="comments" [lazy]="true" [paginator]="totalRecords > 0" [totalRecords]="totalRecords" [rows]="rowsPerPage" [rowsPerPageOptions]="rowsPerPageOptions" |
diff --git a/client/src/app/+admin/system/debug/debug.component.html b/client/src/app/+admin/system/debug/debug.component.html index 75f3df601..71f399984 100644 --- a/client/src/app/+admin/system/debug/debug.component.html +++ b/client/src/app/+admin/system/debug/debug.component.html | |||
@@ -1,19 +1,19 @@ | |||
1 | <div class="root"> | 1 | <div class="root"> |
2 | <h4>IP</h4> | 2 | <h4 i18n>IP address</h4> |
3 | 3 | ||
4 | <p>PeerTube thinks your web browser public IP is <strong>{{ debug?.ip }}</strong>.</p> | 4 | <p i18n>PeerTube thinks your web browser public IP is <strong>{{ debug?.ip }}</strong>.</p> |
5 | 5 | ||
6 | <p>If this is not your correct public IP, please consider fixing it because:</p> | 6 | <p i18n>If this is not your correct public IP, please consider fixing it because:</p> |
7 | <ul> | 7 | <ul i18n> |
8 | <li>Views may not be counted correctly (reduced compared to what they should be)</li> | 8 | <li i18n>Views may not be counted correctly (reduced compared to what they should be)</li> |
9 | <li>Anti brute force system could be overzealous</li> | 9 | <li i18n>Anti brute force system could be overzealous</li> |
10 | <li>P2P system could not work correctly</li> | 10 | <li i18n>P2P system could not work correctly</li> |
11 | </ul> | 11 | </ul> |
12 | 12 | ||
13 | <p>To fix it:<p> | 13 | <p i18n>To fix it:<p> |
14 | <ul> | 14 | <ul> |
15 | <li>Check the <code>trust_proxy</code> configuration key</li> | 15 | <li i18n>Check the <code>trust_proxy</code> configuration key</li> |
16 | <li>If you run PeerTube using Docker, check you run the <code>reverse-proxy</code> with <code>network_mode: "host"</code> | 16 | <li i18n>If you run PeerTube using Docker, check you run the <code>reverse-proxy</code> with <code>network_mode: "host"</code> |
17 | (see <a href="https://github.com/Chocobozzz/PeerTube/issues/1643#issuecomment-464789666">issue 1643</a>)</li> | 17 | (see <a href="https://github.com/Chocobozzz/PeerTube/issues/1643#issuecomment-464789666">issue 1643</a>)</li> |
18 | </ul> | 18 | </ul> |
19 | </div> | 19 | </div> |
diff --git a/client/src/app/shared/shared-moderation/account-blocklist.component.html b/client/src/app/shared/shared-moderation/account-blocklist.component.html index 7eca6411e..fb6f69cd5 100644 --- a/client/src/app/shared/shared-moderation/account-blocklist.component.html +++ b/client/src/app/shared/shared-moderation/account-blocklist.component.html | |||
@@ -24,7 +24,7 @@ | |||
24 | 24 | ||
25 | <ng-template pTemplate="header"> | 25 | <ng-template pTemplate="header"> |
26 | <tr> | 26 | <tr> |
27 | <th style="width: 150px;">Action</th> <!-- column for action buttons --> | 27 | <th style="width: 150px;" i18n>Action</th> <!-- column for action buttons --> |
28 | <th style="width: calc(100% - 300px);" i18n>Account</th> | 28 | <th style="width: calc(100% - 300px);" i18n>Account</th> |
29 | <th style="width: 150px;" i18n pSortableColumn="createdAt">Muted at <p-sortIcon field="createdAt"></p-sortIcon></th> | 29 | <th style="width: 150px;" i18n pSortableColumn="createdAt">Muted at <p-sortIcon field="createdAt"></p-sortIcon></th> |
30 | </tr> | 30 | </tr> |
diff --git a/client/src/app/shared/shared-moderation/server-blocklist.component.html b/client/src/app/shared/shared-moderation/server-blocklist.component.html index a6e974b36..537186f05 100644 --- a/client/src/app/shared/shared-moderation/server-blocklist.component.html +++ b/client/src/app/shared/shared-moderation/server-blocklist.component.html | |||
@@ -31,7 +31,7 @@ | |||
31 | 31 | ||
32 | <ng-template pTemplate="header"> | 32 | <ng-template pTemplate="header"> |
33 | <tr> | 33 | <tr> |
34 | <th style="width: 150px;">Action</th> <!-- column for action buttons --> | 34 | <th style="width: 150px;" i18n>Action</th> <!-- column for action buttons --> |
35 | <th style="width: calc(100% - 300px);" i18n>Instance</th> | 35 | <th style="width: calc(100% - 300px);" i18n>Instance</th> |
36 | <th style="width: 150px;" i18n pSortableColumn="createdAt">Muted at <p-sortIcon field="createdAt"></p-sortIcon></th> | 36 | <th style="width: 150px;" i18n pSortableColumn="createdAt">Muted at <p-sortIcon field="createdAt"></p-sortIcon></th> |
37 | </tr> | 37 | </tr> |