Extract strings from upload template
Cette révision appartient à :
Parent
39b0c4f5df
révision
7af54f4a30
2 fichiers modifiés avec 118 ajouts et 26 suppressions
|
@ -314,5 +314,97 @@
|
|||
{
|
||||
"id": "nyaa_pantsu_dont_host_files",
|
||||
"translation": "nyaa.pantsu.cat and sukebei.pantsu.cat do not host any files."
|
||||
},
|
||||
{
|
||||
"id": "upload_magnet",
|
||||
"translation": "Upload magnet"
|
||||
},
|
||||
{
|
||||
"id": "torrent_file",
|
||||
"translation": "Torrent file"
|
||||
},
|
||||
{
|
||||
"id": "uploading_torrent_prefills_fields",
|
||||
"translation": "Uploading a torrent file allows pre-filling some fields, this is recommended."
|
||||
},
|
||||
{
|
||||
"id": "magnet_link",
|
||||
"translation": "Magnet Link"
|
||||
},
|
||||
{
|
||||
"id": "anime_amv",
|
||||
"translation": "Anime - Anime Music Video"
|
||||
},
|
||||
{
|
||||
"id": "anime_english_translated",
|
||||
"translation": "Anime - English-translated"
|
||||
},
|
||||
{
|
||||
"id": "anime_non_english_translated",
|
||||
"translated": "Anime - Non-English-translated"
|
||||
},
|
||||
{
|
||||
"id": "anime_raw",
|
||||
"translated": "Anime - Raw"
|
||||
},
|
||||
{
|
||||
"id": "audio_lossless",
|
||||
"translated": "Audio - Lossless"
|
||||
},
|
||||
{
|
||||
"id": "audio_lossy",
|
||||
"translated": "Audio - Lossy"
|
||||
},
|
||||
{
|
||||
"id": "literature_english_translated",
|
||||
"translated": "Literature - English-translated"
|
||||
},
|
||||
{
|
||||
"id": "literature_raw",
|
||||
"translated": "Literature - Raw"
|
||||
},
|
||||
{
|
||||
"id": "literature_non_english_translated",
|
||||
"translated": "Literature - Non-English-translated"
|
||||
},
|
||||
{
|
||||
"id": "live_action_english_translated",
|
||||
"translated": "Live Action - English-translated"
|
||||
},
|
||||
{
|
||||
"id": "live_action_idol_pv",
|
||||
"translated": "Live Action - Idol/Promotional Video"
|
||||
},
|
||||
{
|
||||
"id": "live_action_non_english_translated",
|
||||
"translated": "Live Action - Non-English-translated"
|
||||
},
|
||||
{
|
||||
"id": "live_action_raw",
|
||||
"translated": "Live Action - Raw"
|
||||
},
|
||||
{
|
||||
"id": "pictures_graphics",
|
||||
"translated": "Pictures - Graphics"
|
||||
},
|
||||
{
|
||||
"id": "pictures_photos",
|
||||
"translated": "Pictures - Photos"
|
||||
},
|
||||
{
|
||||
"id": "software_applications",
|
||||
"translated": "Software - Applications"
|
||||
},
|
||||
{
|
||||
"id": "software_games",
|
||||
"translated": "Software - Games"
|
||||
},
|
||||
{
|
||||
"id": "torrent_description",
|
||||
"translated": "Torrent Description"
|
||||
},
|
||||
{
|
||||
"id": "limited_html_set_is_allowed_use",
|
||||
"translated": "A limited set of HTML is allowed in the description, make sure to use"
|
||||
}
|
||||
]
|
||||
|
|
|
@ -6,52 +6,52 @@
|
|||
<form enctype="multipart/form-data" role="upload" method="POST">
|
||||
|
||||
<div class="form-group">
|
||||
<label for="name">Name</label>
|
||||
<label for="name">{{T "name"}}</label>
|
||||
<input type="text" name="name" class="form-control" placeholder="File Name" value="{{.Name}}" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="torrent">Torrent file</label>
|
||||
<label for="torrent">{{T "torrent_file"}}</label>
|
||||
<input type="file" name="torrent" id="torrent" accept=".torrent">
|
||||
<p class="help-block">Uploading a torrent file allows pre-filling some fields, this is recommended.</p>
|
||||
<p class="help-block">{{T "uploading_file_prefills_fields"}}</p>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="magnet">Magnet Link</label>
|
||||
<label for="magnet">{{T "magnet_link"}}</label>
|
||||
<input type="text" name="magnet" class="form-control"
|
||||
style="width:60rem" placeholder="Magnet Link" value="{{.Magnet}}">
|
||||
style="width:60rem" placeholder="{{T "magnet_link"}}" value="{{.Magnet}}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="c">Category</label>
|
||||
<label for="c">{{T "category"}}</label>
|
||||
<select name="c" class="form-control input-sm">
|
||||
<option value="3_12" {{if eq .Category "3_12"}}selected{{end}}>Anime - Anime Music Video</option>
|
||||
<option value="3_5" {{if eq .Category "3_5"}}selected{{end}}>Anime - English-translated</option>
|
||||
<option value="3_13" {{if eq .Category "3_13"}}selected{{end}}>Anime - Non-English-translated</option>
|
||||
<option value="3_6" {{if eq .Category "3_6"}}selected{{end}}>Anime - Raw</option>
|
||||
<option value="2_3" {{if eq .Category "2_3"}}selected{{end}}>Audio - Lossless</option>
|
||||
<option value="2_4" {{if eq .Category "2_4"}}selected{{end}}>Audio - Lossy</option>
|
||||
<option value="4_7" {{if eq .Category "4_7"}}selected{{end}}>Literature - English-translated</option>
|
||||
<option value="4_8" {{if eq .Category "4_8"}}selected{{end}}>Literature - Raw</option>
|
||||
<option value="4_14" {{if eq .Category "4_14"}}selected{{end}}>Literature - Non-English-translated</option>
|
||||
<option value="5_9" {{if eq .Category "5_9"}}selected{{end}}>Live Action - English-translated</option>
|
||||
<option value="5_10" {{if eq .Category "5_10"}}selected{{end}}>Live Action - Idol/Promotional Video</option>
|
||||
<option value="5_18" {{if eq .Category "5_18"}}selected{{end}}>Live Action - Non-English-translated</option>
|
||||
<option value="5_11" {{if eq .Category "5_11"}}selected{{end}}>Live Action - Raw</option>
|
||||
<option value="6_15" {{if eq .Category "6_15"}}selected{{end}}>Pictures - Graphics</option>
|
||||
<option value="6_16" {{if eq .Category "6_16"}}selected{{end}}>Pictures - Photos</option>
|
||||
<option value="1_1" {{if eq .Category "1_1"}}selected{{end}}>Software - Applications</option>
|
||||
<option value="1_2" {{if eq .Category "1_2"}}selected{{end}}>Software - Games</option>
|
||||
<option value="3_12" {{if eq .Category "3_12"}}selected{{end}}>{{T "anime_amv"}}</option>
|
||||
<option value="3_5" {{if eq .Category "3_5"}}selected{{end}}>{{T "anime_english_translated"}}</option>
|
||||
<option value="3_13" {{if eq .Category "3_13"}}selected{{end}}>{{T "anime_non_english_translated"}}</option>
|
||||
<option value="3_6" {{if eq .Category "3_6"}}selected{{end}}>{{T "anime_raw"}}</option>
|
||||
<option value="2_3" {{if eq .Category "2_3"}}selected{{end}}>{{T "audio_lossless"}}</option>
|
||||
<option value="2_4" {{if eq .Category "2_4"}}selected{{end}}>{{T "audio_lossy"}}</option>
|
||||
<option value="4_7" {{if eq .Category "4_7"}}selected{{end}}>{{T "literature_english_translated"}}</option>
|
||||
<option value="4_8" {{if eq .Category "4_8"}}selected{{end}}>{{T "literature_raw"}}</option>
|
||||
<option value="4_14" {{if eq .Category "4_14"}}selected{{end}}>{{T "literature_non_english_translated"}}</option>
|
||||
<option value="5_9" {{if eq .Category "5_9"}}selected{{end}}>{{T "live_action_english_translated"}}</option>
|
||||
<option value="5_10" {{if eq .Category "5_10"}}selected{{end}}>{{T "live_action_idol_pv"}}</option>
|
||||
<option value="5_18" {{if eq .Category "5_18"}}selected{{end}}>{{T "live_action_non_english_translated"}}</option>
|
||||
<option value="5_11" {{if eq .Category "5_11"}}selected{{end}}>{{T "live_action_raw"}}</option>
|
||||
<option value="6_15" {{if eq .Category "6_15"}}selected{{end}}>{{T "pictures_graphics"}}</option>
|
||||
<option value="6_16" {{if eq .Category "6_16"}}selected{{end}}>{{T "pictures_photos"}}</option>
|
||||
<option value="1_1" {{if eq .Category "1_1"}}selected{{end}}>{{T "software_applications"}}</option>
|
||||
<option value="1_2" {{if eq .Category "1_2"}}selected{{end}}>{{T "software_games"}}</option>
|
||||
</select>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="desc">Torrent Description</label>
|
||||
<p class="help-block">A limited set of HTML is allowed in the description, make sure to use <span style="font-family:monospace"><br/></span>.</p>
|
||||
<label for="desc">{{T "torrent_description"}}</label>
|
||||
<p class="help-block">{{T "limited_html_set_is_allowed_use"}} <span style="font-family:monospace"><br/></span>.</p>
|
||||
<textarea name="desc" class="form-control" rows="10">{{.Description}}</textarea>
|
||||
</div>
|
||||
|
||||
{{block "captcha" .}}{{end}}
|
||||
|
||||
<button type="submit" class="btn btn-success">Upload</button>
|
||||
<button type="submit" class="btn btn-success">{{T "upload"}}</button>
|
||||
<br />
|
||||
<br />
|
||||
</form>
|
||||
|
|
Référencer dans un nouveau ticket