Mark additional strings as translatable (#2507)
authorFilip Bengtsson <me@autom.zone>
Fri, 21 Feb 2020 17:51:05 +0000 (18:51 +0100)
committerGitHub <noreply@github.com>
Fri, 21 Feb 2020 17:51:05 +0000 (18:51 +0100)
client/src/app/+admin/plugins/plugin-list-installed/plugin-list-installed.component.html
client/src/app/+admin/system/logs/logs.component.html
client/src/app/+my-account/my-account-history/my-account-history.component.html
client/src/app/app.component.html
client/src/app/login/login.component.html
client/src/app/modal/instance-config-warning-modal.component.html
client/src/app/shared/instance/instance-features-table.component.html
client/src/app/shared/video-playlist/video-add-to-playlist.component.html

index 4526aaf66a296ec7a5283bbf44097e1079f92056..1a177de72d9b085b70a23e41cfbcc9afc3e17832 100644 (file)
@@ -10,7 +10,7 @@
   <div class="card plugin" *ngFor="let plugin of plugins">
     <div class="card-body">
       <div class="first-row">
-        <a class="plugin-name" [routerLink]="getShowRouterLink(plugin)" title="Show plugin settings">{{ plugin.name }}</a>
+        <a class="plugin-name" [routerLink]="getShowRouterLink(plugin)" i18n-title title="Show plugin settings">{{ plugin.name }}</a>
 
         <span class="plugin-version">{{ plugin.version }}</span>
       </div>
index ddad1314f868254517743ecc3052516176811fb9..37f833020115c4594aa27b6f78c7fcefae49e35f 100644 (file)
@@ -21,7 +21,7 @@
 </div>
 
 <div class="logs">
-  <div *ngIf="loading">Loading...</div>
+  <div *ngIf="loading" i18n>Loading...</div>
 
   <div #logsElement>
     <div *ngFor="let log of logs" class="log-row" [ngClass]="{ error: log.level === 'error', warn: log.level === 'warn' }">
index 4c361cec34e7a47cb9ae119b333dcb81a685f180..56d63f2996e6122b10550ede33e813679b76cac6 100644 (file)
@@ -11,7 +11,7 @@
 </div>
 
 
-<div class="no-history" i18n *ngIf="pagination.totalItems === 0">You don't have videos history yet.</div>
+<div class="no-history" i18n *ngIf="pagination.totalItems === 0">You don't have any video history yet.</div>
 
 <div myInfiniteScroller (nearOfBottom)="onNearOfBottom()" [autoInit]="true" [dataObservable]="onDataSubject.asObservable()" class="videos">
   <div class="video" *ngFor="let video of videos">
index f5a8dbd34659ce99a9d43967c5638beb9c94798a..7743124d4a1e5fc035bafa9aeaa1df70d766c26e 100644 (file)
@@ -8,7 +8,7 @@
     <div class="top-left-block" [ngClass]="{ 'border-bottom': isMenuDisplayed === false }">
       <span class="icon icon-menu" (click)="toggleMenu()"></span>
 
-      <a class="peertube-title" [routerLink]="defaultRoute" title="Homepage">
+      <a class="peertube-title" [routerLink]="defaultRoute" title="Homepage" i18n-title>
         <span class="icon icon-logo"></span>
         <span class="instance-name">{{ instanceName }}</span>
       </a>
@@ -29,8 +29,8 @@
       </div>
 
       <footer class="row">
-        <a href="https://joinpeertube.org" title="PeerTube website" target="_blank" rel="noopener noreferrer" i18n>Powered by PeerTube</a>&nbsp;-&nbsp;
-        <a href="https://github.com/Chocobozzz/PeerTube/blob/develop/LICENSE" title="PeerTube license" target="_blank" rel="noopener noreferrer">CopyLeft 2015-2020</a>
+        <a href="https://joinpeertube.org" title="PeerTube website" target="_blank" rel="noopener noreferrer" i18n-title>Powered by PeerTube</a>&nbsp;-&nbsp;
+        <a href="https://github.com/Chocobozzz/PeerTube/blob/develop/LICENSE" title="PeerTube license" target="_blank" rel="noopener noreferrer" i18n-title>CopyLeft 2015-2020</a>
       </footer>
     </div>
   </div>
index 0b0bacff03eb77f93a6ff9880f1db7ed28a73177..38b59a1eb6d2eb69840c92937312843162d5bf69 100644 (file)
@@ -47,7 +47,7 @@
           type="password" name="password" id="password" i18n-placeholder placeholder="Password" required tabindex="2" autocomplete="current-password"
           formControlName="password" [ngClass]="{ 'input-error': formErrors['password'] }"
         >
-        <a i18n class="forgot-password-button" (click)="openForgotPasswordModal()" title="Click here to reset your password">I forgot my password</a>
+        <a i18n-title class="forgot-password-button" (click)="openForgotPasswordModal()" title="Click here to reset your password">I forgot my password</a>
       </div>
       <div *ngIf="formErrors.password" class="form-error">
         {{ formErrors.password }}
index 93391c0a8a79e912a2113bded14ceab7d50e964c..e303104c5b594cb49e5f7b35832ffb19d06ccdc3 100644 (file)
@@ -21,7 +21,7 @@
       <li i18n *ngIf="!about.instance.terms">Instance terms</li>
     </ul>
 
-    <p>
+    <p i18n>
       Please consider to configure these fields to help people to choose <strong>the appropriate instance</strong>.
       Without them, your instance may not be referenced on <a target="_blank" rel="noopener noreferrer" href="https://joinpeertube.org">JoinPeerTube website</a>.
     </p>
index 51a56d414499044cd808ac4a60528463583fc05c..99b854d135b15cbb1f01e794a0c3e36b71f13e31 100644 (file)
@@ -37,8 +37,8 @@
     <tr>
       <td i18n class="sub-label">Video uploads</td>
       <td>
-        <span *ngIf="serverConfig.autoBlacklist.videos.ofUsers.enabled">Requires manual validation by moderators</span>
-        <span *ngIf="!serverConfig.autoBlacklist.videos.ofUsers.enabled">Automatically published</span>
+        <span i18n *ngIf="serverConfig.autoBlacklist.videos.ofUsers.enabled">Requires manual validation by moderators</span>
+        <span i18n *ngIf="!serverConfig.autoBlacklist.videos.ofUsers.enabled">Automatically published</span>
       </td>
     </tr>
 
index 6e0989227f129da2661dcebba77b75e34a4aa244..58108584bac7f7379eed3f7f5a5e6eabea88b0a2 100644 (file)
@@ -62,7 +62,7 @@
   <div class="new-playlist-button dropdown-item" (click)="openCreateBlock($event)" [hidden]="isNewPlaylistBlockOpened">
     <my-global-icon iconName="add"></my-global-icon>
 
-    Create a private playlist
+    <span i18n>Create a private playlist</span>
   </div>
 
   <form class="new-playlist-block dropdown-item" *ngIf="isNewPlaylistBlockOpened" (ngSubmit)="createPlaylist()" [formGroup]="form">