Skip to content

Commit

Permalink
Merge pull request #200 from VerioPL/master
Browse files Browse the repository at this point in the history
Translation en/pl of torrent views - part 1
  • Loading branch information
HDVinnie authored Feb 21, 2018
2 parents 3fd68b5 + f4bbbec commit 896b332
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 36 deletions.
4 changes: 3 additions & 1 deletion resources/lang/en/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,5 +132,7 @@
'oldest' => 'Oldest',
'extra' => 'Extra',
'view' => 'View',
'lists' => 'Lists'
'lists' => 'Lists',
'reason' => 'Reason',
'files' => 'Files'
];
7 changes: 6 additions & 1 deletion resources/lang/en/torrent.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,10 @@
'started' => 'Started',
'last-update' => 'Last update',
'poster-view' => 'Poster view',
'posters' => 'Posters'
'posters' => 'Posters',
'meta-desc' => 'Download :name at maximum speed',
'say-thanks' => 'Please remember to say <b>thanks</b> and <b>seed</b> for as long as you can',
'view-trailer' => 'View trailer',
'discounts' => 'Discounts',
'no-discounts' => 'Currently no discounts'
];
4 changes: 3 additions & 1 deletion resources/lang/pl/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,5 +132,7 @@
'oldest' => 'Najstarsze',
'extra' => 'Ekstra',
'view' => 'Zobacz',
'lists' => 'Listy'
'lists' => 'Listy',
'reason' => 'Powód',
'files' => 'Pliki'
];
7 changes: 6 additions & 1 deletion resources/lang/pl/torrent.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,10 @@
'started' => 'Rozpoczęto',
'last-update' => 'Ostatnia aktualizacja',
'poster-view' => 'Widok plakatu',
'posters' => 'Plakaty'
'posters' => 'Plakaty',
'meta-desc' => 'Pobierz :name z maksymalną prędkością',
'say-thanks' => 'Pamiętaj, aby <b>podziękować</b> oraz <b>seedować</b> po pobraniu',
'view-trailer' => 'Zobacz trailer',
'discounts' => 'Promocje',
'no-discounts' => 'Aktualnie brak promocji'
];
18 changes: 9 additions & 9 deletions resources/views/torrent/torrent.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
@stop

@section('meta')
<meta name="description" content="{{ 'Download ' . $torrent->name . ' at maximum speed!' }}">
<meta name="description" content="{{ trans('torrent.meta-desc', ['name' => $torrent->name]) }}!">
@stop

