Issue #3029839 by shaal, smaz, Gábor Hojtsy, mcannon, Eli-T, alexpott: Multilingual functionality - enable English and Spanish as part of Umami installation
parent
61a86b38a0
commit
afbdd37f72
|
|
@ -17,6 +17,12 @@ function content_translation_install() {
|
|||
// hook_module_implements_alter() is run among the last ones.
|
||||
module_set_weight('content_translation', 10);
|
||||
|
||||
// Skip the guidance messages about enabling translation features if the
|
||||
// module was installed in the Drupal installation process.
|
||||
if (drupal_installation_attempted()) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Translation works when at least two languages are added.
|
||||
if (count(\Drupal::languageManager()->getLanguages()) < 2) {
|
||||
$t_args = [
|
||||
|
|
|
|||
|
|
@ -56,5 +56,12 @@ content:
|
|||
size: 60
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
langcode:
|
||||
type: language_select
|
||||
weight: 2
|
||||
region: content
|
||||
settings:
|
||||
include_locked: true
|
||||
third_party_settings: { }
|
||||
hidden:
|
||||
moderation_state: true
|
||||
|
|
|
|||
|
|
@ -28,5 +28,12 @@ content:
|
|||
size: 60
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
langcode:
|
||||
type: language_select
|
||||
weight: 2
|
||||
region: content
|
||||
settings:
|
||||
include_locked: true
|
||||
third_party_settings: { }
|
||||
hidden:
|
||||
moderation_state: true
|
||||
|
|
|
|||
|
|
@ -36,5 +36,12 @@ content:
|
|||
size: 60
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
langcode:
|
||||
type: language_select
|
||||
weight: 2
|
||||
region: content
|
||||
settings:
|
||||
include_locked: true
|
||||
third_party_settings: { }
|
||||
hidden:
|
||||
moderation_state: true
|
||||
|
|
|
|||
|
|
@ -56,5 +56,12 @@ content:
|
|||
size: 60
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
langcode:
|
||||
type: language_select
|
||||
weight: 2
|
||||
region: content
|
||||
settings:
|
||||
include_locked: true
|
||||
third_party_settings: { }
|
||||
hidden:
|
||||
moderation_state: true
|
||||
|
|
|
|||
|
|
@ -13,6 +13,13 @@ content:
|
|||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
langcode:
|
||||
type: language_select
|
||||
weight: 2
|
||||
region: content
|
||||
settings:
|
||||
include_locked: true
|
||||
third_party_settings: { }
|
||||
mail:
|
||||
weight: 1
|
||||
region: content
|
||||
|
|
|
|||
|
|
@ -25,6 +25,13 @@ content:
|
|||
third_party_settings: { }
|
||||
type: file_generic
|
||||
region: content
|
||||
langcode:
|
||||
type: language_select
|
||||
weight: 2
|
||||
region: content
|
||||
settings:
|
||||
include_locked: true
|
||||
third_party_settings: { }
|
||||
path:
|
||||
type: path
|
||||
weight: 30
|
||||
|
|
|
|||
|
|
@ -25,6 +25,13 @@ content:
|
|||
type: file_generic
|
||||
weight: 0
|
||||
region: content
|
||||
langcode:
|
||||
type: language_select
|
||||
weight: 2
|
||||
region: content
|
||||
settings:
|
||||
include_locked: true
|
||||
third_party_settings: { }
|
||||
path:
|
||||
type: path
|
||||
weight: 4
|
||||
|
|
|
|||
|
|
@ -27,6 +27,13 @@ content:
|
|||
type: image_image
|
||||
weight: 0
|
||||
region: content
|
||||
langcode:
|
||||
type: language_select
|
||||
weight: 2
|
||||
region: content
|
||||
settings:
|
||||
include_locked: true
|
||||
third_party_settings: { }
|
||||
path:
|
||||
type: path
|
||||
weight: 4
|
||||
|
|
|
|||
|
|
@ -26,6 +26,13 @@ content:
|
|||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
region: content
|
||||
langcode:
|
||||
type: language_select
|
||||
weight: 2
|
||||
region: content
|
||||
settings:
|
||||
include_locked: true
|
||||
third_party_settings: { }
|
||||
path:
|
||||
type: path
|
||||
weight: 30
|
||||
|
|
|
|||
|
|
@ -25,6 +25,13 @@ content:
|
|||
third_party_settings: { }
|
||||
type: file_generic
|
||||
region: content
|
||||
langcode:
|
||||
type: language_select
|
||||
weight: 2
|
||||
region: content
|
||||
settings:
|
||||
include_locked: true
|
||||
third_party_settings: { }
|
||||
path:
|
||||
type: path
|
||||
weight: 30
|
||||
|
|
|
|||
|
|
@ -50,6 +50,13 @@ content:
|
|||
size: 60
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
langcode:
|
||||
type: language_select
|
||||
weight: 2
|
||||
region: content
|
||||
settings:
|
||||
include_locked: true
|
||||
third_party_settings: { }
|
||||
moderation_state:
|
||||
type: moderation_state_default
|
||||
weight: 10
|
||||
|
|
|
|||
|
|
@ -29,6 +29,13 @@ content:
|
|||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
langcode:
|
||||
type: language_select
|
||||
weight: 2
|
||||
region: content
|
||||
settings:
|
||||
include_locked: true
|
||||
third_party_settings: { }
|
||||
moderation_state:
|
||||
type: moderation_state_default
|
||||
weight: 8
|
||||
|
|
|
|||
|
|
@ -108,6 +108,13 @@ content:
|
|||
third_party_settings: { }
|
||||
type: entity_reference_autocomplete_tags
|
||||
region: content
|
||||
langcode:
|
||||
type: language_select
|
||||
weight: 2
|
||||
region: content
|
||||
settings:
|
||||
include_locked: true
|
||||
third_party_settings: { }
|
||||
moderation_state:
|
||||
type: moderation_state_default
|
||||
weight: 18
|
||||
|
|
|
|||
|
|
@ -32,4 +32,5 @@ content:
|
|||
third_party_settings: { }
|
||||
weight: -1
|
||||
region: content
|
||||
hidden: { }
|
||||
hidden:
|
||||
langcode: true
|
||||
|
|
|
|||
|
|
@ -52,4 +52,5 @@ content:
|
|||
third_party_settings: { }
|
||||
type: string
|
||||
region: content
|
||||
hidden: { }
|
||||
hidden:
|
||||
langcode: true
|
||||
|
|
|
|||
|
|
@ -18,4 +18,5 @@ content:
|
|||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
hidden: { }
|
||||
hidden:
|
||||
langcode: true
|
||||
|
|
|
|||
|
|
@ -26,4 +26,5 @@ content:
|
|||
third_party_settings: { }
|
||||
type: text_default
|
||||
region: content
|
||||
hidden: { }
|
||||
hidden:
|
||||
langcode: true
|
||||
|
|
|
|||
|
|
@ -52,4 +52,5 @@ content:
|
|||
third_party_settings: { }
|
||||
type: string
|
||||
region: content
|
||||
hidden: { }
|
||||
hidden:
|
||||
langcode: true
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ content:
|
|||
region: content
|
||||
hidden:
|
||||
created: true
|
||||
langcode: true
|
||||
name: true
|
||||
thumbnail: true
|
||||
uid: true
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ content:
|
|||
region: content
|
||||
hidden:
|
||||
created: true
|
||||
langcode: true
|
||||
name: true
|
||||
thumbnail: true
|
||||
uid: true
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ content:
|
|||
region: content
|
||||
hidden:
|
||||
created: true
|
||||
langcode: true
|
||||
name: true
|
||||
thumbnail: true
|
||||
uid: true
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ content:
|
|||
region: content
|
||||
hidden:
|
||||
created: true
|
||||
langcode: true
|
||||
name: true
|
||||
thumbnail: true
|
||||
uid: true
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ content:
|
|||
region: content
|
||||
hidden:
|
||||
created: true
|
||||
langcode: true
|
||||
name: true
|
||||
thumbnail: true
|
||||
uid: true
|
||||
|
|
|
|||
|
|
@ -29,4 +29,5 @@ hidden:
|
|||
body: true
|
||||
content_moderation_control: true
|
||||
field_tags: true
|
||||
langcode: true
|
||||
links: true
|
||||
|
|
|
|||
|
|
@ -29,4 +29,5 @@ hidden:
|
|||
body: true
|
||||
content_moderation_control: true
|
||||
field_tags: true
|
||||
langcode: true
|
||||
links: true
|
||||
|
|
|
|||
|
|
@ -29,4 +29,5 @@ hidden:
|
|||
body: true
|
||||
content_moderation_control: true
|
||||
field_tags: true
|
||||
langcode: true
|
||||
links: true
|
||||
|
|
|
|||
|
|
@ -47,3 +47,4 @@ content:
|
|||
third_party_settings: { }
|
||||
hidden:
|
||||
content_moderation_control: true
|
||||
langcode: true
|
||||
|
|
|
|||
|
|
@ -48,3 +48,4 @@ content:
|
|||
third_party_settings: { }
|
||||
hidden:
|
||||
content_moderation_control: true
|
||||
langcode: true
|
||||
|
|
|
|||
|
|
@ -22,3 +22,4 @@ hidden:
|
|||
content_moderation_control: true
|
||||
field_image: true
|
||||
field_tags: true
|
||||
langcode: true
|
||||
|
|
|
|||
|
|
@ -49,3 +49,4 @@ content:
|
|||
third_party_settings: { }
|
||||
hidden:
|
||||
content_moderation_control: true
|
||||
langcode: true
|
||||
|
|
|
|||
|
|
@ -24,3 +24,4 @@ content:
|
|||
region: content
|
||||
hidden:
|
||||
content_moderation_control: true
|
||||
langcode: true
|
||||
|
|
|
|||
|
|
@ -26,3 +26,4 @@ content:
|
|||
region: content
|
||||
hidden:
|
||||
content_moderation_control: true
|
||||
langcode: true
|
||||
|
|
|
|||
|
|
@ -50,4 +50,5 @@ hidden:
|
|||
field_recipe_instruction: true
|
||||
field_summary: true
|
||||
field_tags: true
|
||||
langcode: true
|
||||
links: true
|
||||
|
|
|
|||
|
|
@ -43,4 +43,5 @@ hidden:
|
|||
field_recipe_instruction: true
|
||||
field_summary: true
|
||||
field_tags: true
|
||||
langcode: true
|
||||
links: true
|
||||
|
|
|
|||
|
|
@ -43,4 +43,5 @@ hidden:
|
|||
field_recipe_instruction: true
|
||||
field_summary: true
|
||||
field_tags: true
|
||||
langcode: true
|
||||
links: true
|
||||
|
|
|
|||
|
|
@ -112,3 +112,4 @@ content:
|
|||
third_party_settings: { }
|
||||
hidden:
|
||||
content_moderation_control: true
|
||||
langcode: true
|
||||
|
|
|
|||
|
|
@ -108,4 +108,5 @@ content:
|
|||
region: content
|
||||
hidden:
|
||||
content_moderation_control: true
|
||||
langcode: true
|
||||
links: true
|
||||
|
|
|
|||
|
|
@ -36,3 +36,4 @@ hidden:
|
|||
field_recipe_instruction: true
|
||||
field_summary: true
|
||||
field_tags: true
|
||||
langcode: true
|
||||
|
|
|
|||
|
|
@ -23,4 +23,5 @@ content:
|
|||
third_party_settings: { }
|
||||
label: hidden
|
||||
hidden:
|
||||
langcode: true
|
||||
member_for: true
|
||||
|
|
|
|||
|
|
@ -24,4 +24,5 @@ content:
|
|||
image_link: content
|
||||
third_party_settings: { }
|
||||
label: hidden
|
||||
hidden: { }
|
||||
hidden:
|
||||
langcode: true
|
||||
|
|
|
|||
|
|
@ -0,0 +1,8 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies: { }
|
||||
id: es
|
||||
label: Spanish
|
||||
direction: ltr
|
||||
weight: 1
|
||||
locked: false
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
session:
|
||||
parameter: language
|
||||
url:
|
||||
source: path_prefix
|
||||
prefixes:
|
||||
en: en
|
||||
es: es
|
||||
domains:
|
||||
en: ''
|
||||
es: ''
|
||||
selected_langcode: site_default
|
||||
|
|
@ -42,7 +42,12 @@ install:
|
|||
- responsive_image
|
||||
- content_moderation
|
||||
- workflows
|
||||
- language
|
||||
- locale
|
||||
- config_translation
|
||||
- content_translation
|
||||
- demo_umami_tour
|
||||
themes:
|
||||
- seven
|
||||
- umami
|
||||
keep_english: true
|
||||
|
|
|
|||
Loading…
Reference in New Issue