parametres translation paragraphs & translators' permissions

This commit is contained in:
2023-06-21 21:59:28 +02:00
parent e38372ee66
commit 072c32ccd2
57 changed files with 601 additions and 64 deletions
@@ -1,6 +1,6 @@
uuid: d8bb4fc8-9053-45e1-a864-79d86f06b678
langcode: en
status: true
status: false
dependencies:
module:
- context
@@ -11,7 +11,7 @@ bundle: static
label: Changed
description: 'The time that the node was last edited.'
required: false
translatable: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
@@ -11,7 +11,7 @@ bundle: static
label: 'Authored on'
description: 'The time that the node was created.'
required: false
translatable: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
@@ -11,7 +11,7 @@ bundle: static
label: 'Menu link'
description: 'Computed menu link for the node (only available during node saving).'
required: false
translatable: false
translatable: true
default_value: { }
default_value_callback: ''
settings:
@@ -13,7 +13,7 @@ bundle: static
label: 'URL alias'
description: ''
required: false
translatable: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
@@ -13,7 +13,7 @@ bundle: static
label: 'Promoted to front page'
description: ''
required: false
translatable: false
translatable: true
default_value:
-
value: 0
@@ -11,7 +11,7 @@ bundle: static
label: Published
description: ''
required: false
translatable: false
translatable: true
default_value:
-
value: 1
@@ -11,7 +11,7 @@ bundle: static
label: 'Sticky at top of lists'
description: ''
required: false
translatable: false
translatable: true
default_value:
-
value: 0
@@ -11,7 +11,7 @@ bundle: static
label: Title
description: ''
required: true
translatable: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
@@ -11,7 +11,7 @@ bundle: static
label: 'Authored by'
description: 'The username of the content author.'
required: false
translatable: false
translatable: true
default_value: { }
default_value_callback: 'Drupal\node\Entity\Node::getDefaultEntityOwner'
settings:
@@ -0,0 +1,18 @@
uuid: 590119a3-0bcf-4db9-84ae-2b06ca180161
langcode: fr
status: true
dependencies:
config:
- paragraphs.paragraphs_type.article
id: paragraph.article.created
field_name: created
entity_type: paragraph
bundle: article
label: 'Authored on'
description: 'The time that the Paragraph was created.'
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: created
@@ -0,0 +1,22 @@
uuid: e534929b-03dd-4c3e-9536-eefdfe244a2a
langcode: fr
status: true
dependencies:
config:
- paragraphs.paragraphs_type.article
id: paragraph.article.status
field_name: status
entity_type: paragraph
bundle: article
label: Published
description: ''
required: false
translatable: true
default_value:
-
value: 1
default_value_callback: ''
settings:
on_label: 'On'
off_label: 'Off'
field_type: boolean
@@ -0,0 +1,18 @@
uuid: ce9c5938-adb4-447f-af47-2054120e32e1
langcode: fr
status: true
dependencies:
config:
- paragraphs.paragraphs_type.chapitre
id: paragraph.chapitre.created
field_name: created
entity_type: paragraph
bundle: chapitre
label: 'Authored on'
description: 'The time that the Paragraph was created.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: created
@@ -0,0 +1,22 @@
uuid: 44b28d68-6848-4366-be20-27f60dbe4e23
langcode: fr
status: true
dependencies:
config:
- paragraphs.paragraphs_type.chapitre
id: paragraph.chapitre.status
field_name: status
entity_type: paragraph
bundle: chapitre
label: Published
description: ''
required: false
translatable: false
default_value:
-
value: 1
default_value_callback: ''
settings:
on_label: 'On'
off_label: 'Off'
field_type: boolean
@@ -0,0 +1,18 @@
uuid: 01c06e76-fde0-44a5-9d3c-276abe106f5f
langcode: fr
status: true
dependencies:
config:
- paragraphs.paragraphs_type.image
id: paragraph.image.created
field_name: created
entity_type: paragraph
bundle: image
label: 'Authored on'
description: 'The time that the Paragraph was created.'
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: created
@@ -0,0 +1,22 @@
uuid: cfe978da-bd92-4308-bec9-c2fffe5cccfc
langcode: fr
status: true
dependencies:
config:
- paragraphs.paragraphs_type.image
id: paragraph.image.status
field_name: status
entity_type: paragraph
bundle: image
label: Published
description: ''
required: false
translatable: true
default_value:
-
value: 1
default_value_callback: ''
settings:
on_label: 'On'
off_label: 'Off'
field_type: boolean
@@ -0,0 +1,18 @@
uuid: 7d877219-588b-4015-a2c4-ea464d49a65e
langcode: fr
status: true
dependencies:
config:
- paragraphs.paragraphs_type.subheading
id: paragraph.subheading.created
field_name: created
entity_type: paragraph
bundle: subheading
label: 'Authored on'
description: 'The time that the Paragraph was created.'
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: created
@@ -0,0 +1,22 @@
uuid: a7fd1a65-17cb-4fe9-aac8-4e848aebd1e8
langcode: fr
status: true
dependencies:
config:
- paragraphs.paragraphs_type.subheading
id: paragraph.subheading.status
field_name: status
entity_type: paragraph
bundle: subheading
label: Published
description: ''
required: false
translatable: true
default_value:
-
value: 1
default_value_callback: ''
settings:
on_label: 'On'
off_label: 'Off'
field_type: boolean
@@ -0,0 +1,18 @@
uuid: cf8692cf-8f6b-4c54-a637-a6e6f1e2d9fa
langcode: fr
status: true
dependencies:
config:
- paragraphs.paragraphs_type.tablefield
id: paragraph.tablefield.created
field_name: created
entity_type: paragraph
bundle: tablefield
label: 'Authored on'
description: 'The time that the Paragraph was created.'
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: created
@@ -0,0 +1,22 @@
uuid: 6f7e0486-983d-435d-a186-2324c333d73f
langcode: fr
status: true
dependencies:
config:
- paragraphs.paragraphs_type.tablefield
id: paragraph.tablefield.status
field_name: status
entity_type: paragraph
bundle: tablefield
label: Published
description: ''
required: false
translatable: true
default_value:
-
value: 1
default_value_callback: ''
settings:
on_label: 'On'
off_label: 'Off'
field_type: boolean
@@ -0,0 +1,18 @@
uuid: eb21e0b4-6e76-4995-8802-4fd27024cab4
langcode: fr
status: true
dependencies:
config:
- paragraphs.paragraphs_type.text
id: paragraph.text.created
field_name: created
entity_type: paragraph
bundle: text
label: 'Authored on'
description: 'The time that the Paragraph was created.'
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: created
@@ -0,0 +1,22 @@
uuid: 44c7df12-b7fa-414b-9824-83c4fb395fdb
langcode: fr
status: true
dependencies:
config:
- paragraphs.paragraphs_type.text
id: paragraph.text.status
field_name: status
entity_type: paragraph
bundle: text
label: Published
description: ''
required: false
translatable: true
default_value:
-
value: 1
default_value_callback: ''
settings:
on_label: 'On'
off_label: 'Off'
field_type: boolean
@@ -0,0 +1,18 @@
uuid: 9a011566-49ec-40ed-a8d3-119950275e13
langcode: fr
status: true
dependencies:
config:
- paragraphs.paragraphs_type.title
id: paragraph.title.created
field_name: created
entity_type: paragraph
bundle: title
label: 'Authored on'
description: 'The time that the Paragraph was created.'
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: created
@@ -0,0 +1,22 @@
uuid: 861433b1-c54d-4142-aab1-e0bfaa70ec4e
langcode: fr
status: true
dependencies:
config:
- paragraphs.paragraphs_type.title
id: paragraph.title.status
field_name: status
entity_type: paragraph
bundle: title
label: Published
description: ''
required: false
translatable: true
default_value:
-
value: 1
default_value_callback: ''
settings:
on_label: 'On'
off_label: 'Off'
field_type: boolean
@@ -0,0 +1,18 @@
uuid: 444da61b-726b-46a9-8981-ee5d74024860
langcode: fr
status: true
dependencies:
config:
- taxonomy.vocabulary.book
id: taxonomy_term.book.changed
field_name: changed
entity_type: taxonomy_term
bundle: book
label: Changed
description: 'The time that the term was last edited.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: changed
@@ -0,0 +1,20 @@
uuid: ae5aa228-6bd3-429b-8fd4-3e609ad9fbff
langcode: fr
status: true
dependencies:
config:
- taxonomy.vocabulary.book
module:
- text
id: taxonomy_term.book.description
field_name: description
entity_type: taxonomy_term
bundle: book
label: Description
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: text_long
@@ -0,0 +1,18 @@
uuid: 171879f5-a300-46e9-b5f1-fd0950905329
langcode: fr
status: true
dependencies:
config:
- taxonomy.vocabulary.book
id: taxonomy_term.book.name
field_name: name
entity_type: taxonomy_term
bundle: book
label: Name
description: ''
required: true
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string
@@ -0,0 +1,20 @@
uuid: 5d375fd4-6d1a-4590-b58f-85878f906bbc
langcode: fr
status: true
dependencies:
config:
- taxonomy.vocabulary.book
module:
- path
id: taxonomy_term.book.path
field_name: path
entity_type: taxonomy_term
bundle: book
label: 'URL alias'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: path
@@ -0,0 +1,22 @@
uuid: b3f50006-d9e7-40de-afb1-3d62f8b408f6
langcode: fr
status: true
dependencies:
config:
- taxonomy.vocabulary.book
id: taxonomy_term.book.status
field_name: status
entity_type: taxonomy_term
bundle: book
label: Published
description: ''
required: false
translatable: false
default_value:
-
value: 1
default_value_callback: ''
settings:
on_label: 'On'
off_label: 'Off'
field_type: boolean
@@ -14,7 +14,7 @@ bundle: book
label: SubHeading
description: ''
required: false
translatable: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
@@ -12,7 +12,7 @@ bundle: book
label: 'Parent Book'
description: ''
required: false
translatable: false
translatable: true
default_value: { }
default_value_callback: ''
settings:
+1 -1
View File
@@ -16,7 +16,7 @@ bundle: static
label: Body
description: ''
required: false
translatable: false
translatable: true
default_value: { }
default_value_callback: ''
settings:
@@ -19,7 +19,7 @@ bundle: article
label: Article
description: ''
required: false
translatable: false
translatable: true
default_value: { }
default_value_callback: ''
settings:
@@ -14,7 +14,7 @@ bundle: chapitre
label: chapitre
description: ''
required: false
translatable: true
translatable: false
default_value: { }
default_value_callback: ''
settings:
@@ -11,9 +11,9 @@ dependencies:
third_party_settings:
content_translation:
translation_sync:
file: file
alt: '0'
title: '0'
alt: alt
title: title
file: '0'
id: paragraph.image.field_image
field_name: field_image
entity_type: paragraph
@@ -14,7 +14,7 @@ bundle: subheading
label: subheading
description: ''
required: false
translatable: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
@@ -14,7 +14,7 @@ bundle: title
label: title
description: ''
required: false
translatable: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
@@ -9,6 +9,8 @@ dependencies:
third_party_settings:
content_translation:
enabled: true
bundle_settings:
untranslatable_fields_hide: '0'
id: block_content.content_book_page
target_entity_type_id: block_content
target_bundle: content_book_page
@@ -8,7 +8,7 @@ dependencies:
- content_translation
third_party_settings:
content_translation:
enabled: false
enabled: true
bundle_settings:
untranslatable_fields_hide: '0'
_core:
@@ -17,4 +17,4 @@ id: node.static
target_entity_type_id: node
target_bundle: static
default_langcode: site_default
language_alterable: false
language_alterable: true
@@ -0,0 +1,18 @@
uuid: 656eb76f-204e-47f4-a8e1-cd289735c522
langcode: fr
status: true
dependencies:
config:
- paragraphs.paragraphs_type.article
module:
- content_translation
third_party_settings:
content_translation:
enabled: true
bundle_settings:
untranslatable_fields_hide: '0'
id: paragraph.article
target_entity_type_id: paragraph
target_bundle: article
default_langcode: site_default
language_alterable: true
@@ -8,11 +8,11 @@ dependencies:
- content_translation
third_party_settings:
content_translation:
enabled: true
enabled: false
bundle_settings:
untranslatable_fields_hide: '0'
id: paragraph.chapitre
target_entity_type_id: paragraph
target_bundle: chapitre
default_langcode: site_default
language_alterable: true
language_alterable: false
@@ -0,0 +1,18 @@
uuid: 49cc6fe7-be14-4e57-a598-9ca2ac8cc30c
langcode: fr
status: true
dependencies:
config:
- paragraphs.paragraphs_type.image
module:
- content_translation
third_party_settings:
content_translation:
enabled: true
bundle_settings:
untranslatable_fields_hide: '0'
id: paragraph.image
target_entity_type_id: paragraph
target_bundle: image
default_langcode: site_default
language_alterable: true
@@ -0,0 +1,18 @@
uuid: 6903a7c4-28bd-405b-8946-cb3ddc1d2352
langcode: fr
status: true
dependencies:
config:
- paragraphs.paragraphs_type.subheading
module:
- content_translation
third_party_settings:
content_translation:
enabled: true
bundle_settings:
untranslatable_fields_hide: '0'
id: paragraph.subheading
target_entity_type_id: paragraph
target_bundle: subheading
default_langcode: site_default
language_alterable: true
@@ -0,0 +1,18 @@
uuid: 4ea20d44-c1e5-4505-bb90-86575c1cb3f7
langcode: fr
status: true
dependencies:
config:
- paragraphs.paragraphs_type.tablefield
module:
- content_translation
third_party_settings:
content_translation:
enabled: true
bundle_settings:
untranslatable_fields_hide: '0'
id: paragraph.tablefield
target_entity_type_id: paragraph
target_bundle: tablefield
default_langcode: site_default
language_alterable: true
@@ -0,0 +1,18 @@
uuid: 0ef0aecd-4f4b-4e1c-8f2f-2d6e901192f0
langcode: fr
status: true
dependencies:
config:
- paragraphs.paragraphs_type.text
module:
- content_translation
third_party_settings:
content_translation:
enabled: true
bundle_settings:
untranslatable_fields_hide: '0'
id: paragraph.text
target_entity_type_id: paragraph
target_bundle: text
default_langcode: site_default
language_alterable: true
@@ -0,0 +1,18 @@
uuid: 33005460-6fa6-4efa-a176-11ce923b5579
langcode: fr
status: true
dependencies:
config:
- paragraphs.paragraphs_type.title
module:
- content_translation
third_party_settings:
content_translation:
enabled: true
bundle_settings:
untranslatable_fields_hide: '0'
id: paragraph.title
target_entity_type_id: paragraph
target_bundle: title
default_langcode: site_default
language_alterable: true
@@ -4,6 +4,13 @@ status: true
dependencies:
config:
- taxonomy.vocabulary.book
module:
- content_translation
third_party_settings:
content_translation:
enabled: false
bundle_settings:
untranslatable_fields_hide: '0'
id: taxonomy_term.book
target_entity_type_id: taxonomy_term
target_bundle: book
+3 -1
View File
@@ -10,7 +10,7 @@ configurable:
negotiation:
language_content:
enabled:
language-interface: 0
language-interface: 9
method_weights:
language-content-entity: -9
language-url: -8
@@ -25,7 +25,9 @@ negotiation:
language-url-fallback: 1
language_interface:
enabled:
language-user-admin: -10
language-url: -8
language-user: -4
language-selected: 12
method_weights:
language-user-admin: -10
+11
View File
@@ -6,9 +6,11 @@ dependencies:
- node.type.book
- node.type.static
module:
- block_content
- book
- content_translation
- node
- paragraphs
- system
- tablefield
- toolbar
@@ -24,10 +26,12 @@ permissions:
- 'add content to books'
- 'addrow tablefield'
- 'administer book outlines'
- 'administer content translation'
- 'create book content'
- 'create content translations'
- 'create new books'
- 'create static content'
- 'delete content translations'
- 'delete own book content'
- 'delete own static content'
- 'edit any book content'
@@ -37,6 +41,13 @@ permissions:
- 'export tablefield'
- 'import tablefield'
- 'rebuild tablefield'
- 'translate any entity'
- 'translate block_content'
- 'translate book node'
- 'translate editable entities'
- 'translate paragraph'
- 'translate static node'
- 'translate user'
- 'update content translations'
- 'view book revisions'
- 'view own unpublished content'
+27
View File
@@ -2,12 +2,39 @@ uuid: db60f537-3369-4dd0-af59-8af8e234cfed
langcode: fr
status: true
dependencies:
config:
- node.type.book
- node.type.static
module:
- block_content
- content_translation
- node
- paragraphs
- system
id: translator
label: Translator
weight: -4
is_admin: null
permissions:
- 'access administration pages'
- 'administer content translation'
- 'create book content'
- 'create content translations'
- 'create static content'
- 'delete content translations'
- 'delete own book content'
- 'delete own static content'
- 'edit any book content'
- 'edit any static content'
- 'edit own book content'
- 'edit own static content'
- 'translate any entity'
- 'translate block_content'
- 'translate book node'
- 'translate editable entities'
- 'translate paragraph'
- 'translate static node'
- 'translate user'
- 'update content translations'
- 'view own unpublished content'
- 'view the administration theme'
@@ -163,9 +163,6 @@ table {
display: flex;
flex-direction: row; }
.block-system-breadcrumb-block {
margin: 4rem; }
a {
text-decoration: none; }
@@ -825,20 +822,6 @@ a {
.field--name-field-subheading {
font-size: 1rem; }
article.node-type-book {
width: 70%; }
article.node-type-book h2 {
visibility: hidden; }
article.node-type-book div:nth-child(1) > nav:nth-child(1) > ul:nth-child(2) {
display: flex;
flex-direction: row;
justify-content: space-between;
list-style: none;
box-shadow: 0px 0px 1px black; }
article.node-type-book .links.inline {
list-style: none;
box-shadow: 0px 0px 1px black; }
.node-book-edit-form {
width: 80%;
border-top-style: solid;
@@ -1037,6 +1020,20 @@ article.node-type-book {
padding-right: 1rem;
padding-bottom: 1rem; }
article.node-type-book {
width: 70%; }
article.node-type-book nav h2 {
visibility: hidden; }
article.node-type-book nav ul {
display: flex;
flex-direction: row;
justify-content: space-between;
list-style: none;
box-shadow: 0px 0px 1px black; }
article.node-type-book .links.inline {
list-style: none;
box-shadow: 0px 0px 1px black; }
#block-breadcrumbs nav ol {
list-style: none;
display: flex;
@@ -78,6 +78,3 @@
flex-direction: row;
}
.block-system-breadcrumb-block{
margin: 4rem;
}
@@ -3,22 +3,4 @@
}
article.node-type-book{
width: 70%;
h2{
visibility: hidden;
}
div:nth-child(1) > nav:nth-child(1) > ul:nth-child(2){
display: flex;
flex-direction: row;
justify-content: space-between;
list-style: none;
box-shadow: 0px 0px 1px black;
}
.links.inline{
list-style: none;
box-shadow: 0px 0px 1px black;
}
}
@@ -0,0 +1,23 @@
article.node-type-book{
width: 70%;
nav{
h2{
visibility: hidden;
}
ul{
display: flex;
flex-direction: row;
justify-content: space-between;
list-style: none;
box-shadow: 0px 0px 1px black;
}
}
.links.inline{
list-style: none;
box-shadow: 0px 0px 1px black;
}
}
@@ -19,6 +19,9 @@
}
}
// .block-system-breadcrumb-block{
// margin: 4rem;
// }
// #block-breadcrumbs > nav:nth-child(1) > ol:nth-child(2)
+1 -1
View File
@@ -31,7 +31,7 @@
/*partials*/
@import "partials/_header";
@import "partials/_footer";
@import "partials/_navigation";
@import "partials/_booknavigation";
@import "partials/_breadcrumbs";
@import "partials/_primary-tabs";