Skip to content

Commit ec556bb

Browse files
add-missing-translation-labels
1 parent 314f049 commit ec556bb

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

resources/views/includes/_pagination.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</div>
66

77
<div class="col text-right text-muted">
8-
{{ __('Showing :first to :last out of :total results', ['first' => $models->count() ? $models->firstItem() : 0, 'last' => $models->count() ? $models->lastItem() : 0, 'total' => $models->total()]) }}
8+
{{ __($shownLabel.' :first '.$toLabel.' :last '.$outOfLabel.' :total '.$resultsLable, ['first' => $models->count() ? $models->firstItem() : 0, 'last' => $models->count() ? $models->lastItem() : 0, 'total' => $models->total()]) }}
99
</div>
1010
</div>
1111
@endif

src/Traits/Pagination.php

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,34 @@ trait Pagination
4747
*/
4848
public $perPageLabel;
4949

50+
/**
51+
* The label for shown string.
52+
*
53+
* @var string
54+
*/
55+
public $shownLabel='Showing';
56+
57+
/**
58+
* The label for results string.
59+
*
60+
* @var string
61+
*/
62+
public $resultsLable='results';
63+
64+
/**
65+
* The label for out of string.
66+
*
67+
* @var string
68+
*/
69+
public $outOfLabel='out of';
70+
71+
/**
72+
* The label for to string.
73+
*
74+
* @var string
75+
*/
76+
public $toLabel='to';
77+
5078
/**
5179
* https://laravel-livewire.com/docs/pagination
5280
* Resetting Pagination After Filtering Data.

0 commit comments

Comments
 (0)