Skip to content

Commit

Permalink
Improve translations
Browse files Browse the repository at this point in the history
  • Loading branch information
zackkatz authored Nov 4, 2024
1 parent 9f62798 commit c1fb510
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion includes/fields/class-gravityview-field-image-choice.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ public function field_options( $field_options, $template_id, $field_id, $context
'type' => 'radio',
'value' => 'image',
'label' => __( 'What should be displayed:', 'gk-gravityview' ),
'desc' => sprintf( __( 'This input has a label%s and an image. What should be displayed?', 'gk-gravityview' ), $this->is_choice_value_enabled() ? __( ', value', 'gk-gravityview' ) : '' ),
// translators: %s is replaced by the components that the field has (label, value, and image or label, value)
'desc' => sprintf( __( 'This input has a %s. What should be displayed?', 'gk-gravityview' ), $this->is_choice_value_enabled() ? _x( 'label, value, and image', 'These are a list of choices for what to to display for the current input.', 'gk-gravityview' ) : _x( 'label and value', 'These are a list of choices for what to to display for the current input.', 'gk-gravityview' ) ),
'choices' => $choices,
'group' => 'display',
);
Expand Down

0 comments on commit c1fb510

Please sign in to comment.