Skip to content
Snippets Groups Projects
Commit 34b639a8 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #1048006 by jyyna, wojtha, David_Rothstein: name of vocabulary (Tags)...

- Patch #1048006 by jyyna, wojtha, David_Rothstein: name of vocabulary (Tags) created during install cannot be localized.
parent e1b223b1
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -271,7 +271,7 @@ function standard_install() { ...@@ -271,7 +271,7 @@ function standard_install() {
$description = st('Use tags to group articles on similar topics into categories.'); $description = st('Use tags to group articles on similar topics into categories.');
$help = st('Enter a comma-separated list of words to describe your content.'); $help = st('Enter a comma-separated list of words to describe your content.');
$vocabulary = (object) array( $vocabulary = (object) array(
'name' => 'Tags', 'name' => st('Tags'),
'description' => $description, 'description' => $description,
'machine_name' => 'tags', 'machine_name' => 'tags',
'help' => $help, 'help' => $help,
...@@ -298,7 +298,7 @@ function standard_install() { ...@@ -298,7 +298,7 @@ function standard_install() {
$instance = array( $instance = array(
'field_name' => 'field_' . $vocabulary->machine_name, 'field_name' => 'field_' . $vocabulary->machine_name,
'entity_type' => 'node', 'entity_type' => 'node',
'label' => $vocabulary->name, 'label' => 'Tags',
'bundle' => 'article', 'bundle' => 'article',
'description' => $vocabulary->help, 'description' => $vocabulary->help,
'widget' => array( 'widget' => array(
......
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