better labels

This commit is contained in:
Leo Germani 2018-10-02 11:57:56 -03:00
parent 47a27254cb
commit eb1fbae467
1 changed files with 5 additions and 5 deletions

View File

@ -101,17 +101,17 @@ class Metadata extends Repository {
'map' => 'meta', 'map' => 'meta',
'title' => __( 'Required', 'tainacan' ), 'title' => __( 'Required', 'tainacan' ),
'type' => 'string', 'type' => 'string',
'description' => __( 'The metadata is required', 'tainacan' ), 'description' => __( 'The metadata is required. All items in this collection must fill this field', 'tainacan' ),
'on_error' => __( 'The metadata content is invalid', 'tainacan' ), 'on_error' => __( 'The metadata content is invalid', 'tainacan' ),
'validation' => v::stringType()->in( [ 'yes', 'no' ] ), // yes or no 'validation' => v::stringType()->in( [ 'yes', 'no' ] ), // yes or no
'default' => 'no' 'default' => 'no'
], ],
'collection_key' => [ 'collection_key' => [
'map' => 'meta', 'map' => 'meta',
'title' => __( 'Collection key', 'tainacan' ), 'title' => __( 'Unique value', 'tainacan' ),
'type' => 'string', 'type' => 'string',
'description' => __( 'Metadata value should not be repeated', 'tainacan' ), 'description' => __( 'Metadata value should be unique accross all items in this collection', 'tainacan' ),
'on_error' => __( 'Collection key is invalid', 'tainacan' ), 'on_error' => __( 'You can not have two items with the same value for this metadatum', 'tainacan' ),
'validation' => v::stringType()->in( [ 'yes', 'no' ] ), // yes or no 'validation' => v::stringType()->in( [ 'yes', 'no' ] ), // yes or no
'default' => 'no' 'default' => 'no'
], ],
@ -119,7 +119,7 @@ class Metadata extends Repository {
'map' => 'meta', 'map' => 'meta',
'title' => __( 'Multiple', 'tainacan' ), 'title' => __( 'Multiple', 'tainacan' ),
'type' => 'string', 'type' => 'string',
'description' => __( 'Allow multiple values for the metadata', 'tainacan' ), 'description' => __( 'Allow items to have more than one value for this metadatum', 'tainacan' ),
'on_error' => __( 'Invalid multiple metadata', 'tainacan' ), 'on_error' => __( 'Invalid multiple metadata', 'tainacan' ),
'validation' => v::stringType()->in( [ 'yes', 'no' ] ), 'validation' => v::stringType()->in( [ 'yes', 'no' ] ),
// yes or no. It cant be multiple if its collection_key // yes or no. It cant be multiple if its collection_key