diff --git a/resources/lang/en/entities.php b/resources/lang/en/entities.php index ffd49f07d..4dc5ccc38 100644 --- a/resources/lang/en/entities.php +++ b/resources/lang/en/entities.php @@ -19,7 +19,6 @@ return [ 'meta_created_name' => 'Created :timeLength by :user', 'meta_updated' => 'Updated :timeLength', 'meta_updated_name' => 'Updated :timeLength by :user', - 'x_pages' => ':count Pages', 'entity_select' => 'Entity Select', 'images' => 'Images', 'my_recent_drafts' => 'My Recent Drafts', @@ -70,6 +69,7 @@ return [ */ 'book' => 'Book', 'books' => 'Books', + 'x_books' => ':count Book|:count Books', 'books_empty' => 'No books have been created', 'books_popular' => 'Popular Books', 'books_recent' => 'Recent Books', @@ -105,6 +105,7 @@ return [ */ 'chapter' => 'Chapter', 'chapters' => 'Chapters', + 'x_chapters' => ':count Chapter|:count Chapters', 'chapters_popular' => 'Popular Chapters', 'chapters_new' => 'New Chapter', 'chapters_create' => 'Create New Chapter', @@ -129,6 +130,7 @@ return [ */ 'page' => 'Page', 'pages' => 'Pages', + 'x_pages' => ':count Page|:count Pages', 'pages_popular' => 'Popular Pages', 'pages_new' => 'New Page', 'pages_attachments' => 'Attachments', diff --git a/resources/views/chapters/list-item.blade.php b/resources/views/chapters/list-item.blade.php index 1572f0d9b..9c1e2d640 100644 --- a/resources/views/chapters/list-item.blade.php +++ b/resources/views/chapters/list-item.blade.php @@ -21,7 +21,7 @@ @if(!isset($hidePages) && count($chapter->pages) > 0) -

{{ trans('entities.x_pages', ['count' => $chapter->pages->count()]) }}

+

{{ trans_choice('entities.x_pages', $chapter->pages->count()) }}

@foreach($chapter->pages as $page)
{{$page->name}}
diff --git a/resources/views/partials/book-tree.blade.php b/resources/views/partials/book-tree.blade.php index 80f7262ca..867d9779c 100644 --- a/resources/views/partials/book-tree.blade.php +++ b/resources/views/partials/book-tree.blade.php @@ -15,7 +15,7 @@ @if($bookChild->isA('chapter') && count($bookChild->pages) > 0)

- {{ trans('entities.x_pages', ['count' => $bookChild->pages->count()]) }} + {{ trans_choice('entities.x_pages', $bookChild->pages->count()) }}