@section('breadcrumb')
Expand All @@ -28,7 +28,7 @@
@section('content')
<div class="torrent box container">
<div style="line-height: 15px;height:45px;width:100%;background: repeating-linear-gradient( 45deg,#D13A3A,#D13A3A 10px,#DF4B4B 10px,#DF4B4B 20px);border:solid 1px #B22929;-webkit-box-shadow: 0px 0px 6px #B22929;margin-bottom:-0px;margin-top:0px;font-family:Verdana;font-size:large;text-align:center;color:white">
<br>Please remember to say <b>thanks</b> and <b>seed</b> for as long as you can!</div>
<br>{!! trans('torrent.say-thanks') !!}!</div>
@if($torrent->category->meta == 1)
<div class="movie-wrapper">
<div class="movie-backdrop" style="background-image: url({{ $movie->backdrop }});">
Expand All @@ -42,14 +42,14 @@
<div class="col-xs-12 col-sm-8 col-md-8 col-sm-push-4 col-md-push-3 movie-heading-box">
<h1 class="movie-heading">
<span class="text-bold">{{ $movie->title }}</span><span class="text-bold"><em> ({{ $movie->releaseYear }})</em></span>
<span class="badge-user text-bold text-gold">Rating:
<span class="badge-user text-bold text-gold">{{ trans('torrent.rating') }}:
<span class="movie-rating-stars">
<i class="fa fa-star"></i>
</span>
@if($user->ratings == 1)
{{ $movie->imdbRating }}/10 ({{ $movie->imdbVotes }} votes)
{{ $movie->imdbRating }}/10 ({{ $movie->imdbVotes }} {{ trans('torrent.votes') }})
@else
{{ $movie->tmdbRating }}/10 ({{ $movie->tmdbVotes }} votes)
{{ $movie->tmdbRating }}/10 ({{ $movie->tmdbVotes }} {{ trans('torrent.votes') }})
@endif
</span>
</h1>
Expand All @@ -63,7 +63,7 @@
<span class="badge-user text-bold text-green">{{ $genre }}</span>
@endforeach
@endif
<span class="badge-user text-bold text-orange">Rated: {{ $movie->rated }} </span> <span class="badge-user text-bold text-orange">Runtime: {{ $movie->runtime }} minutes</span>
<span class="badge-user text-bold text-orange">{{ trans('torrent.rated') }}: {{ $movie->rated }} </span> <span class="badge-user text-bold text-orange">{{ trans('torrent.runtime') }}: {{ $movie->runtime }} {{ trans('common.minute') }}{{ trans('common.plural-suffix') }}</span>
</li>
<li>
<span class="badge-user text-bold text-orange">
Expand All @@ -89,7 +89,7 @@
</span>
@endif
<span class="badge-user text-bold text-pink">
<a href="{{ $movie->videoTrailer }}" title="View Trailer">View Trailer <i class="fa fa-external-link"></i></a>
<a href="{{ $movie->videoTrailer }}" title="View Trailer">{{ trans('torrent.view-trailer') }} <i class="fa fa-external-link"></i></a>
</span>
</li>
</ul>
Expand All @@ -108,7 +108,7 @@
<tbody>
@if($torrent->featured == 0)
<tr class="success">
<td><strong>Discounts</strong></td>
<td><strong>{{ trans('torrent.discounts') }}</strong></td>
<td>
@if($torrent->doubleup == "1" || $torrent->free == "1" || config('other.freeleech') == true || config('other.doubleup') == true || $personal_freeleech || $user->group->is_freeleech == 1 || $freeleech_token)
@if($freeleech_token)<span class="badge-extra text-bold"><i class="fa fa-viacoin text-bold" data-toggle="tooltip" title="" data-original-title="Freeleech Token"></i> Freeleech Token</span> @endif
Expand All @@ -119,7 +119,7 @@
@if(config('other.freeleech') == true)<span class="badge-extra text-bold"><i class="fa fa-globe text-blue" data-toggle="tooltip" title="" data-original-title="Global FreeLeech"></i> Global FreeLeech</span> @endif
@if(config('other.doubleup') == true)<span class="badge-extra text-bold"><i class="fa fa-globe text-green" data-toggle="tooltip" title="" data-original-title="Double Upload"></i> Global Double Upload</span> @endif
@else
<span class="text-bold text-danger"><i class="fa fa-frown-o"></i> Currently No Discounts</span>
<span class="text-bold text-danger"><i class="fa fa-frown-o"></i> {{ trans('torrent.no-discounts') }}</span>
@endif
</td>
</tr>
Expand Down
42 changes: 19 additions & 23 deletions resources/views/torrent/torrent_modals.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,37 @@
<div class="modal-dialog modal-lg">
<div class="modal-content">
<meta charset="utf-8">
<title>Report Torrent: {{ $torrent->name }}</title>
<title>{{ trans('common.report') }} {{ strtolower(trans('torrent.torrent')) }}: {{ $torrent->name }}</title>
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Report Torrent: {{ $torrent->name }}</h4>
<button type="button" class="close" data-dismiss="modal" aria-label="{{ trans('common.close') }}"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">{{ trans('common.report') }} {{ strtolower(trans('torrent.torrent')) }}: {{ $torrent->name }}</h4>
</div>
<div class="modal-body">
<div class="form-group">
<form class="form-horizontal" role="form" method="POST" action="{{ route('postReport') }}">
{{ csrf_field() }}
<input id="type" name="type" type="hidden" value="Torrent">
<label for="file_name" class="col-sm-2 control-label">Torrent</label>
<label for="file_name" class="col-sm-2 control-label">{{ trans('torrent.torrent') }}</label>
<div class="col-sm-10">
<input id="title" name="title" type="hidden" value="{{ $torrent->name }}">
<p class="form-control-static">{{ $torrent->name }}</p>
</div>
</div>
<div class="form-group">
<label for="report_reason" class="col-sm-2 control-label">Reason</label>
<label for="report_reason" class="col-sm-2 control-label">{{ trans('common.reason') }}</label>
<div class="col-sm-10">
<textarea class="form-control" rows="5" name="message" cols="50" id="message"></textarea>
</div>
</div>
<div class="form-group">
<div class="col-sm-10 col-sm-offset-2">
<input class="btn btn-danger" type="submit" value="Report">
<input class="btn btn-danger" type="submit" value="{{ trans('common.report') }}">
</div>
</form>
</div>
</div>
<div class="modal-footer">
<button class="btn btn-sm btn-default" type="button" data-dismiss="modal">Close</button>
<button class="btn btn-sm btn-default" type="button" data-dismiss="modal">{{ trans('common.close') }}</button>
</div>
</div>
</div>
Expand All @@ -44,49 +44,49 @@
<div class="modal-dialog modal-lg">
<div class="modal-content">
<meta charset="utf-8">
<title>Delete Torrent: {{ $torrent->name }}</title>
<title>{{ trans('common.delete') }} {{ strtolower(trans('torrent.torrent')) }}: {{ $torrent->name }}</title>
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Delete Torrent: {{ $torrent->name }}</h4>
<button type="button" class="close" data-dismiss="modal" aria-label="{{ trans('common.close') }}"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">{{ trans('common.delete') }} {{ strtolower(trans('torrent.torrent')) }}: {{ $torrent->name }}</h4>
</div>
<div class="modal-body">
<div class="form-group">
<form class="form-horizontal" role="form" method="POST" action="{{ route('delete', array('id' => $torrent->id)) }}">
{{ csrf_field() }}
<input id="type" name="type" type="hidden" value="Torrent">
<label for="file_name" class="col-sm-2 control-label">Torrent</label>
<label for="file_name" class="col-sm-2 control-label">{{ trans('torrent.torrent') }}</label>
<div class="col-sm-10">
<input id="title" name="title" type="hidden" value="{{ $torrent->name }}">
<p class="form-control-static">{{ $torrent->name }}</p>
</div>
</div>
<div class="form-group">
<label for="report_reason" class="col-sm-2 control-label">Reason (sent to uploader)</label>
<label for="report_reason" class="col-sm-2 control-label">{{ trans('common.reason') }}</label>
<div class="col-sm-10">
<textarea class="form-control" rows="5" name="message" cols="50" id="message"></textarea>
</div>
</div>
<div class="form-group">
<div class="col-sm-10 col-sm-offset-2">
<input class="btn btn-danger" type="submit" value="Delete">
<input class="btn btn-danger" type="submit" value="{{ trans('common.delete') }}">
</div>
</form>
</div>
</div>
<div class="modal-footer">
<button class="btn btn-sm btn-default" type="button" data-dismiss="modal">Close</button>
<button class="btn btn-sm btn-default" type="button" data-dismiss="modal">{{ trans('common.close') }}</button>
</div>
</div>
</div>
</div>

<!-- Files Modal -->
{{-- Files Modal --}}
<div id="myModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="myModalLabel">Files</h4>
<h4 class="modal-title" id="myModalLabel">{{ trans('common.files') }}</h4>
</div>
<div class="modal-body">
<div class="table-responsive">
Expand All @@ -111,16 +111,13 @@
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-default" data-dismiss="modal">{{ trans('common.close') }}</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal-dialog -->
</div>
<!-- /.modal -->

<!-- NFO Modal -->
{{-- NFO Modal --}}
@if($torrent->nfo != null)
<div class="modal fade slideExpandUp" id="modal-10" role="dialog" aria-labelledby="Modallabel3dsign">
<div class="modal-dialog" role="document">
Expand All @@ -134,10 +131,9 @@
</pre>
</div>
<div class="modal-footer">
<button class="btn btn-info" data-dismiss="modal">Close me! </button>
<button class="btn btn-info" data-dismiss="modal">{{ trans('common.close') }}</button>
</div>
</div>
</div>
</div>
@endif
<!-- /NFO Modal -->

0 comments on commit 896b332

Please sign in to comment.