Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0

Merge pull request #479 from ewhal/torrent-btn-translation

Torrent view translation
Cette révision appartient à :
akuma06 2017-05-14 16:49:26 +02:00 révisé par GitHub
révision 527f978d79
2 fichiers modifiés avec 73 ajouts et 31 suppressions

Voir le fichier

@ -13,32 +13,34 @@
<div class="row"> <div class="row">
<div class="col-md-8"> <div class="col-md-8">
<div class="row" id="description"> <div class="row" id="description">
<div class="col-md-12"> <div class="col-md-12">
<div style="float: left;"> <div style="float: left;">
<div class="uploaded_by"> <div class="uploaded_by">
<img style="float:left; margin-right: 1em;" src="{{$.URL.Parse (printf "/img/torrents/%s.png" .SubCategory) }}"> <img style="float:left; margin-right: 1em;" src="{{$.URL.Parse (printf "/img/torrents/%s.png" .SubCategory) }}">
<h4>Uploaded by <a href="{{$.URL.Parse (printf "/user/%d/-" .UploaderID) }}">{{.UploaderName}}</a></h4> <h4>{{ T "uploaded_by" }} <a href="{{$.URL.Parse (printf "/user/%d/-" .UploaderID) }}">{{.UploaderName}}</a></h4>
</div>
</div> </div>
<div style="float:right;">
<a style="margin: 5px;" aria-label="Magnet Button" href="{{.Magnet}}" type="button" class="btn btn-lg btn-success"> <div style="float:right;">
<span class="glyphicon glyphicon-magnet" aria-hidden="true"></span> Download! <a style="margin: 5px;" aria-label="Magnet Button" href="{{.Magnet}}" type="button" class="btn btn-lg btn-success">
</a> <span class="glyphicon glyphicon-magnet" aria-hidden="true"></span> {{ T "download_btn" }}
{{if ne .TorrentLink ""}} </a>
<a style="margin: 5px;" aria-label="Torrent file" href="{{.TorrentLink}}" type="button" class="btn btn-lg btn-success"> {{if ne .TorrentLink ""}}
<span class="glyphicon glyphicon-floppy-save" aria-hidden="true"></span> Torrent file <a style="margin: 5px;" aria-label="Torrent file" href="{{.TorrentLink}}" type="button" class="btn btn-lg btn-success">
</a> <span class="glyphicon glyphicon-floppy-save" aria-hidden="true"></span> {{ T "torrent_file" }}
{{end}} </a>
<a style="margin: 5px;" aria-label="Report button" data-toggle="modal" data-target="#reportModal" class="btn btn-danger btn-sm"> {{end}}
<span class="glyphicon glyphicon-remove" aria-hidden="true"></span> Report! <a style="margin: 5px;" aria-label="Report button" data-toggle="modal" data-target="#reportModal" class="btn btn-danger btn-sm">
</a> <span class="glyphicon glyphicon-remove" aria-hidden="true"></span> {{ T "report" }}
{{ if HasAdmin $.User}} </a>
<a href="{{ genRoute "mod_tdelete" }}?id={{ .ID }}" class="btn btn-danger btn-lg" onclick="if (!confirm('Are you sure?')) return false;"><i class="glyphicon glyphicon-trash"></i></a>
<a href="{{ genRoute "mod_tedit" }}?id={{ .ID }}" class="btn btn-warning btn-lg"><i class="glyphicon glyphicon-pencil"></i></a> {{ if HasAdmin $.User}}
{{end}} <a href="{{ genRoute "mod_tdelete" }}?id={{ .ID }}" class="btn btn-danger btn-lg" onclick="if (!confirm('{{ T "are_you_sure" }}')) return false;"><i class="glyphicon glyphicon-trash"></i></a>
</div> <a href="{{ genRoute "mod_tedit" }}?id={{ .ID }}" class="btn btn-warning btn-lg"><i class="glyphicon glyphicon-pencil"></i></a>
<div style="clear: both;"></div> {{end}}
</div> </div>
<div style="clear: both;"></div>
</div>
<div class="col-md-12"> <div class="col-md-12">
<h4>{{T "description"}}</h4> <h4>{{T "description"}}</h4>
<div class="break">{{.Description}}</div> <div class="break">{{.Description}}</div>
@ -152,17 +154,17 @@
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-header">
<button type="button" class="close" data-dismiss="modal">&times;</button> <button type="button" class="close" data-dismiss="modal">&times;</button>
<h4 class="modal-title">Report Torrent #{{.Torrent.ID}}</h4> <h4 class="modal-title">{{ T "report_torrent_number" (print .Torrent.ID) }}</h4>
</div> </div>
<div class="modal-body"> <div class="modal-body">
<b>Report type:</b> <b>{{ T "report_type" }}:</b>
<form method="post" action="/report/{{.Torrent.ID}}"> <form method="post" action="/report/{{.Torrent.ID}}">
<input type="radio" name="report_type" value="illegal" required> Illegal content<br /> <input type="radio" name="report_type" value="illegal" required> {{ T "illegal_content" }}<br />
<input type="radio" name="report_type" value="spam" required> Spam / Garbage<br /> <input type="radio" name="report_type" value="spam" required> {{ T "spam_garbage" }}<br />
<input type="radio" name="report_type" value="wrongcat" required> Wrong category<br /> <input type="radio" name="report_type" value="wrongcat" required> {{ T "wrong_category" }}<br />
<input type="radio" name="report_type" value="dup" required> Duplicate / Deprecated<br /> <input type="radio" name="report_type" value="dup" required> {{ T "duplicate_deprecated" }}<br />
{{block "captcha" .}}{{end}} {{block "captcha" .}}{{end}}
<button type="submit" class="btn btn-default">Report!</button> <button type="submit" class="btn btn-default">{{ T "report_btn" }}</button>
</form> <br /> </form> <br />
</div> </div>
<div class="modal-footer"> <div class="modal-footer">

Voir le fichier

@ -646,5 +646,45 @@
{ {
"id": "delete", "id": "delete",
"translation": "Delete" "translation": "Delete"
},
{
"id": "uploaded_by",
"translation": "Uploaded by"
},
{
"id": "download_btn",
"translation": "Download!"
},
{
"id": "report",
"translation": "Report!"
},
{
"id": "are_you_sure",
"translation": "Are you sure?"
},
{
"id": "report_torrent_number",
"translation": "Report Torrent #"
},
{
"id": "report_type",
"translation": "Report type"
},
{
"id": "illegal_content",
"translation": "Illegal content"
},
{
"id": "spam_garbage",
"translation": "Spam / Garbage"
},
{
"id": "wrong_category",
"translation": "Wrong category"
},
{
"id": "duplicate_deprecated",
"translation": "Duplicate / Deprecated"
} }
] ]