|
1 | 1 | <!DOCTYPE html> |
2 | | -<html lang=""> |
| 2 | +<html lang="{{.Lang}}"> |
3 | 3 | <head> |
4 | 4 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
5 | 5 | <meta http-equiv="X-UA-Compatible" content="IE=edge"/> |
|
24 | 24 | <div class="panel mkdir"> |
25 | 25 | <form method="POST" action="{{.SubItemPrefix}}?mkdir"> |
26 | 26 | <input type="text" autocomplete="off" name="name" class="name"/> |
27 | | - <input type="submit" value="mkdir" class="submit"/> |
| 27 | + <input type="submit" value="{{.Trans.MkdirLabel}}" class="submit"/> |
28 | 28 | </form> |
29 | 29 | </div> |
30 | 30 | {{end}} |
31 | 31 |
|
32 | 32 | {{if .CanUpload}} |
33 | 33 | <div class="tab upload-type"> |
34 | | - <label class="file active" tabindex="0" role="button" title="Upload files">Files</label> |
35 | | - {{if .CanMkdir}}<label class="dirfile hidden" tabindex="0" role="button" title="Upload Directory itself">Dir</label>{{end}} |
36 | | - <label class="innerdirfile hidden" tabindex="0" role="button" title="Upload contents of directory">Dir contents</label> |
| 34 | + <label class="file active" tabindex="0" role="button" title="{{.Trans.UploadFilesHint}}">{{.Trans.UploadFilesLabel}}</label> |
| 35 | + {{if .CanMkdir}}<label class="dirfile hidden" tabindex="0" role="button" title="{{.Trans.UploadDirHint}}">{{.Trans.UploadDirLabel}}</label>{{end}} |
| 36 | + <label class="innerdirfile hidden" tabindex="0" role="button" title="{{.Trans.UploadDirContentsHint}}">{{.Trans.UploadDirContentsLabel}}</label> |
37 | 37 | </div> |
38 | 38 | <div class="panel upload"> |
39 | 39 | <form method="POST" action="{{.SubItemPrefix}}?upload" enctype="multipart/form-data"> |
40 | 40 | <input type="file" name="file" multiple="multiple" class="file"/> |
41 | 41 | <button type="submit" class="submit"> |
42 | 42 | <span class="progress"></span> |
43 | | - <span class="if-enabled">Upload</span><span class="if-disabled">Uploading ...</span> |
| 43 | + <span class="if-enabled">{{.Trans.UploadLabel}}</span><span class="if-disabled">{{.Trans.UploadingLabel}}</span> |
44 | 44 | </button> |
45 | 45 | </form> |
46 | 46 | </div> |
|
57 | 57 | {{if .SubItemsHtml}} |
58 | 58 | <div class="panel filter" id="panel-filter"> |
59 | 59 | <div class="form"> |
60 | | - <input type="text" accesskey="r" placeholder="filter..." name="filter-text" class="filter-text"/> |
| 60 | + <input type="text" accesskey="r" placeholder="{{.Trans.FilterLabel}}" name="filter-text" class="filter-text"/> |
61 | 61 | </div> |
62 | 62 | </div> |
63 | 63 | {{end}} |
|
67 | 67 | function confirmDelete(el) { |
68 | 68 | var href = el.href; |
69 | 69 | var name = decodeURIComponent(href.substr(href.lastIndexOf('=') + 1)); |
70 | | - return confirm('Delete?\n' + name); |
| 70 | + return confirm('{{.Trans.DeleteConfirm}}\n' + name); |
71 | 71 | } |
72 | 72 | </script> |
73 | 73 | {{end}} |
|
76 | 76 | {{if not .IsDownload}} |
77 | 77 | <li class="header">{{$dirSort := .SortState.DirSort}}{{$sortKey := .SortState.Key}} |
78 | 78 | <span class="detail"> |
79 | | - <a class="field dir" href="{{.SubItemPrefix}}{{.Context.QueryStringOfSort .SortState.NextDirSort}}">Dir{{if eq $dirSort -1}}↑{{else if eq $dirSort 1}}↓{{end}}</a> |
80 | | - <a class="field name" href="{{.SubItemPrefix}}{{.Context.QueryStringOfSort .SortState.NextNameSort}}">Name{{if eq $sortKey "n"}}↑{{else if eq $sortKey "N"}}↓{{end}}</a> |
81 | | - <a class="field type" href="{{.SubItemPrefix}}{{.Context.QueryStringOfSort .SortState.NextTypeSort}}">Type{{if eq $sortKey "e"}}↑{{else if eq $sortKey "E"}}↓{{end}}</a> |
82 | | - <a class="field size" href="{{.SubItemPrefix}}{{.Context.QueryStringOfSort .SortState.NextSizeSort}}">Size{{if eq $sortKey "s"}}↑{{else if eq $sortKey "S"}}↓{{end}}</a> |
83 | | - <a class="field time" href="{{.SubItemPrefix}}{{.Context.QueryStringOfSort .SortState.NextTimeSort}}">Time{{if eq $sortKey "t"}}↑{{else if eq $sortKey "T"}}↓{{end}}</a> |
| 79 | + <a class="field dir" href="{{.SubItemPrefix}}{{.Context.QueryStringOfSort .SortState.NextDirSort}}">{{.Trans.ListDirLabel}}{{if eq $dirSort -1}}↑{{else if eq $dirSort 1}}↓{{end}}</a> |
| 80 | + <a class="field name" href="{{.SubItemPrefix}}{{.Context.QueryStringOfSort .SortState.NextNameSort}}">{{.Trans.ListNameLabel}}{{if eq $sortKey "n"}}↑{{else if eq $sortKey "N"}}↓{{end}}</a> |
| 81 | + <a class="field type" href="{{.SubItemPrefix}}{{.Context.QueryStringOfSort .SortState.NextTypeSort}}">{{.Trans.ListTypeLabel}}{{if eq $sortKey "e"}}↑{{else if eq $sortKey "E"}}↓{{end}}</a> |
| 82 | + <a class="field size" href="{{.SubItemPrefix}}{{.Context.QueryStringOfSort .SortState.NextSizeSort}}">{{.Trans.ListSizeLabel}}{{if eq $sortKey "s"}}↑{{else if eq $sortKey "S"}}↓{{end}}</a> |
| 83 | + <a class="field time" href="{{.SubItemPrefix}}{{.Context.QueryStringOfSort .SortState.NextTimeSort}}">{{.Trans.ListTimeLabel}}{{if eq $sortKey "t"}}↑{{else if eq $sortKey "T"}}↓{{end}}</a> |
84 | 84 | </span> |
85 | 85 | </li> |
86 | 86 | <li class="dir parent"> |
|
104 | 104 | </ul> |
105 | 105 |
|
106 | 106 | {{if eq .Status 403}} |
107 | | -<div class="error">403 resource is forbidden</div> |
| 107 | +<div class="error">{{.Trans.Error403}}</div> |
108 | 108 | {{else if eq .Status 404}} |
109 | | -<div class="error">404 resource not found</div> |
| 109 | +<div class="error">{{.Trans.Error404}}</div> |
110 | 110 | {{else if eq .Status 500}} |
111 | | -<div class="error">500 potential issue occurred</div> |
| 111 | +<div class="error">{{.Trans.Error500}}</div> |
112 | 112 | {{end}} |
113 | 113 |
|
114 | 114 | <script type="text/javascript" src="{{.RootRelPath}}?asset=index.js" defer="defer" async="async"></script> |
|
0 commit comments