@@ -39,8 +39,8 @@ function checkvalue(value)
39
39
40
40
<div class =" row" >
41
41
<div class =" form-group col-xs-12 @if ($errors -> has (' pasteTitle' ) ) has-error @endif " >
42
- <label for =" pasteTitle" >Title </label >
43
- <input type =" text" class =" form-control" name =" pasteTitle" id =" pasteTitle" placeholder =" Title (optional) " maxlength =" 70" value =" {{ old (' pasteTitle' ) ? old (' pasteTitle' ) : $title } }" >
42
+ <label for =" pasteTitle" >{{ __ ( ' edpaste.paste.title ' ) } } </label >
43
+ <input type =" text" class =" form-control" name =" pasteTitle" id =" pasteTitle" placeholder =" {{ __ ( ' edpaste.paste.title.placeholder ' ) } } " maxlength =" 70" value =" {{ old (' pasteTitle' ) ? old (' pasteTitle' ) : $title } }" >
44
44
@if ($errors -> has (' pasteTitle' ) )
45
45
<span class =" help-block" >
46
46
<strong >{{ $errors -> first (' pasteTitle' ) } } </strong >
@@ -50,13 +50,13 @@ function checkvalue(value)
50
50
</div >
51
51
<div class =" row" >
52
52
<div class =" form-group col-xs-12 @if ($errors -> has (' pasteContent' ) ) has-error @endif " >
53
- <label for =" pasteContent" >Content </label >
53
+ <label for =" pasteContent" >{{ __ ( ' edpaste.paste.content ' ) } } </label >
54
54
<script type =" text/javascript" >
55
55
$ (document ).ready (function (){
56
56
$ (" #pasteContent" ).autoGrow ();
57
57
});
58
58
</script >
59
- <textarea class =" form-control input-sm" name =" pasteContent" id =" pasteContent" rows =" 15" placeholder =" Paste your text here... " style =" font-family : monospace ;" >{{ old (' pasteContent' ) ? old (' pasteContent' ) : $content } } </textarea >
59
+ <textarea class =" form-control input-sm" name =" pasteContent" id =" pasteContent" rows =" 15" placeholder =" {{ __ ( ' edpaste.paste.content.placeholder ' ) } } " style =" font-family : monospace ;" >{{ old (' pasteContent' ) ? old (' pasteContent' ) : $content } } </textarea >
60
60
@if ($errors -> has (' pasteContent' ) )
61
61
<span class =" help-block" >
62
62
<strong >{{ $errors -> first (' pasteContent' ) } } </strong >
@@ -66,15 +66,15 @@ function checkvalue(value)
66
66
</div >
67
67
<div class =" row" >
68
68
<div class =" form-group col-sm-3 @if ($errors -> has (' expire' ) ) has-error @endif " >
69
- <label for =" expire" >Paste expiration</label >
69
+ <label for =" expire" >{{ __ ( ' edpaste.paste. expiration' ) } } </label >
70
70
<select class =" form-control" name =" expire" id =" expire" >
71
71
<option disabled selected ></option >
72
- <option value =" never" >Never </option >
73
- <option value =" burn" >Burn after reading </option >
74
- <option value =" 10m" >10 minutes </option >
75
- <option value =" 1h" >1 hour </option >
76
- <option value =" 1d" >1 day </option >
77
- <option value =" 1w" >1 week </option >
72
+ <option value =" never" selected = " selected " > {{ __ ( ' edpaste.paste.option.expiration.never ' ) } } </option >
73
+ <option value =" burn" >{{ __ ( ' edpaste.paste.option.expiration.burn_after_reading ' ) } } </option >
74
+ <option value =" 10m" >{{ __ ( ' edpaste.paste.option.expiration.10min ' ) } } </option >
75
+ <option value =" 1h" >{{ __ ( ' edpaste.paste.option.expiration.1h ' ) } } </option >
76
+ <option value =" 1d" >{{ __ ( ' edpaste.paste.option.expiration.1d ' ) } } </option >
77
+ <option value =" 1w" >{{ __ ( ' edpaste.paste.option.expiration.1w ' ) } } </option >
78
78
</select >
79
79
@if ($errors -> has (' expire' ) )
80
80
<span class =" help-block" >
@@ -83,18 +83,20 @@ function checkvalue(value)
83
83
@endif
84
84
</div >
85
85
<div class =" form-group col-sm-3 @if ($errors -> has (' pastePassword' ) ) has-error @endif " >
86
- <label for =" privacy" >Privacy</label >
87
- <select class =" form-control" name =" privacy" id =" privacy" onchange =' checkvalue(this.value)' >
88
- <option value =" link" {{ $privacy == " link" ? ' selected' : ' ' } } >Unlisted, access with link</option >
89
- <option value =" internal" {{ $privacy == " internal" ? ' selected' : ' ' } } >Internal</option >
90
- <option value =" password" {{ $privacy == " password" || $errors -> has (' pastePassword' ) ? ' selected' : ' ' } } >Password-protected</option >
91
- <option value =" private" {{ $privacy == " private" ? ' selected' : ' ' } } >Private, only me</option >
92
- </select >
86
+ <label for =" privacy" >{{ __ (' edpaste.paste.privacy' ) } } </label >
87
+ <select class =" form-control" name =" privacy" id =" privacy" onchange =' checkvalue(this.value)' >
88
+ <option value =" link" >{{ __ (' edpaste.paste.option.privacy.link' ) } } </option >
89
+ <option value =" internal" >{{ __ (' edpaste.paste.option.privacy.internal' ) } } </option >
90
+ <option value =" password" @if ($errors -> has (' pastePassword' ) ) selected =" selected" @endif >{{ __ (' edpaste.paste.option.privacy.password' ) } } </option >
91
+ @if (cas ()-> isAuthenticated () )
92
+ <option value =" private" >{{ __ (' edpaste.paste.option.privacy.private' ) } } </option >
93
+ @endif
94
+ </select >
93
95
</div >
94
96
{{-- Ce truc n'apparait que si "Password-protected" est séléctionné plus haut --}}
95
97
<div class =" form-group col-sm-2 @if ($errors -> has (' pastePassword' ) ) has-error @endif " id =" passwordInput" @if (! $errors -> has (' pastePassword' ) ) style =" display :none ;" @endif >
96
- <label for =" pastePassword" >Password </label >
97
- <input type =" password" class =" form-control" name =" pastePassword" id =" pastePassword" placeholder =" Enter a password... " maxlength =" 40" >
98
+ <label for =" pastePassword" >{{ __ ( ' edpaste.password.title ' ) } } </label >
99
+ <input type =" password" class =" form-control" name =" pastePassword" id =" pastePassword" placeholder =" {{ __ ( ' edpaste. password.field.placeholder ' ) } } " maxlength =" 40" >
98
100
@if ($errors -> has (' pastePassword' ) )
99
101
<span class =" help-block" >
100
102
<strong >{{ $errors -> first (' pastePassword' ) } } </strong >
@@ -111,9 +113,9 @@ function checkvalue(value)
111
113
</script >
112
114
{{-- La tooltip n'apparaît que pour les users non-id et le btn devient danger si y'a des erreurs --}}
113
115
<div class =" checkbox" >
114
- <label ><input type =" checkbox" name =" noSyntax" @if ($noSyntax ) checked @endif >Disable syntax highlighting </label >
116
+ <label ><input type =" checkbox" name =" noSyntax" @if ($noSyntax ) checked @endif >{{ __ ( ' edpaste.paste.option.disable. syntax' ) } } </label >
115
117
</div >
116
- <button type =" submit" id =" submit" class =" btn @if (count ($errors ) > 0 ) btn-danger @else btn-outline-success @endif btn-lg" @if (! cas ()-> isAuthenticated () ) data-toggle =" tooltip" data-placement =" top" title =" Registered users have access to other privacy tools" @endif >Submit </button >
118
+ <button type =" submit" id =" submit" class =" btn @if (count ($errors ) > 0 ) btn-danger @else btn-outline-success @endif btn-lg" @if (! cas ()-> isAuthenticated () ) data-toggle =" tooltip" data-placement =" top" title =" Registered users have access to other privacy tools" @endif >{{ __ ( ' edpaste.paste.submit ' ) } } </button >
117
119
</div >
118
120
</div >
119
121
0 commit comments