Skip to content

Commit

Permalink
Make fieldtype key and optional label translations consistent (#4458)
Browse files Browse the repository at this point in the history
  • Loading branch information
ebeauchamps authored Oct 12, 2021
1 parent 746d340 commit 13b8e28
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Fieldtypes/ButtonGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ protected function configFieldItems(): array
'display' => __('Options'),
'instructions' => __('statamic::fieldtypes.radio.config.options'),
'type' => 'array',
'value_header' => __('Label'),
'value_header' => __('Label').' ('.__('Optional').')',
],
'default' => [
'display' => __('Default Value'),
Expand Down
4 changes: 2 additions & 2 deletions src/Fieldtypes/Checkboxes.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ protected function configFieldItems(): array
'display' => __('Options'),
'instructions' => __('statamic::fieldtypes.checkboxes.config.options'),
'type' => 'array',
'key_header' => __('Key (Value)'),
'value_header' => __('Label'),
'key_header' => __('Key'),
'value_header' => __('Label').' ('.__('Optional').')',
],
'default' => [
'display' => __('Default Value'),
Expand Down
2 changes: 1 addition & 1 deletion src/Fieldtypes/Radio.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ protected function configFieldItems(): array
'display' => __('Options'),
'instructions' => __('statamic::fieldtypes.radio.config.options'),
'type' => 'array',
'value_header' => __('Label'),
'value_header' => __('Label').' ('.__('Optional').')',
],
'inline' => [
'display' => __('Inline'),
Expand Down
2 changes: 1 addition & 1 deletion src/Fieldtypes/Select.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ protected function configFieldItems(): array
'instructions' => __('statamic::fieldtypes.select.config.options'),
'type' => 'array',
'key_header' => __('Key'),
'value_header' => __('Label'),
'value_header' => __('Label').' ('.__('Optional').')',
'add_button' => __('Add Option'),
],
'multiple' => [
Expand Down

0 comments on commit 13b8e28

Please sign in to comment.