Finishing the translation of text strings to pt-br / improving some description texts in english

This commit is contained in:
fabs balvedi 2018-05-18 16:49:44 -03:00
parent bea8da20ab
commit ed8efbf91f
23 changed files with 927 additions and 587 deletions

View File

@ -52,14 +52,14 @@ return [
// Page Titles (used mainly on Router)
'title_repository_collections_page' => __( 'Repository Collections Page', 'tainacan' ),
'title_items_page' => __( 'Items Page', 'tainacan' ),
'title_repository_fields_page' => __( 'Repository Fields Page', 'tainacan' ),
'title_repository_fields_page' => __( 'Repository Metadata Page', 'tainacan' ),
'title_repository_filters_page' => __( 'Repository Filters Page', 'tainacan' ),
'title_categories_page' => __( 'Categories Page', 'tainacan' ),
'title_terms_page' => __( 'Terms Page', 'tainacan' ),
'title_repository_events_page' => __( 'Repository Events Page', 'tainacan' ),
'title_collection_page' => __( 'Collection Page', 'tainacan' ),
'title_item_page' => __( 'Item Page', 'tainacan' ),
'title_field_page' => __( 'Field Page', 'tainacan' ),
'title_field_page' => __( 'Metadata Page', 'tainacan' ),
'title_collection_events' => __( 'Collection Events', 'tainacan' ),
/* translators: alkdjklasdj laksjd klsadj */
@ -75,8 +75,8 @@ return [
'title_edit_item' => __( 'Edit Item', 'tainacan' ),
'title_category_edition_page' => __( 'Category Edition Page', 'tainacan' ),
'title_filter_edition' => __( 'Filter Edition Page', 'tainacan' ),
'title_field_edition' => __( 'Field Edition Page', 'tainacan' ),
'title_collection_fields_edition' => __( 'Edit Fields of', 'tainacan' ),
'title_field_edition' => __( 'Metadata Edition Page', 'tainacan' ),
'title_collection_fields_edition' => __( 'Edit Metadata of', 'tainacan' ),
'title_collection_filters_edition' => __( 'Edit Filters of', 'tainacan' ),
// Labels (used mainly on Aria Labels and Inputs)
@ -111,15 +111,15 @@ return [
'label_categories_per_page' => __( 'Categories per Page:', 'tainacan' ),
'label_events_per_page' => __( 'Events per Page:', 'tainacan' ),
'label_items_per_page' => __( 'Items per Page:', 'tainacan' ),
'label_active_fields' => __( 'Active Fields', 'tainacan' ),
'label_available_fields' => __( 'Available Fields', 'tainacan' ),
'label_available_field_types' => __( 'Available Field Types', 'tainacan' ),
'label_active_fields' => __( 'Active Metadata', 'tainacan' ),
'label_available_fields' => __( 'Available Metadata', 'tainacan' ),
'label_available_field_types' => __( 'Available Metadata Types', 'tainacan' ),
'label_active_filters' => __( 'Active Filters', 'tainacan' ),
'label_filter_type' => __( 'Filter Type', 'tainacan' ),
'label_available_filters' => __( 'Available Filters', 'tainacan' ),
'label_available_filter_types' => __( 'Available Filter Types', 'tainacan' ),
'label_per_page' => __( 'per Page', 'tainacan' ),
'label_table_fields' => __( 'Fields on table', 'tainacan' ),
'label_table_fields' => __( 'Metadata on table', 'tainacan' ),
'label_required' => __( 'Required', 'tainacan' ),
'label_allow_multiple' => __( 'Allow multiple values', 'tainacan' ),
'label_default_value' => __( 'Default value', 'tainacan' ),
@ -128,7 +128,7 @@ return [
'label_no' => __( 'No', 'tainacan' ),
'label_approved' => __( 'Approved', 'tainacan' ),
'label_collection_related' => __( 'Collection Related', 'tainacan' ),
'label_fields_for_search' => __( 'Fields for search', 'tainacan' ),
'label_fields_for_search' => __( 'Metadata for search', 'tainacan' ),
'label_allow_repeated_items' => __( 'Allow repeated items', 'tainacan' ),
'label_select_category' => __( 'Select category', 'tainacan' ),
'label_select_category_input_type' => __( 'Input type', 'tainacan' ),
@ -140,7 +140,7 @@ return [
'label_disabled' => __( 'Disabled', 'tainacan' ),
'label_creation' => __( 'Creation', 'tainacan' ),
'label_collection_items' => __( 'Collection Items', 'tainacan' ),
'label_collection_fields' => __( 'Collection Fields', 'tainacan' ),
'label_collection_fields' => __( 'Collection Metadata', 'tainacan' ),
'label_collection_filters' => __( 'Collection Filters', 'tainacan' ),
'label_parent_term' => __( 'Parent Term', 'tainacan' ),
'label_new_term' => __( 'New Term', 'tainacan' ),
@ -156,7 +156,7 @@ return [
'label_empty_header_image' => __( 'Empty Header Image', 'tainacan' ),
'label_enable_cover_page' => __( 'Enable Cover Page', 'tainacan' ),
'label_cover_page' => __( 'Cover Page', 'tainacan' ),
'label_default_displayed_fields' => __( 'Default Displayed Fields', 'tainacan' ),
'label_default_displayed_fields' => __( 'Default Displayed Metadata', 'tainacan' ),
'label_display' => __( 'Display on Listing', 'tainacan' ),
'label_display_default' => __( 'Display by default', 'tainacan' ),
'label_display_never' => __( 'Never displayed', 'tainacan' ),
@ -224,8 +224,8 @@ return [
'info_warning_category_delete' => __( 'Do you really want to delete this category?', 'tainacan' ),
'info_warning_selected_collections_delete' => __( 'Do you really want to delete the selected collections?', 'tainacan' ),
'info_warning_selected_items_delete' => __( 'Do you really want to delete the selected items?', 'tainacan' ),
'info_warning_collection_related' => __( 'The field Collection related is required', 'tainacan' ),
'info_warning_no_fields_found' => __( 'No fields found in this collection', 'tainacan' ),
'info_warning_collection_related' => __( 'The metadata Collection related is required', 'tainacan' ),
'info_warning_no_fields_found' => __( 'No metadata found in this collection', 'tainacan' ),
'info_showing_items' => __( 'Showing items ', 'tainacan' ),
'info_showing_collections' => __( 'Showing collections ', 'tainacan' ),
'info_showing_categories' => __( 'Showing categories ', 'tainacan' ),
@ -237,7 +237,7 @@ return [
'info_date' => __( 'Date: ', 'tainacan' ),
'info_not_saved' => __( 'Not saved ', 'tainacan' ),
'info_warning_item_not_saved' => __( 'Are you sure? The item is not saved, changes will be lost.', 'tainacan' ),
'info_warning_fields_not_saved' => __( 'Are you sure? There are fields not saved, changes will be lost.', 'tainacan' ),
'info_warning_fields_not_saved' => __( 'Are you sure? There are metadata not saved, changes will be lost.', 'tainacan' ),
'info_warning_filters_not_saved' => __( 'Are you sure? There are filters not saved, changes will be lost.', 'tainacan' ),
'info_no_description_provided' => __( 'No description provided.', 'tainacan' ),
'info_warning_category_not_saved' => __( 'Are you sure? The category is not saved, changes will be lost.', 'tainacan' ),
@ -246,7 +246,7 @@ return [
'info_no_events' => __( 'No events', 'tainacan' ),
'info_logs_before' => __( 'Before updating', 'tainacan' ),
'info_logs_after' => __( 'What was updated', 'tainacan' ),
'info_there_is_no_field' => __( 'There is no field here yet.', 'tainacan' ),
'info_there_is_no_field' => __( 'There is no metadata here yet.', 'tainacan' ),
'info_there_is_no_filter' => __( 'There is no filter here yet.', 'tainacan' ),
'info_changes' => __( 'Changes', 'tainacan' ),
'info_possible_external_sources' => __( 'Possible external sources: CSV, Instagram, Youtube, etc.', 'tainacan' ),

View File

@ -443,7 +443,7 @@ class REST_Controller extends \WP_REST_Controller {
'value' => array(
'type' => 'string/array',
'description' => __('Custom metadata value. It can be an array only when compare is IN, NOT IN, BETWEEN, or NOT BETWEEN. You dont have to specify a value when using the EXISTS or NOT EXISTS comparisons in WordPress 3.9 and up.
(Note: Due to bug #23268, value is required for NOT EXISTS comparisons to work correctly prior to 3.9. You must supply some string for the value parameter. An empty string or NULL will NOT work. However, any other string will do the trick and will NOT show up in your SQL when using NOT EXISTS. Need inspiration? How about \'bug #23268\'.)'),
(Note: Due to bug #23268, value is required for NOT EXISTS comparisons to work correctly prior to 3.9. You must supply some string for the value parameter. An empty string or NULL will NOT work. However, any other string will do the trick and will NOT show up in your SQL when using NOT EXISTS. Need inspiration? How about \'bug #23268\'.'),
),
'compare' => array(
'type' => 'string',

View File

@ -365,7 +365,7 @@ class REST_Collections_Controller extends REST_Controller {
}
return new \WP_REST_Response([
'error_message' => __('Collection with that ID not found', 'tainacan' ),
'error_message' => __('Collection with this ID was not found', 'tainacan' ),
'collection_id' => $collection_id
], 400);
}

View File

@ -393,20 +393,20 @@ class REST_Fields_Controller extends REST_Controller {
$field = $this->field_repository->fetch($field_id);
$error_message = __('Metadata with that ID was not found', 'tainacan');
$error_message = __('Metadata with this ID was not found', 'tainacan');
if($field){
// These conditions are for verify if endpoints are used correctly
if(!$collection_id && $field->get_collection_id() !== 'default') {
$error_message = __('That metadata is not a default metadata', 'tainacan');
$error_message = __('This metadata is not a default metadata', 'tainacan');
return new \WP_REST_Response( [
'error_message' => $error_message,
'field_id' => $field_id
] );
} elseif ($collection_id && $field->get_collection_id() === 'default'){
$error_message = __('That metadata is not a collection metadata', 'tainacan');
$error_message = __('This metadata is not a collection metadata', 'tainacan');
return new \WP_REST_Response( [
'error_message' => $error_message,

View File

@ -174,7 +174,7 @@ class REST_Filters_Controller extends REST_Controller {
}
return new \WP_REST_Response([
'error_message' => __('Please verify, invalid attribute(s)', 'tainacan'),
'error_message' => __('Please verify, invalid attribute(s).', 'tainacan'),
'error' => $filter_obj->get_errors()
], 400);
}
@ -279,7 +279,7 @@ class REST_Filters_Controller extends REST_Controller {
}
return new \WP_REST_Response([
'error_message' => __('A filter with that ID was not found', 'tainacan' ),
'error_message' => __('A filter with this ID was not found', 'tainacan' ),
'filter_id' => $filter_id
], 400);

View File

@ -404,7 +404,7 @@ class REST_Items_Controller extends REST_Controller {
}
return new \WP_REST_Response([
'error_message' => __('Item with that ID not found', 'tainacan' ),
'error_message' => __('An item with this ID was not found', 'tainacan' ),
'item_id' => $item_id
], 400);
}

View File

@ -112,7 +112,7 @@ class REST_Logs_Controller extends REST_Controller {
if(!$collection){
return new \WP_REST_Response([
'error_message' => __('A collection with that ID does not exist.', 'tainacan'),
'error_message' => __('A collection with this ID does not exist', 'tainacan'),
'collection_id' => $collection_id
], 400);
}

View File

@ -416,7 +416,7 @@ class REST_Taxonomies_Controller extends REST_Controller {
$query_params = array_merge($query_params, parent::get_collection_params('tax'));
$query_params['name'] = array(
'description' => __('Limit result set to taxonomy with specific name.'),
'description' => __('Limits the result set to a taxonomy with a specific name.'),
'type' => 'string',
);

View File

@ -226,7 +226,7 @@ class REST_Terms_Controller extends REST_Controller {
}
return new \WP_REST_Response([
'error_message' => __('Term or Taxonomy with that IDs not found', 'tainacan' ),
'error_message' => __('Term or Taxonomy with this ID was not found', 'tainacan' ),
'term_id' => $term_id,
'taxonomy_id' => $taxonomy_id
], 400);
@ -400,7 +400,7 @@ class REST_Terms_Controller extends REST_Controller {
$query_params = array_merge($query_params, parent::get_collection_params('term'));
$query_params['name'] = array(
'description' => __('Limit result set to term with specific name.'),
'description' => __('Limits the result set to terms with a specific name'),
'type' => 'string',
);

View File

@ -414,7 +414,7 @@ class Field extends Entity {
// You cant have a multiple field inside a compound field (except category)
if ($this->get_parent() > 0) {
if ( $this->is_multiple() && $this->get_field_type_object()->get_primitive_type() != 'term') {
$this->add_error($this->get_id(), __('Compound fields do not support fields with multiple values (except categories)', 'tainacan'));
$this->add_error($this->get_id(), __('Compound metadata do not support metadata with multiple values (except categories)', 'tainacan'));
return false;
}
}
@ -423,7 +423,7 @@ class Field extends Entity {
if ( $this->get_parent() > 0 && $this->get_field_type_object()->get_primitive_type() == 'term' ) {
$parent_field = new \Tainacan\Entities\Field($this->get_parent());
if ( $parent_field->is_multiple() ) {
$this->add_error($this->get_id(), __('Category fields can not be used inside Compound field with multiple values', 'tainacan'));
$this->add_error($this->get_id(), __('Category metadata can not be used inside Compound metadata with multiple values', 'tainacan'));
return false;
}
}
@ -438,7 +438,7 @@ class Field extends Entity {
, 'OBJECT');
if ( sizeof($children) > 0 ) {
$this->add_error($this->get_id(), __('Category fields can not be used inside Compound field with multiple values', 'tainacan'));
$this->add_error($this->get_id(), __('Category metadata can not be used inside Compound metadata with multiple values', 'tainacan'));
return false;
}
}

View File

@ -41,7 +41,7 @@ class Category extends Field_Type {
],
'allow_new_terms' => [
'title' => __( 'Allow new terms', 'tainacan' ),
'description' => __( 'Allow create new terms', 'tainacan' ),
'description' => __( 'Allows to create new terms', 'tainacan' ),
]
];
}
@ -85,7 +85,7 @@ class Category extends Field_Type {
foreach ($category_fields as $field_id => $category_field) {
if ( is_array( $category_field ) && key($category_field) != $field->get_id()
&& in_array($this->get_option('taxonomy_id'), $category_field)) {
return ['taxonomy_id' => __('You can not have 2 Category Fields using the same category in a collection', 'tainacan')];
return ['taxonomy_id' => __('You can not have 2 taxonomy metadata using the same taxonomy in a collection.', 'tainacan')];
}
}
}

View File

@ -27,12 +27,12 @@ class Relationship extends Field_Type {
'description' => __( 'Select the collection to fetch items', 'tainacan' ),
],
'search' => [
'title' => __( 'Fields for search', 'tainacan' ),
'description' => __( 'Select the fields to help the search', 'tainacan' ),
'title' => __( 'Metadata for search', 'tainacan' ),
'description' => __( 'Select the metadata to help the search', 'tainacan' ),
],
'repeated' => [
'title' =>__( 'Allow repeated items', 'tainacan' ),
'description' => __( 'Allow different items with the same item selected', 'tainacan' ),
'description' => __( 'Allows different items to be related to the same item selected in another collection.', 'tainacan' ),
]
];
}
@ -57,11 +57,11 @@ class Relationship extends Field_Type {
if (!empty($this->get_option('collection_id')) && !is_numeric($this->get_option('collection_id'))) {
return [
'collection_id' => __('Collection ID invalid','tainacan')
'collection_id' => __('Invalid collection ID','tainacan')
];
} else if( empty($this->get_option('collection_id'))) {
return [
'collection_id' => __('Collection related is required','tainacan')
'collection_id' => __('The related collection is required','tainacan')
];
}
return true;

View File

@ -24,7 +24,7 @@ class Selectbox extends Field_Type {
return [
'options' => [
'title' => __( 'Options', 'tainacan' ),
'description' => __( 'Create the options for the select, hit enter to add new one', 'tainacan' ),
'description' => __( 'Creates options for what is selected. Hit <enter> to add a new one.', 'tainacan' ),
]
];
}
@ -53,10 +53,10 @@ class Selectbox extends Field_Type {
if ( empty($this->get_option('options')) ) {
return [
'options' => __('Options is required','tainacan')
'options' => __('Required options','tainacan')
];
}
return true;
}
}
}

View File

@ -89,7 +89,7 @@ abstract class Filter_Type {
if(in_array( $class->get_primitive_type(), $this->supported_types )){
return true;
} else {
return ['unsupported_type' => __('The field primitive type is not supported by this filter', 'tainacan')];
return ['unsupported_type' => __('The metadata primitive type is not supported by this filter', 'tainacan')];
}
}

View File

@ -72,7 +72,7 @@ class Collections extends Repository {
'map' => 'menu_order',
'title' => __( 'Order', 'tainacan' ),
'type' => 'string',
'description' => __( 'Collection order. Field used if collections are manually ordered.', 'tainacan' ),
'description' => __( 'Collection order. This metadata is used if collections are manually ordered.', 'tainacan' ),
//'validation' => v::stringType(),
],
'parent' => [
@ -99,7 +99,7 @@ class Collections extends Repository {
],
'default_orderby' => [
'map' => 'meta',
'title' => __( 'Default Order field', 'tainacan' ),
'title' => __( 'Default Order metadata', 'tainacan' ),
'type' => 'string',
'description' => __( 'Default property items in this collections will be ordered by', 'tainacan' ),
'default' => 'name',
@ -115,11 +115,11 @@ class Collections extends Repository {
],
'default_displayed_fields' => [
'map' => 'meta',
'title' => __( 'Default Displayed Fields', 'tainacan' ),
'title' => __( 'Default Displayed Metadata', 'tainacan' ),
'type' => 'array/object/string',
'items' => [ 'type' => 'array/string/integer/object' ],
'default' => [],
'description' => __( 'List of collections property that will be displayed in the table view.', 'tainacan' ),
'description' => __( 'List of collection properties that will be displayed in the table view', 'tainacan' ),
//'validation' => v::stringType(),
],
'default_view_mode' => [
@ -131,10 +131,10 @@ class Collections extends Repository {
],
'fields_order' => [
'map' => 'meta',
'title' => __( 'Ordination fields', 'tainacan' ),
'title' => __( 'Ordination metadata', 'tainacan' ),
'type' => 'array/object/string',
'items' => [ 'type' => 'array/string/integer/object' ],
'description' => __( 'Collection fields ordination', 'tainacan' ),
'description' => __( 'Collection metadata ordination', 'tainacan' ),
//'validation' => v::stringType(),
],
'filters_order' => [

View File

@ -45,7 +45,7 @@ class Fields extends Repository {
'map' => 'post_title',
'title' => __( 'Name', 'tainacan' ),
'type' => 'string',
'description' => __( 'Name of the field', 'tainacan' ),
'description' => __( 'Name of the metadata', 'tainacan' ),
'on_error' => __( 'The name should be a text value and not empty', 'tainacan' ),
'validation' => v::stringType()->notEmpty(),
],
@ -53,14 +53,14 @@ class Fields extends Repository {
'map' => 'post_name',
'title' => __( 'Slug', 'tainacan' ),
'type' => 'string',
'description' => __( 'A unique and santized string representation of the field', 'tainacan' ),
'description' => __( 'A unique and santized string representation of the metadata', 'tainacan' ),
//'validation' => v::stringType(),
],
'order' => [
'map' => 'menu_order',
'title' => __( 'Order', 'tainacan' ),
'type' => 'string/integer',
'description' => __( 'Metadata order. This metadata will be used if collections were manually ordered', 'tainacan' ),
'description' => __( 'Metadata order. This metadata will be used if collections were manually ordered.', 'tainacan' ),
'on_error' => __( 'The menu order should be a numeric value', 'tainacan' ),
//'validation' => v::numeric(),
],
@ -68,7 +68,7 @@ class Fields extends Repository {
'map' => 'post_parent',
'title' => __( 'Parent', 'tainacan' ),
'type' => 'integer',
'description' => __( 'Parent field', 'tainacan' ),
'description' => __( 'Parent metadata', 'tainacan' ),
'default' => 0
//'on_error' => __('The Parent should be numeric value', 'tainacan'),
//'validation' => v::numeric(),
@ -77,7 +77,7 @@ class Fields extends Repository {
'map' => 'post_content',
'title' => __( 'Description', 'tainacan' ),
'type' => 'string',
'description' => __( 'The field description', 'tainacan' ),
'description' => __( 'The metadata description', 'tainacan' ),
'default' => '',
//'on_error' => __('The description should be a text value', 'tainacan'),
//'validation' => v::stringType()->notEmpty(),
@ -86,16 +86,16 @@ class Fields extends Repository {
'map' => 'meta',
'title' => __( 'Type', 'tainacan' ),
'type' => 'string',
'description' => __( 'The field type', 'tainacan' ),
'on_error' => __( 'Field type is empty', 'tainacan' ),
'description' => __( 'The metadata type', 'tainacan' ),
'on_error' => __( 'Metadata type is empty', 'tainacan' ),
'validation' => v::stringType()->notEmpty(),
],
'required' => [
'map' => 'meta',
'title' => __( 'Required', 'tainacan' ),
'type' => 'string',
'description' => __( 'The field is required', 'tainacan' ),
'on_error' => __( 'Field required field is invalid', 'tainacan' ),
'description' => __( 'The metadata is required', 'tainacan' ),
'on_error' => __( 'The metadata content is invalid', 'tainacan' ),
'validation' => v::stringType()->in( [ 'yes', 'no' ] ), // yes or no
'default' => 'no'
],
@ -103,7 +103,7 @@ class Fields extends Repository {
'map' => 'meta',
'title' => __( 'Collection key', 'tainacan' ),
'type' => 'string',
'description' => __( 'Field value should not be repeated', 'tainacan' ),
'description' => __( 'Metadata value should not be repeated', 'tainacan' ),
'on_error' => __( 'Collection key is invalid', 'tainacan' ),
'validation' => v::stringType()->in( [ 'yes', 'no' ] ), // yes or no
'default' => 'no'
@ -112,8 +112,8 @@ class Fields extends Repository {
'map' => 'meta',
'title' => __( 'Multiple', 'tainacan' ),
'type' => 'string',
'description' => __( 'Allow multiple fields for the field', 'tainacan' ),
'on_error' => __( 'Multiple fields is invalid', 'tainacan' ),
'description' => __( 'Allow multiple values for the metadata', 'tainacan' ),
'on_error' => __( 'Invalid multiple metadata', 'tainacan' ),
'validation' => v::stringType()->in( [ 'yes', 'no' ] ),
// yes or no. It cant be multiple if its collection_key
'default' => 'no'
@ -122,8 +122,8 @@ class Fields extends Repository {
'map' => 'meta',
'title' => __( 'Cardinality', 'tainacan' ),
'type' => 'string/number',
'description' => __( 'Number of multiples possible fields', 'tainacan' ),
'on_error' => __( 'The number of fields not allowed', 'tainacan' ),
'description' => __( 'Number of multiples possible metadata', 'tainacan' ),
'on_error' => __( 'This number of multiples metadata is not allowed', 'tainacan' ),
'validation' => v::numeric()->positive(),
'default' => 1
],
@ -131,7 +131,7 @@ class Fields extends Repository {
'map' => 'meta',
'title' => __( 'Mask', 'tainacan' ),
'type' => 'string',
'description' => __( 'The mask to be used in the field', 'tainacan' ),
'description' => __( 'The mask to be used in the metadata', 'tainacan' ),
//'on_error' => __('Mask is invalid', 'tainacan'),
//'validation' => ''
],
@ -139,14 +139,14 @@ class Fields extends Repository {
'map' => 'meta',
'title' => __( 'Default value', 'tainacan' ),
'type' => 'string',
'description' => __( 'The value default fot the field', 'tainacan' ),
'description' => __( 'The default value for the metadata', 'tainacan' ),
],
'field_type_options' => [ // not showed in form
'map' => 'meta',
'title' => __( 'Field Type options', 'tainacan' ),
'title' => __( 'Metadata type options', 'tainacan' ),
'type' => 'array/object/string',
'items' => [ 'type' => 'array/string/integer/object' ],
'description' => __( 'Options specific for field type', 'tainacan' ),
'description' => __( 'Specific options for metadata type', 'tainacan' ),
// 'validation' => ''
],
'collection_id' => [ // not showed in form
@ -158,19 +158,19 @@ class Fields extends Repository {
],
'accept_suggestion' => [
'map' => 'meta',
'title' => __( 'Field Value Accepts Suggestions', 'tainacan' ),
'title' => __( 'Metadata Value Accepts Suggestions', 'tainacan' ),
'type' => 'bool',
'description' => __( 'Allow the community suggest a different values for that field', 'tainacan' ),
'description' => __( 'Allow community to suggest different values for the metadata', 'tainacan' ),
'default' => false,
'validation' => v::boolType()
],
'exposer_mapping' => [
'map' => 'meta',
'title' => __( 'exposer_mapping', 'tainacan' ),
'title' => __( 'Relationship metadata mapping', 'tainacan' ),
'type' => 'array/object/string',
'items' => [ 'type' => 'array/string/integer/object' ],
'description' => __( 'The field mapping options', 'tainacan' ),
'on_error' => __( 'Invalid Field Mapping', 'tainacan' ),
'description' => __( 'The metadata mapping options. Metadata can be configured to match another type of data distribution.', 'tainacan' ),
'on_error' => __( 'Invalid Metadata Mapping', 'tainacan' ),
//'validation' => v::arrayType(),
'default' => []
],
@ -179,7 +179,7 @@ class Fields extends Repository {
'title' => __( 'Display', 'tainacan' ),
'type' => __( 'string' ),
'validation' => v::stringType()->in( [ 'yes', 'no', 'never' ] ),
'description' => __( 'Display by default on listing or not display or never display.', 'tainacan' ),
'description' => __( 'Display by default on listing or do not display or never display.', 'tainacan' ),
'default' => 'yes'
]
] );
@ -191,7 +191,7 @@ class Fields extends Repository {
*/
public function get_cpt_labels() {
return array(
'name' => __('Metadatas', 'tainacan'),
'name' => __('Metadata', 'tainacan'),
'singular_name' => __('Metadata', 'tainacan'),
'add_new' => __('Add new', 'tainacan'),
'add_new_item' => __('Add new Metadata', 'tainacan'),
@ -202,7 +202,7 @@ class Fields extends Repository {
'not_found' => __('No Metadata found ', 'tainacan'),
'not_found_in_trash' => __('No Metadata found in trash', 'tainacan'),
'parent_item_colon' => __('Parent Metadata:', 'tainacan'),
'menu_name' => __('Metadatas', 'tainacan')
'menu_name' => __('Metadata', 'tainacan')
);
}

View File

@ -38,7 +38,7 @@ class Filters extends Repository {
'map' => 'menu_order',
'title' => __('Order', 'tainacan'),
'type' => 'string',
'description'=> __('Filter order. Field used if filters are manually ordered', 'tainacan'),
'description'=> __('Filter order. This metadata is used if filters were manually ordered.', 'tainacan'),
'validation' => ''
],
'description' => [
@ -80,9 +80,9 @@ class Filters extends Repository {
],
'field' => [
'map' => 'meta',
'title' => __('Field', 'tainacan'),
'title' => __('Metadata', 'tainacan'),
'type' => 'integer',
'description'=> __('Filter field', 'tainacan'),
'description'=> __('Filter metadata', 'tainacan'),
'validation' => ''
],
]);

View File

@ -97,7 +97,7 @@ class Items extends Repository {
'map' => 'meta',
'title' => __( 'Document', 'tainacan' ),
'type' => 'string',
'description' => __( 'The document itself. An ID in case of attachment, an URL in case of url or a text in the case of text', 'tainacan' ),
'description' => __( 'The document itself. An ID in case of attachment, an URL in case of link or a text in the case of text.', 'tainacan' ),
'on_error' => __( 'Invalid document', 'tainacan' ),
'default' => ''
],

View File

@ -84,7 +84,7 @@ class Logs extends Repository {
'map' => 'meta',
'title' => __( 'Items per page', 'tainacan' ),
'type' => 'integer',
'description' => __( 'The quantity of items that should be load' ),
'description' => __( 'The quantity of items that should be loaded' ),
'validation' => ''
],
'user_id' => [

View File

@ -38,7 +38,7 @@ class Taxonomies extends Repository {
'title' => __('Name', 'tainacan'),
'type' => 'string',
'description' => __('Name of the taxonomy', 'tainacan'),
'on_error' => __('The taxonomy name should be a text value and not empty', 'tainacan'),
'on_error' => __('The taxonomy name should be a text value and should not be empty.', 'tainacan'),
'validation' => v::stringType()->notEmpty(),
],
'description' => [
@ -61,7 +61,7 @@ class Taxonomies extends Repository {
'title' => __('Allow insert', 'tainacan'),
'type' => 'string',
'description' => __('Allow/Deny the creation of new terms in the taxonomy', 'tainacan'),
'on_error' => __('Allow insert is invalid, allowed values ( yes/no )', 'tainacan'),
'on_error' => __('Invalid insertion, allowed values are ( yes/no )', 'tainacan'),
'validation' => v::stringType()->in(['yes', 'no']), // yes or no
'default' => 'yes'
],

View File

@ -90,7 +90,7 @@ class DevInterface {
foreach ($collections as $col) {
add_meta_box(
$col->get_db_identifier() . '_field',
__('Field', 'tainacan'),
__('Metadata', 'tainacan'),
array(&$this, 'metadata_metabox'),
$col->get_db_identifier(), //post type
'normal'
@ -233,7 +233,7 @@ class DevInterface {
<thead>
<tr>
<th class="left"><?php _e('Field', 'tainacan'); ?></th>
<th class="left"><?php _e('Metadata', 'tainacan'); ?></th>
<th><?php _e('Value', 'tainacan'); ?></th>
</tr>
</thead>
@ -305,7 +305,7 @@ class DevInterface {
<thead>
<tr>
<th class="left"><?php _e('Field', 'tainacan'); ?></th>
<th class="left"><?php _e('Metadata', 'tainacan'); ?></th>
<th><?php _e('Value', 'tainacan'); ?></th>
</tr>
</thead>

Binary file not shown.

File diff suppressed because it is too large Load Diff