Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Add `i18n` prop where it is missing (#3946)

Marcin Mikołajczake0436741397f
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 622d464e4f..633de96775 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 @@
<ng-template pTemplate="header">
<tr>
- <th style="width: 150px;">Actions</th>
+ <th style="width: 150px;" i18n>Actions</th>
<th i18n>Follower handle</th>
<th style="width: 100px;" i18n pSortableColumn="state">State <p-sortIcon field="state"></p-sortIcon></th>
<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 cf87ec05f1..f4e6a60fe1 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 @@
<ng-template pTemplate="header">
<tr>
- <th style="width: 150px;">Action</th>
+ <th style="width: 150px;" i18n>Action</th>
<th i18n>Host</th>
<th style="width: 100px;" i18n pSortableColumn="state">State <p-sortIcon field="state"></p-sortIcon></th>
<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 a654e51a62..f3bcca4976 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 @@
<ng-template pTemplate="header">
<tr>
<th style="width: 40px;"></th>
- <th style="width: 150px;">Action</th>
+ <th style="width: 150px;" i18n>Action</th>
<th style="width: 160px;" i18n *ngIf="isDisplayingRemoteVideos()">Strategy</th>
<th i18n pSortableColumn="name">Video <p-sortIcon field="name"></p-sortIcon></th >
<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 fa4a8edfdb..d1ecc28342 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 @@
<my-feed [syndicationItems]="syndicationItems"></my-feed>
</h1>
-<em>This view also shows comments from muted accounts.</em>
+<em i18n>This view also shows comments from muted accounts.</em>
<p-table
[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 75f3df601f..71f3999849 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 @@
<div class="root">
- <h4>IP</h4>
+ <h4 i18n>IP address</h4>
- <p>PeerTube thinks your web browser public IP is <strong>{{ debug?.ip }}</strong>.</p>
+ <p i18n>PeerTube thinks your web browser public IP is <strong>{{ debug?.ip }}</strong>.</p>
- <p>If this is not your correct public IP, please consider fixing it because:</p>
- <ul>
- <li>Views may not be counted correctly (reduced compared to what they should be)</li>
- <li>Anti brute force system could be overzealous</li>
- <li>P2P system could not work correctly</li>
+ <p i18n>If this is not your correct public IP, please consider fixing it because:</p>
+ <ul i18n>
+ <li i18n>Views may not be counted correctly (reduced compared to what they should be)</li>
+ <li i18n>Anti brute force system could be overzealous</li>
+ <li i18n>P2P system could not work correctly</li>
</ul>
- <p>To fix it:<p>
+ <p i18n>To fix it:<p>
<ul>
- <li>Check the <code>trust_proxy</code> configuration key</li>
- <li>If you run PeerTube using Docker, check you run the <code>reverse-proxy</code> with <code>network_mode: "host"</code>
+ <li i18n>Check the <code>trust_proxy</code> configuration key</li>
+ <li i18n>If you run PeerTube using Docker, check you run the <code>reverse-proxy</code> with <code>network_mode: "host"</code>
(see <a href="https://github.com/Chocobozzz/PeerTube/issues/1643#issuecomment-464789666">issue 1643</a>)</li>
</ul>
</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 7eca6411e3..fb6f69cd52 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 @@
<ng-template pTemplate="header">
<tr>
- <th style="width: 150px;">Action</th> <!-- column for action buttons -->
+ <th style="width: 150px;" i18n>Action</th> <!-- column for action buttons -->
<th style="width: calc(100% - 300px);" i18n>Account</th>
<th style="width: 150px;" i18n pSortableColumn="createdAt">Muted at <p-sortIcon field="createdAt"></p-sortIcon></th>
</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 a6e974b363..537186f05d 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 @@
<ng-template pTemplate="header">
<tr>
- <th style="width: 150px;">Action</th> <!-- column for action buttons -->
+ <th style="width: 150px;" i18n>Action</th> <!-- column for action buttons -->
<th style="width: calc(100% - 300px);" i18n>Instance</th>
<th style="width: 150px;" i18n pSortableColumn="createdAt">Muted at <p-sortIcon field="createdAt"></p-sortIcon></th>
</tr>