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
pull/3945/head
Marcin Mikołajczak 2021-04-12 08:43:40 +02:00 committed by GitHub
parent 78ec174cca
commit e043674139
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 16 additions and 16 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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"

View File

@ -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>

View File

@ -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>

View File

@ -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>