mirror of
https://github.com/farmOS/farmOS.git
synced 2024-02-23 11:37:38 +01:00
Make translatable strings consistent between fields and actions #594
This commit is contained in:
parent
230c00fbde
commit
8b0b50315b
|
@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
- Update farmOS-map to [v2.1.0](https://github.com/farmOS/farmOS-map/releases/tag/v2.1.0)
|
||||
- [Issue #3311264: Coordinate upgrade of Consumers module to get client_id base field](https://www.drupal.org/project/farm/issues/3311264)
|
||||
- [Issue #3282186: Update simple_oauth to ^5.2.2](https://www.drupal.org/project/farm/issues/3282186)
|
||||
- [Make translatable strings consistent between fields and actions #594](https://github.com/farmOS/farmOS/pull/594)
|
||||
|
||||
### Fixed
|
||||
|
||||
|
|
|
@ -168,8 +168,8 @@ class EntityFlagActionForm extends ConfirmFormBase {
|
|||
|
||||
$form['flags'] = [
|
||||
'#type' => 'select',
|
||||
'#title' => $this->t('Flag'),
|
||||
'#description' => $this->t('Select the flags that should be attached to the record(s).'),
|
||||
'#title' => $this->t('Flags'),
|
||||
'#description' => $this->t('Add flags to enable better sorting and filtering of records.'),
|
||||
'#options' => $allowed_values,
|
||||
'#multiple' => TRUE,
|
||||
];
|
||||
|
|
|
@ -17,8 +17,8 @@ function farm_owner_entity_base_field_info(EntityTypeInterface $entity_type) {
|
|||
if (in_array($entity_type->id(), ['asset', 'log'])) {
|
||||
$field_info = [
|
||||
'type' => 'entity_reference',
|
||||
'label' => t('Owner'),
|
||||
'description' => t('Optionally specify who is in charge of this record.'),
|
||||
'label' => t('Owners'),
|
||||
'description' => t('Assign ownership to one or more users.'),
|
||||
'target_type' => 'user',
|
||||
'multiple' => TRUE,
|
||||
'weight' => [
|
||||
|
|
|
@ -170,8 +170,8 @@ class AssignActionForm extends ConfirmFormBase {
|
|||
|
||||
$form['users'] = [
|
||||
'#type' => 'select',
|
||||
'#title' => $this->t('Assign owners'),
|
||||
'#description' => $this->t('Select people to assign ownership of the record(s).'),
|
||||
'#title' => $this->t('Owners'),
|
||||
'#description' => $this->t('Assign ownership to one or more users.'),
|
||||
'#options' => $user_options,
|
||||
'#multiple' => TRUE,
|
||||
];
|
||||
|
|
|
@ -18,7 +18,7 @@ function farm_parent_entity_base_field_info(EntityTypeInterface $entity_type) {
|
|||
$parent_info = [
|
||||
'type' => 'entity_reference',
|
||||
'label' => t('Parents'),
|
||||
'description' => t('If this asset descends from other assets, they can referenced here to create a lineage relationship.'),
|
||||
'description' => t('Reference parent assets to create a lineal/hierarchical relationship.'),
|
||||
'target_type' => 'asset',
|
||||
'multiple' => TRUE,
|
||||
'weight' => [
|
||||
|
|
|
@ -167,7 +167,7 @@ class AssetParentActionForm extends ConfirmFormBase {
|
|||
$form['parent'] = [
|
||||
'#type' => 'entity_autocomplete',
|
||||
'#title' => $this->t('Parents'),
|
||||
'#description' => $this->t('The parent to assign for the asset.'),
|
||||
'#description' => $this->t('Reference parent assets to create a lineal/hierarchical relationship.'),
|
||||
'#target_type' => 'asset',
|
||||
'#selection_handler' => 'views',
|
||||
'#selection_settings' => [
|
||||
|
|
|
@ -155,6 +155,7 @@ class LogCategorizeActionForm extends ConfirmFormBase {
|
|||
$form['category'] = [
|
||||
'#type' => 'select',
|
||||
'#title' => $this->t('Log category'),
|
||||
'#description' => $this->t('Use this to organize your logs into categories for easier searching and filtering later.'),
|
||||
'#options' => $options,
|
||||
'#multiple' => TRUE,
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue