]> BookStack Code Mirror - bookstack/commitdiff
Extracted conversion text to translation file
authorDan Brown <redacted>
Sun, 19 Jun 2022 15:23:18 +0000 (16:23 +0100)
committerDan Brown <redacted>
Sun, 19 Jun 2022 15:23:18 +0000 (16:23 +0100)
resources/lang/en/entities.php
resources/views/books/parts/convert-to-shelf.blade.php
resources/views/chapters/parts/convert-to-book.blade.php

index bed781b6129b180789556b43597883ba5671da21..27d67487a0b0cb3aaffe6adb71c70d10f11c73e5 100644 (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?',
 ];
index 700377a1962a9eecfaac1fa6e93aee37097c45ca..dde60aac05ff71aa44bd9ef36f3094cb4e7195df 100644 (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">
index 8a5d2a181c57dd034c9c16ace4fa56609ec70f07..516d1117a57ee14bb2d4f0c9be7dad6081eead3a 100644 (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">