Skip to content
Snippets Groups Projects
Commit cb04f91c authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

Issue #3029839 by shaal, smaz, Gábor Hojtsy, mcannon, Eli-T, alexpott:...

Issue #3029839 by shaal, smaz, Gábor Hojtsy, mcannon, Eli-T, alexpott: Multilingual functionality - enable English and Spanish as part of Umami installation

(cherry picked from commit afbdd37f)
parent 5eaa0575
No related branches found
No related tags found
No related merge requests found
Showing
with 108 additions and 5 deletions
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment