aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/+video-edit/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-06-04 16:21:17 +0200
committerChocobozzz <me@florianbigard.com>2018-06-05 08:43:01 +0200
commitb1d40cff89f7cff565a98cdbcea9a624196a169a (patch)
treed24746c1cc69f50471a9eba0dfb1c1bae06a1870 /client/src/app/videos/+video-edit/shared
parent989e526abf0c0dd7958deb630df009608561bb67 (diff)
downloadPeerTube-b1d40cff89f7cff565a98cdbcea9a624196a169a.tar.gz
PeerTube-b1d40cff89f7cff565a98cdbcea9a624196a169a.tar.zst
PeerTube-b1d40cff89f7cff565a98cdbcea9a624196a169a.zip
Add i18n attributes
Diffstat (limited to 'client/src/app/videos/+video-edit/shared')
-rw-r--r--client/src/app/videos/+video-edit/shared/video-edit.component.html36
-rw-r--r--client/src/app/videos/+video-edit/shared/video-image.component.html2
2 files changed, 19 insertions, 19 deletions
diff --git a/client/src/app/videos/+video-edit/shared/video-edit.component.html b/client/src/app/videos/+video-edit/shared/video-edit.component.html
index 7e1be4467..bd9f69362 100644
--- a/client/src/app/videos/+video-edit/shared/video-edit.component.html
+++ b/client/src/app/videos/+video-edit/shared/video-edit.component.html
@@ -4,7 +4,7 @@
4 <tab heading="Basic info"> 4 <tab heading="Basic info">
5 <div class="col-md-8"> 5 <div class="col-md-8">
6 <div class="form-group"> 6 <div class="form-group">
7 <label for="name">Title</label> 7 <label i18n for="name">Title</label>
8 <input type="text" id="name" formControlName="name" /> 8 <input type="text" id="name" formControlName="name" />
9 <div *ngIf="formErrors.name" class="form-error"> 9 <div *ngIf="formErrors.name" class="form-error">
10 {{ formErrors.name }} 10 {{ formErrors.name }}
@@ -12,7 +12,7 @@
12 </div> 12 </div>
13 13
14 <div class="form-group"> 14 <div class="form-group">
15 <label class="label-tags">Tags</label> <span>(press Enter to add)</span> 15 <label i18n class="label-tags">Tags</label> <span i18n>(press Enter to add)</span>
16 <tag-input 16 <tag-input
17 [validators]="tagValidators" [errorMessages]="tagValidatorsMessages" 17 [validators]="tagValidators" [errorMessages]="tagValidatorsMessages"
18 formControlName="tags" maxItems="5" modelAsStrings="true" 18 formControlName="tags" maxItems="5" modelAsStrings="true"
@@ -20,8 +20,8 @@
20 </div> 20 </div>
21 21
22 <div class="form-group"> 22 <div class="form-group">
23 <label for="description">Description</label> 23 <label i18n for="description">Description</label>
24 <my-help helpType="markdownText" preHtml="Video descriptions are truncated by default and require manual action to expand them."></my-help> 24 <my-help helpType="markdownText" i18n-preHtml preHtml="Video descriptions are truncated by default and require manual action to expand them."></my-help>
25 <my-markdown-textarea truncate="250" formControlName="description"></my-markdown-textarea> 25 <my-markdown-textarea truncate="250" formControlName="description"></my-markdown-textarea>
26 26
27 <div *ngIf="formErrors.description" class="form-error"> 27 <div *ngIf="formErrors.description" class="form-error">
@@ -32,7 +32,7 @@
32 32
33 <div class="col-md-4"> 33 <div class="col-md-4">
34 <div class="form-group"> 34 <div class="form-group">
35 <label>Channel</label> 35 <label i18n>Channel</label>
36 <div class="peertube-select-container"> 36 <div class="peertube-select-container">
37 <select formControlName="channelId"> 37 <select formControlName="channelId">
38 <option *ngFor="let channel of userVideoChannels" [value]="channel.id">{{ channel.label }}</option> 38 <option *ngFor="let channel of userVideoChannels" [value]="channel.id">{{ channel.label }}</option>
@@ -41,7 +41,7 @@
41 </div> 41 </div>
42 42
43 <div class="form-group"> 43 <div class="form-group">
44 <label for="category">Category</label> 44 <label i18n for="category">Category</label>
45 <div class="peertube-select-container"> 45 <div class="peertube-select-container">
46 <select id="category" formControlName="category"> 46 <select id="category" formControlName="category">
47 <option></option> 47 <option></option>
@@ -55,7 +55,7 @@
55 </div> 55 </div>
56 56
57 <div class="form-group"> 57 <div class="form-group">
58 <label for="licence">Licence</label> 58 <label i18n for="licence">Licence</label>
59 <div class="peertube-select-container"> 59 <div class="peertube-select-container">
60 <select id="licence" formControlName="licence"> 60 <select id="licence" formControlName="licence">
61 <option></option> 61 <option></option>
@@ -69,7 +69,7 @@
69 </div> 69 </div>
70 70
71 <div class="form-group"> 71 <div class="form-group">
72 <label for="language">Language</label> 72 <label i18n for="language">Language</label>
73 <div class="peertube-select-container"> 73 <div class="peertube-select-container">
74 <select id="language" formControlName="language"> 74 <select id="language" formControlName="language">
75 <option></option> 75 <option></option>
@@ -83,7 +83,7 @@
83 </div> 83 </div>
84 84
85 <div class="form-group"> 85 <div class="form-group">
86 <label for="privacy">Privacy</label> 86 <label i18n for="privacy">Privacy</label>
87 <div class="peertube-select-container"> 87 <div class="peertube-select-container">
88 <select id="privacy" formControlName="privacy"> 88 <select id="privacy" formControlName="privacy">
89 <option></option> 89 <option></option>
@@ -99,14 +99,14 @@
99 <div class="form-group form-group-checkbox"> 99 <div class="form-group form-group-checkbox">
100 <input type="checkbox" id="nsfw" formControlName="nsfw" /> 100 <input type="checkbox" id="nsfw" formControlName="nsfw" />
101 <label for="nsfw"></label> 101 <label for="nsfw"></label>
102 <label for="nsfw">This video contains mature or explicit content</label> 102 <label i18n for="nsfw">This video contains mature or explicit content</label>
103 <my-help tooltipPlacement="top" helpType="custom" customHtml="Some instances do not list NSFW videos by default."></my-help> 103 <my-help tooltipPlacement="top" helpType="custom" i18n-customHtml customHtml="Some instances do not list NSFW videos by default."></my-help>
104 </div> 104 </div>
105 105
106 <div class="form-group form-group-checkbox"> 106 <div class="form-group form-group-checkbox">
107 <input type="checkbox" id="commentsEnabled" formControlName="commentsEnabled" /> 107 <input type="checkbox" id="commentsEnabled" formControlName="commentsEnabled" />
108 <label for="commentsEnabled"></label> 108 <label for="commentsEnabled"></label>
109 <label for="commentsEnabled">Enable video comments</label> 109 <label i18n for="commentsEnabled">Enable video comments</label>
110 </div> 110 </div>
111 111
112 </div> 112 </div>
@@ -116,24 +116,24 @@
116 <div class="col-md-12 advanced-settings"> 116 <div class="col-md-12 advanced-settings">
117 <div class="form-group"> 117 <div class="form-group">
118 <my-video-image 118 <my-video-image
119 inputLabel="Upload thumbnail" inputName="thumbnailfile" formControlName="thumbnailfile" 119 i18n-inputLabel inputLabel="Upload thumbnail" inputName="thumbnailfile" formControlName="thumbnailfile"
120 previewWidth="200px" previewHeight="110px" 120 previewWidth="200px" previewHeight="110px"
121 ></my-video-image> 121 ></my-video-image>
122 </div> 122 </div>
123 123
124 <div class="form-group"> 124 <div class="form-group">
125 <my-video-image 125 <my-video-image
126 inputLabel="Upload preview" inputName="previewfile" formControlName="previewfile" 126 i18n-inputLabel inputLabel="Upload preview" inputName="previewfile" formControlName="previewfile"
127 previewWidth="360px" previewHeight="200px" 127 previewWidth="360px" previewHeight="200px"
128 ></my-video-image> 128 ></my-video-image>
129 </div> 129 </div>
130 130
131 <div class="form-group"> 131 <div class="form-group">
132 <label for="support">Support</label> 132 <label i18n for="support">Support</label>
133 <my-help helpType="markdownEnhanced" preHtml="Short text to tell people how they can support you (membership platform...)."></my-help> 133 <my-help helpType="markdownEnhanced" i18n-preHtml preHtml="Short text to tell people how they can support you (membership platform...)."></my-help>
134 <my-markdown-textarea 134 <my-markdown-textarea
135 id="support" formControlName="support" textareaWidth="500px" [previewColumn]="true" markdownType="enhanced" 135 id="support" formControlName="support" textareaWidth="500px" [previewColumn]="true" markdownType="enhanced"
136 [classes]="{ 'input-error': formErrors['support'] }" 136 [classes]="{ 'input-error': formErrors['support'] }"
137 ></my-markdown-textarea> 137 ></my-markdown-textarea>
138 <div *ngIf="formErrors.support" class="form-error"> 138 <div *ngIf="formErrors.support" class="form-error">
139 {{ formErrors.support }} 139 {{ formErrors.support }}
diff --git a/client/src/app/videos/+video-edit/shared/video-image.component.html b/client/src/app/videos/+video-edit/shared/video-image.component.html
index 5d0624f8c..e319d7ee7 100644
--- a/client/src/app/videos/+video-edit/shared/video-image.component.html
+++ b/client/src/app/videos/+video-edit/shared/video-image.component.html
@@ -8,7 +8,7 @@
8 (change)="fileChange($event)" 8 (change)="fileChange($event)"
9 /> 9 />
10 </div> 10 </div>
11 <div class="image-constraints">(extensions: {{ videoImageExtensions }}, max size: {{ maxVideoImageSize | bytes }})</div> 11 <div i18n class="image-constraints">(extensions: {{ videoImageExtensions }}, max size: {{ maxVideoImageSize | bytes }})</div>
12 </div> 12 </div>
13 13
14 <img *ngIf="imageSrc" [ngStyle]="{ width: previewWidth, height: previewHeight }" [src]="imageSrc" class="preview" /> 14 <img *ngIf="imageSrc" [ngStyle]="{ width: previewWidth, height: previewHeight }" [src]="imageSrc" class="preview" />