Extracted conversion text to translation file

This commit is contained in:
Dan Brown 2022-06-19 16:23:18 +01:00
parent 8c67011a1d
commit f145ffc930
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9
3 changed files with 25 additions and 22 deletions

View File

@ -355,4 +355,16 @@ return [
'copy_consider_images' => 'Page image files will not be duplicated & the original images will retain their relation to the page they were originally uploaded to.',
'copy_consider_attachments' => 'Page attachments will not be copied.',
'copy_consider_access' => 'A change of location, owner or permissions may result in this content being accessible to those previously without access.',
// Conversions
'convert_to_shelf' => 'Convert to Shelf',
'convert_to_shelf_contents_desc' => 'You can convert this book to a new shelf with the same contents. Chapters contained within this book will be converted to new books. If this book contains any pages, that are not in a chapter, this book will be renamed and contain such pages, and this book will become part of the new shelf.',
'convert_to_shelf_permissions_desc' => 'Any permissions set on this book will be copied to the new shelf and to all new child books that don\'t have their own permissions enforced. Note that permissions on shelves do not auto-cascade to content within, as they do for books.',
'convert_book' => 'Convert Book',
'convert_book_confirm' => 'Are you sure you want to convert this book?',
'convert_undo_warning' => 'This cannot be as easily undone.',
'convert_to_book' => 'Convert to Book',
'convert_to_book_desc' => 'You can convert this chapter to a new book with the same contents. Any permissions set on this chapter will be copied to the new book but any inherited permissions, from the parent book, will not be copied which could lead to a change of access control.',
'convert_chapter' => 'Convert Chapter',
'convert_chapter_confirm' => 'Are you sure you want to convert this chapter?',
];

View File

@ -1,27 +1,18 @@
<div class="content-wrap card auto-height">
<h2 class="list-heading">Convert to Shelf</h2>
<h2 class="list-heading">{{ trans('entities.convert_to_shelf') }}</h2>
<p>
You can convert this book to a new shelf with the same contents.
Chapters contained within this book will be converted to new books.
If this book contains any pages, that are not in a chapter, this book will be renamed
and contain such pages, and this book will become part of the new shelf.
{{ trans('entities.convert_to_shelf_contents_desc') }}
<br><br>
Any permissions set on this book will be copied to the new shelf and to all new child books
that don't have their own permissions enforced.
Note that permissions on shelves do not auto-cascade to content within, as they do for books.
{{ trans('entities.convert_to_shelf_permissions_desc') }}
</p>
<div class="text-right">
<div component="dropdown" class="dropdown-container">
<button refs="dropdown@toggle" class="button outline" aria-haspopup="true" aria-expanded="false">Convert Book</button>
<button refs="dropdown@toggle" class="button outline" aria-haspopup="true" aria-expanded="false">{{ trans('entities.convert_book') }}</button>
<ul refs="dropdown@menu" class="dropdown-menu" role="menu">
<li class="px-m py-s text-small text-muted">
Are you sure you want to convert this book?
{{ trans('entities.convert_book_confirm') }}
<br>
This cannot be as easily undone.
{{ trans('entities.convert_undo_warning') }}
</li>
<li>
<form action="{{ $book->getUrl('/convert-to-shelf') }}" method="POST">

View File

@ -1,19 +1,19 @@
<div class="content-wrap card auto-height">
<h2 class="list-heading">Convert to Book</h2>
<h2 class="list-heading">{{ trans('entities.convert_to_book') }}</h2>
<div class="grid half left-focus no-row-gap">
<p>
You can convert this chapter to a new book with the same contents.
Any permissions set on this chapter will be copied to the new book but any inherited permissions,
from the parent book, will not be copied which could lead to a change of access control.
{{ trans('entities.convert_to_book_desc') }}
</p>
<div class="text-m-right">
<div component="dropdown" class="dropdown-container">
<button refs="dropdown@toggle" class="button outline" aria-haspopup="true" aria-expanded="false">Convert Chapter</button>
<button refs="dropdown@toggle" class="button outline" aria-haspopup="true" aria-expanded="false">
{{ trans('entities.convert_chapter') }}
</button>
<ul refs="dropdown@menu" class="dropdown-menu" role="menu">
<li class="px-m py-s text-small text-muted">
Are you sure you want to convert this chapter?
{{ trans('entities.convert_chapter_confirm') }}
<br>
This cannot be as easily undone.
{{ trans('entities.convert_undo_warning') }}
</li>
<li>
<form action="{{ $chapter->getUrl('/convert-to-book') }}" method="POST">