Skip to content

Commit

Permalink
#2766 Make Text Translatable and let the button disabled
Browse files Browse the repository at this point in the history
- Make all Files Field component texts translatable
- When multiple isn't allowed and a file is set, let the button displayed as disabled instead of hiding it and adding text.
  • Loading branch information
New0 committed Nov 20, 2018
1 parent 6859891 commit c6f6877
Show file tree
Hide file tree
Showing 19 changed files with 4,560 additions and 4,517 deletions.
6 changes: 6 additions & 0 deletions classes/render/assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,12 @@ public static function enqueue_form_assets(){
),
'nonce' => wp_create_nonce('wp_rest')
),
'strings' => array(
'cf2FileField' => array(
'removeFile' => esc_attr__('Remove file', 'caldera-forms'),
'defaultButtonText' => esc_attr__('Drop files or click to select files to Upload', 'caldera-forms')
)
),
'nonce' => array(
'field' => Caldera_Forms_Render_Nonce::nonce_field_name(),
),
Expand Down
Loading

0 comments on commit c6f6877

Please sign in to comment.