Add i18n attributes
[oweals/peertube.git] / client / src / app / videos / +video-edit / video-add.component.html
index 440556562b72bf39a53f981c5381a9bf628145bc..f00cfe0162026008ded6f0af53ed2e6936e3f7df 100644 (file)
@@ -1,7 +1,7 @@
 <div class="margin-content">
   <div class="title-page title-page-single">
-    <ng-template [ngIf]="!videoFileName">Upload your video</ng-template>
-    <ng-template [ngIf]="videoFileName">Upload {{ videoFileName }}</ng-template>
+    <ng-container *ngIf="!videoFileName" i18n>Upload your video</ng-container>
+    <ng-container *ngIf="videoFileName" i18n>Upload {{ videoFileName }}</ng-container>
   </div>
 
   <div *ngIf="!isUploadingVideo" class="upload-video-container">
@@ -9,12 +9,12 @@
       <div class="icon icon-upload"></div>
 
       <div class="button-file">
-        <span>Select the file to upload</span>
+        <span i18n>Select the file to upload</span>
         <input #videofileInput type="file" name="videofile" id="videofile" [accept]="videoExtensions" (change)="fileChange()" />
       </div>
 
       <div class="form-group form-group-channel">
-        <label for="first-step-channel">Channel</label>
+        <label i18n for="first-step-channel">Channel</label>
         <div class="peertube-select-container">
           <select id="first-step-channel" [(ngModel)]="firstStepChannelId">
             <option *ngFor="let channel of userVideoChannels" [value]="channel.id">{{ channel.label }}</option>
@@ -23,7 +23,7 @@
       </div>
 
       <div class="form-group">
-        <label for="first-step-privacy">Privacy</label>
+        <label i18n for="first-step-privacy">Privacy</label>
         <div class="peertube-select-container">
           <select id="first-step-privacy" [(ngModel)]="firstStepPrivacyId">
             <option *ngFor="let privacy of videoPrivacies" [value]="privacy.id">{{ privacy.label }}</option>
     ></my-video-edit>
 
     <div class="submit-container">
-      <div *ngIf="videoUploaded === false" class="message-submit">Publish will be available when upload is finished</div>
+      <div i18n *ngIf="videoUploaded === false" class="message-submit">Publish will be available when upload is finished</div>
 
       <div class="submit-button"
          (click)="updateSecondStep()"
          [ngClass]="{ disabled: !form.valid || isUpdatingVideo === true || videoUploaded !== true }"
       >
         <span class="icon icon-validate"></span>
-        <input type="button" value="Publish" />
+        <input type="button" i18n-value value="Publish" />
       </div>
     </div>
   </form>