Better use of language choices.
This commit is contained in:
@@ -33,7 +33,8 @@ return [
|
||||
'logged_in' => 'You\'re logged in.',
|
||||
'setup' => 'Setup Cachet',
|
||||
'no_incidents' => 'No incidents reported.',
|
||||
'dashboard' => [
|
||||
// Dashboard
|
||||
'dashboard' => [
|
||||
'dashboard' => 'Dashboard',
|
||||
'components' => 'Components',
|
||||
'component-add' => 'Add Component',
|
||||
@@ -49,6 +50,7 @@ return [
|
||||
'search' => 'Search...',
|
||||
'user' => 'User',
|
||||
'help' => 'Help',
|
||||
'logged_incidents' => '{0} There are no incidents, good work.|You have logged one incident.|You have reported <strong>:count</strong> incidents.',
|
||||
],
|
||||
// Forms
|
||||
'forms' => [
|
||||
|
||||
@@ -13,11 +13,7 @@
|
||||
<div class="content-wrapper">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@if ($incidents->count() === 0)
|
||||
<div class="list-group-item">Woah! No incidents, your doing well!</div>
|
||||
@else
|
||||
<p class='lead'>You have <strong>{{ $incidents->count() }}</strong> logged incidents.</p>
|
||||
@endif
|
||||
<p class='lead'>{{ Lang::choice('cachet.dashboard.logged_incidents', $incidents->count(), ['count' => $incidents->count()]) }}</p>
|
||||
|
||||
<div class="striped-list">
|
||||
@foreach($incidents as $incident)
|
||||
|
||||
Reference in New Issue
Block a user