Better use of language choices.

This commit is contained in:
James Brooks
2014-12-30 14:26:45 +00:00
parent 9941727d44
commit a38a89c3e6
2 changed files with 4 additions and 6 deletions

View File

@@ -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' => [

View File

@@ -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)