Merge branch 'develop' of https://github.com/tainacan/tainacan into develop

This commit is contained in:
mateuswetah 2018-05-09 16:57:18 -03:00
commit 4d0e5146f2
13 changed files with 303 additions and 175 deletions

View File

@ -123,7 +123,11 @@ class REST_Fields_Controller extends REST_Controller {
$collection_id = $request['collection_id'];
$field_id = $request['field_id'];
if($request['fetch'] === 'all_field_values'){
if($request['fetch'] === 'all_field_values' && $request['search']){
$results = $this->field_repository->fetch_all_field_values($collection_id, $field_id, $request['search']);
return new \WP_REST_Response($results, 200);
} elseif($request['fetch'] === 'all_field_values') {
$results = $this->field_repository->fetch_all_field_values($collection_id, $field_id);
return new \WP_REST_Response($results, 200);

View File

@ -68,9 +68,10 @@ class Collection extends Entity {
public function __toArray() {
$array_collection = parent::__toArray();
$array_collection['thumbnail'] = $this->get_thumbnail();
$array_collection['header_image'] = $this->get_header_image();
$array_collection['author_name'] = $this->get_author_name();
$array_collection['thumbnail'] = $this->get_thumbnail();
$array_collection['header_image'] = $this->get_header_image();
$array_collection['author_name'] = $this->get_author_name();
$array_collection['url'] = get_permalink( $this->get_id() );
return $array_collection;
}

View File

@ -52,9 +52,10 @@ class Item extends Entity {
public function __toArray() {
$array_item = parent::__toArray();
$array_item['thumbnail'] = $this->get_thumbnail();
$array_item['thumbnail'] = $this->get_thumbnail();
$array_item['_thumbnail_id'] = $this->get__thumbnail_id();
$array_item['author_name'] = $this->get_author_name();
$array_item['author_name'] = $this->get_author_name();
$array_item['url'] = get_permalink( $this->get_id() );
return $array_item;
}

View File

@ -1,5 +1,6 @@
<template>
<div>
<!-- Date -->
<div v-if="type === 'date'">
<b-datepicker
:class="{'has-content': date_init !== undefined && date_init !== ''}"
@ -16,6 +17,8 @@
@focus="isTouched = true"
icon="calendar-today"/>
</div>
<!-- Numeric -->
<div
class="columns"
v-else>
@ -84,7 +87,7 @@
type: 'numeric',
collection: '',
field: '',
field_object: {}
field_object: {},
}
},
props: {
@ -205,14 +208,3 @@
}
}
</script>
<style lang="scss">
aside.filters-menu{
overflow: visible !important;
}
.datepicker {
.dropdown-item {
background-color: white !important;
}
}
</style>

View File

@ -13,7 +13,7 @@ export const filter_type_mixin = {
},
methods: {
getValuesPlainText(fieldId, search) {
let url = '/collection/' + this.collection + '/fields/' + fieldId + '?fetch=all_field_values&nopaging=1'
let url = '/collection/' + this.collection + '/fields/' + fieldId + '?fetch=all_field_values&nopaging=1';
if( search ){
url += "&search=" + search;

View File

@ -77,6 +77,69 @@
@import "../../../src/admin/scss/_variables.scss";
#filter-item-forms {
.datepicker {
.dropdown-item {
background-color: white !important;
}
@media screen and (min-width: 1088px) {
.datepicker-header {
.pagination-list {
.field.has-addons {
display: table-cell !important;
width: 78px !important;
.control {
height: 24px !important;
width: 74px !important;
}
}
}
.pagination-previous {
margin: 0;
height: 24px;
padding: 0;
}
.pagination-next {
margin: 0;
height: 24px;
padding: 0;
}
}
.dropdown-item {
padding: 0.375rem 1rem 0.375rem 0.73rem;
}
.dropdown-menu {
min-width: 100% !important;
max-width: 165px !important;
}
.datepicker-cell {
padding: 0.2rem 0.1rem !important;
}
.select {
select {
display: unset;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
.dropdown-content {
max-width: 165px !important;
border-radius: 2px !important;
}
}
}
.collapse-trigger {
margin-left: -5px;
.icon {

View File

@ -68,12 +68,6 @@ class Collections extends Repository {
'type' => 'string',
'description' => __( 'The collection modification date', 'tainacan' )
],
'url' => [
'map' => 'guid',
'title' => __( 'Collection URL', 'tainacan' ),
'type' => 'string',
'description' => __( 'The collection URL', 'tainacan' )
],
'order' => [
'map' => 'menu_order',
'title' => __( 'Order', 'tainacan' ),

View File

@ -651,7 +651,7 @@ class Fields extends Repository {
* @return array|null|object
* @throws \Exception
*/
public function fetch_all_field_values($collection_id, $field_id){
public function fetch_all_field_values($collection_id, $field_id, $search = ''){
global $wpdb;
// Clear the result cache
@ -663,14 +663,22 @@ class Fields extends Repository {
if( strpos( $field->get_field_type(), 'Core') !== false ){
$collection = new Entities\Collection( $collection_id );
$Tainacan_Items = \Tainacan\Repositories\Items::get_instance();
$items = $Tainacan_Items->fetch( [], $collection, 'OBJECT');
$items = $Tainacan_Items->fetch( ['s' => $search], $collection, 'OBJECT');
$return = [];
foreach ($items as $item) {
if( strpos( $field->get_field_type(), 'Core_Title') !== false ){
$return[] = [ 'item_id' => $item->get_id(), 'field_id' => $field_id, 'mvalue' => $item->get_title() ];
$title = $item->get_title();
if(stristr($title, $search)) {
$return[] = [ 'item_id' => $item->get_id(), 'field_id' => $field_id, 'mvalue' => $title ];
}
} else {
$return[] = [ 'item_id' => $item->get_id(), 'field_id' => $field_id, 'mvalue' => $item->get_description() ];
$description = $item->get_description();
if(stristr($description, $search)) {
$return[] = [ 'item_id' => $item->get_id(), 'field_id' => $field_id, 'mvalue' => $description ];
}
}
}
@ -688,6 +696,12 @@ class Fields extends Repository {
$results = [];
$search_query = '';
if ($search) {
$search_param = '%' . $search . '%';
$search_query = $wpdb->prepare( "WHERE meta_value LIKE %s", $search_param );
}
// If no has logged user or actual user can not read private posts
if(get_current_user_id() === 0 || !current_user_can( $capabilities->read_private_posts)) {
$args = [
@ -700,6 +714,7 @@ class Fields extends Repository {
$post_statuses = get_post_stati( $args, 'names', 'and' );
foreach ($post_statuses as $post_status) {
$sql_string = $wpdb->prepare(
"SELECT item_id, field_id, mvalue
FROM (
@ -709,7 +724,7 @@ class Fields extends Repository {
) items
JOIN (
SELECT meta_key as field_id, meta_value as mvalue, post_id
FROM $wpdb->postmeta
FROM $wpdb->postmeta $search_query
) metas
ON items.item_id = metas.post_id AND metas.field_id = %d",
$item_post_type, $post_status, $field_id
@ -737,7 +752,7 @@ class Fields extends Repository {
) items
JOIN (
SELECT meta_key as field_id, meta_value as mvalue, post_id
FROM $wpdb->postmeta
FROM $wpdb->postmeta $search_query
) metas
ON items.item_id = metas.post_id AND metas.field_id = %d",
$item_post_type, $post_status, $field_id

View File

@ -78,12 +78,6 @@ class Items extends Repository {
'type' => 'string',
'description' => __( 'The item modification date', 'tainacan' )
],
'url' => [
'map' => 'guid',
'title' => __( 'Item URL', 'tainacan' ),
'type' => 'string',
'description' => __( 'The item URL', 'tainacan' )
],
'terms' => [
'map' => 'terms',
'title' => __( 'Term IDs', 'tainacan' ),

View File

@ -36,6 +36,7 @@ abstract class Importer {
* @var array
*/
public $mapping;
private $repository_mapping;
/**
* The path to the temporary file created when user uploads a file
@ -62,6 +63,7 @@ abstract class Importer {
* @var int
*/
private $start = 0;
private $inside_step_pointer = 0;
/**
* The log with everything that happened during the import process. It generates a report afterwards
@ -164,8 +166,26 @@ abstract class Importer {
*
* @param array $mapping Mapping importer-fields
*/
public function set_mapping( $mapping ){
$this->mapping = $mapping;
public function set_mapping( $mapping){
if(!empty($mapping))
{
$this->mapping = $mapping;
}
}
public function set_repository_mapping( $mapping, $item_id ){
if(!empty($mapping) && !empty($item_id))
{
$this->repository_mapping[$item_id] = $mapping;
}else return false;
}
public function get_repository_mapping($item_id)
{
if(!empty($item_id))
{
return $this->repository_mapping[$item_id];
}else return false;
}
/**
@ -197,6 +217,21 @@ abstract class Importer {
}
}
public function set_inside_step_pointer($step_pointer)
{
if(is_numeric($step_pointer) && $step_pointer >= 0)
{
$this->inside_step_pointer = $step_pointer;
}else
{
$this->inside_step_pointer = 0;
}
}
public function get_inside_step_pointer()
{
return $this->inside_step_pointer;
}
/**
* log the actions from importer
*
@ -496,17 +531,17 @@ abstract class Importer {
{
//$process_name = key($this->steps);
$function_name = current($this->steps);
$start = $this->{$function_name}();//If unlike numeric this means that still there is stuff to process
$inside_step_pointer = $this->{$function_name}();//If unlike numeric this means that still there is stuff to process
if($start === false || (!is_numeric($start) || $start < 0))
if($inside_step_pointer === false || (!is_numeric($inside_step_pointer) || $inside_step_pointer < 0))
{
//Move on to the next step
next($this->steps);
$this->current_step++;
$this->start = 0;
}else if(is_numeric($start) && $start > 0)
$this->set_inside_step_pointer(0);
}else if(is_numeric($inside_step_pointer) && $inside_step_pointer > 0)
{
$this->start = $start;
$this->set_inside_step_pointer($inside_step_pointer);
}
}
else

View File

@ -53,13 +53,13 @@ class Old_Tainacan extends Importer
$categories_array = $this->remove_same_name($categories_array);
list($start, $end) = $this->get_begin_end($categories_array);
if($start === false) return false;
list($inside_step_pointer, $end) = $this->get_begin_end($categories_array);
if($inside_step_pointer === false) return false;
$created_categories = [];
while($start < $end)
while($inside_step_pointer < $end)
{
$category = $categories_array[$start];
$category = $categories_array[$inside_step_pointer];
$taxonomy = new \Tainacan\Entities\Taxonomy();
@ -79,12 +79,12 @@ class Old_Tainacan extends Importer
$this->add_all_terms($inserted_taxonomy, $category->children);
}
$start++;
$inside_step_pointer++;
}
$this->save_in_file("categories", $created_categories);
}
return $start;
return $inside_step_pointer;
}
public function create_collections()
@ -96,12 +96,12 @@ class Old_Tainacan extends Importer
$created_collections = [];
if($collections_array)
{
list($start, $end) = $this->get_begin_end($collections_array);
if($start === false) return false;
list($inside_step_pointer, $end) = $this->get_begin_end($collections_array);
if($inside_step_pointer === false) return false;
while($start < $end)
while($inside_step_pointer < $end)
{
$collection = $collections_array[$start];
$collection = $collections_array[$inside_step_pointer];
$new_collection = new \Tainacan\Entities\Collection();
$new_collection->set_name($collection->post_title);
@ -112,12 +112,12 @@ class Old_Tainacan extends Importer
/*Add old id*/
$created_collections[] = $collection->ID.",".$new_collection->get_id().",".$collection->post_title;
$start++;
$inside_step_pointer++;
}
$this->save_in_file("collections", $created_collections);
}
return $start;
return $inside_step_pointer;
}
public function create_relationships_meta()
@ -173,10 +173,10 @@ class Old_Tainacan extends Importer
{
$newField = $this->set_fields_properties($meta, $created_categories, $relationships, $Fields_Repository, $compound_id);
if($newField)
if ($newField)
{
$Fields_Repository->insert($newField);
$repository_fields[] = $meta->id.",".$newField->get_id().",".$meta->name;
$newField = $Fields_Repository->insert($newField);
$repository_fields[] = $meta->id . "," . $newField->get_id() . "," . $meta->name;
}
}
}
@ -192,19 +192,19 @@ class Old_Tainacan extends Importer
$created_categories = $this->read_from_file("categories");
$relationships = $this->read_from_file("relationships");
list($start, $end) = $this->get_begin_end($created_collections);
if($start === false) return false;
list($inside_step_pointer, $end) = $this->get_begin_end($created_collections);
if($inside_step_pointer === false) return false;
$Tainacan_Fields = \Tainacan\Repositories\Fields::get_instance();
$Fields_Repository = \Tainacan\Repositories\Fields::get_instance();
$Repository_Collections = \Tainacan\Repositories\Collections::get_instance();
for($i = 0; $i < $start; $i++)
for($i = 0; $i < $inside_step_pointer; $i++)
{
next($created_collections);
}
while($start < $end)
while($inside_step_pointer < $end)
{
$collection_info = current($created_collections);
$new_collection_id = $collection_info['new_id'];
@ -214,65 +214,92 @@ class Old_Tainacan extends Importer
$file_fields = $this->get_collection_fields($old_collection_id);
$this->create_collection_meta($file_fields, $Fields_Repository, $created_repository_fields, $created_categories, $relationships);
$mapping = $this->create_collection_meta($file_fields, $Fields_Repository, $Tainacan_Fields, $created_repository_fields, $created_categories, $relationships);
//$this->set_mapping($mapping);
$this->set_repository_mapping($mapping, $old_collection_id);
next($created_collections);
$start++;
$inside_step_pointer++;
}
return $start;
return $inside_step_pointer;
}
private function create_collection_meta($file_fields, $Fields_Repository, $created_repository_fields,$created_categories, $relationships, $compound_id = null)
private function create_collection_meta(
$file_fields,
$Fields_Repository,
$Tainacan_Fields,
$created_repository_fields,
$created_categories,
$relationships,
$compound_id = null)
{
if($file_fields)
{
foreach($file_fields as $index => $meta_info)
foreach($file_fields as $index => $meta)
{
$meta_slug = $meta_info['slug'];
$old_field_id = $meta_info['id'];
$meta_slug = $meta->slug;
$old_field_id = $meta->id;
if(!in_array($meta_slug, $this->avoid) && !isset($created_repository_fields[$old_field_id]))
{
$newField = $this->set_fields_properties($meta_info, $created_categories, $relationships, $Fields_Repository, $compound_id, false);
$newField = $this->set_fields_properties(
$meta,
$created_categories,
$relationships,
$Fields_Repository,
$compound_id,
$created_repository_fields,
false,
$Tainacan_Fields);
$newField->set_collection($this->collection);
if($newField->validate())
{
$newField = $Fields_Repository->insert($newField);
$mapping[$newField->get_id()] = $file_fields[$index];
$mapping[$newField->get_id()] = $file_fields[$index]->name;
}
}else /*Map to respository fields*/
{
/*$fields = $Tainacan_Fields->fetch_by_collection( $this->collection, [], 'OBJECT' );
print_r($fields);exit();
foreach ($fields as $field)
if(isset($created_repository_fields[$old_field_id]))
{
if($field->WP_Post->post_name === 'title' || $field->WP_Post->post_name === 'description')
$new_id = $created_repository_fields[$old_field_id]['new_id'];
$mapping[$new_id] = $created_repository_fields[$old_field_id]['name'];
}else
{
$fields = $Tainacan_Fields->fetch_by_collection( $this->collection, [], 'OBJECT' );
foreach ($fields as $field)
{
$mapping[$field->get_id()] = $file_fields[$meta_name];
if(($field->WP_Post->post_name === 'title' || $field->WP_Post->post_name === 'description') &&
($meta_slug === 'socialdb_property_fixed_title' || $meta_slug === 'socialdb_property_fixed_description'))
{
$mapping[$field->get_id()] = $field->WP_Post->post_name;
}
}
}*/
}
}
}
}
return $mapping;
}
private function set_fields_properties($meta, $created_categories, $relationships, $Fields_Repository, $compound_id, $is_repository = true)
private function set_fields_properties(
$meta,
$created_categories,
$relationships,
$Fields_Repository,
$compound_id,
$created_repository_fields = null,
$is_repository = true,
$Tainacan_Fields = null)
{
$newField = new \Tainacan\Entities\Field();
if(!$is_repository) /*Is collections*/
{
$name = $meta->name;
$type = $meta->type;
}else /*Is repository*/
{
$name = $meta['name'];
$type = $this->define_type($meta['type']);
}
$name = $meta->name;
$type = $meta->type;
$type = $this->define_type($type);
$newField->set_name($name);
@ -297,13 +324,37 @@ class Old_Tainacan extends Importer
}
}else if(strcmp($type, "Compound") === 0)
{
$this->create_meta_repo($meta->metadata->children, $Fields_Repository, $created_categories, $relationships, $newField->get_id());
if($is_repository)
{
$this->create_meta_repo(
$meta->metadata->children,
$Fields_Repository,
$created_categories,
$relationships,
$newField->get_id());
}else
{
$this->create_collection_meta(
$meta->metadata->children,
$Fields_Repository,
$Tainacan_Fields,
$created_repository_fields,
$created_categories,
$relationships,
$newField->get_id());
}
}
/*Compound treatement*/
if($compound_id === null)
{
$newField->set_collection_id('default');
if($is_repository)
{
$newField->set_collection_id('default');
}else
{
$newField->set_collection($this->collection);
}
}else //Set compound as field parent
{
$newField->set_parent($compound_id);
@ -320,10 +371,10 @@ class Old_Tainacan extends Importer
{
$newField->set_default_value($meta->metadata->default_value);
}
if(!empty($meta->metadata->text_help))
/*if(!empty($meta->metadata->text_help))
{
/**/
}
}*/
if(!empty($meta->metadata->cardinality))
{
if($meta->metadata->cardinality > 1)
@ -340,7 +391,22 @@ class Old_Tainacan extends Importer
public function create_collection_items()
{
/*Use standard method*/
$created_collections = $this->read_from_file("collections");
if(!empty($created_collections))
{
$Repository_Collections = \Tainacan\Repositories\Collections::get_instance();
$collection_info = current($created_collections);
$new_collection_id = $collection_info['new_id'];
$old_collection_id = key($created_collections);
$collection = $Repository_Collections->fetch($new_collection_id);
$this->set_collection($collection);
$mapping = $this->get_repository_mapping($old_collection_id);
$this->set_mapping($mapping);
$this->process($this->get_start());
}
return false;
}
@ -365,7 +431,14 @@ class Old_Tainacan extends Importer
$fields = [];
foreach ($collection_metadata[0]->{'tab-properties'} as $metadata)
{
$fields[] = ['name' => $metadata->name, 'type' => $metadata->type, 'slug' => $metadata->slug, 'id' => $metadata->id];
$field_details_link = $fields_link . "/". $metadata->id;
$field_details = wp_remote_get($field_details_link);
$field_details = $this->verify_process_result($field_details);
if($field_details)
{
$fields[] = $field_details[0];
}
}
return $fields;
@ -408,21 +481,21 @@ class Old_Tainacan extends Importer
private function get_begin_end($items)
{
$start = $this->get_start();
$inside_step_pointer = $this->get_inside_step_pointer();
$total_items = count($items);
if($start >= $total_items)
if($inside_step_pointer >= $total_items)
{
return [false, false];
}
$end = $this->get_start() + $this->get_items_per_step();
$end = $this->get_inside_step_pointer() + $this->get_items_per_step();
if($end > $total_items)
{
$end = $total_items;
}
return [$start, $end];
return [$inside_step_pointer, $end];
}
private function add_all_terms($taxonomy_father, $children, $term_father = null)

Binary file not shown.

View File

@ -78,7 +78,7 @@ msgstr "Item"
#: admin/tainacan-admin-i18n.php:14
msgid "Metadata"
msgstr "Metada"
msgstr "Metadado"
#: admin/tainacan-admin-i18n.php:15
#: classes/repositories/class-tainacan-filters.php:98
@ -166,18 +166,16 @@ msgid "Not approve"
msgstr "Não aprovar"
#: admin/tainacan-admin-i18n.php:38
#, fuzzy
#| msgid "Add new Filter"
msgid "Add one item"
msgstr "Adicionar novo Filtro"
msgstr "Adicionar um item"
#: admin/tainacan-admin-i18n.php:39
msgid "Add items in bulk"
msgstr ""
msgstr "Adicionar itens em lote"
#: admin/tainacan-admin-i18n.php:40
msgid "Add items from an external source"
msgstr ""
msgstr "Adicionar itens de uma fonte externa"
#: admin/tainacan-admin-i18n.php:43
msgid "Publish"
@ -208,26 +206,20 @@ msgid "Visible only for editors"
msgstr "Visível apenas para Editores"
#: admin/tainacan-admin-i18n.php:52
#, fuzzy
#| msgid "Collections Page"
msgid "Repository Collections Page"
msgstr "Página de Coleções"
msgstr "Página de Coleções do repositório"
#: admin/tainacan-admin-i18n.php:53
msgid "Items Page"
msgstr "Página de Itens"
#: admin/tainacan-admin-i18n.php:54
#, fuzzy
#| msgid "Fields Page"
msgid "Repository Fields Page"
msgstr "Página de Metadados"
msgstr "Página de Metadados do repositório"
#: admin/tainacan-admin-i18n.php:55
#, fuzzy
#| msgid "Filters Page"
msgid "Repository Filters Page"
msgstr "Página de Filtros"
msgstr "Página de Filtros do repositório"
#: admin/tainacan-admin-i18n.php:56
msgid "Categories Page"
@ -236,13 +228,11 @@ msgstr "Página de Categorias"
# ESTÁ REPETIDO
#: admin/tainacan-admin-i18n.php:57
msgid "Terms Page"
msgstr "Página de Categorias"
msgstr "Página de Termos"
#: admin/tainacan-admin-i18n.php:58
#, fuzzy
#| msgid "Events Page"
msgid "Repository Events Page"
msgstr "Página de Eventos"
msgstr "Página de Eventos do repositório"
#: admin/tainacan-admin-i18n.php:59
msgid "Collection Page"
@ -257,10 +247,8 @@ msgid "Field Page"
msgstr "Página do Metadado"
#: admin/tainacan-admin-i18n.php:62
#, fuzzy
#| msgid "Collection Menu"
msgid "Collection Events"
msgstr "Menu da Coleção"
msgstr "Eventos da Coleção"
#: admin/tainacan-admin-i18n.php:65
msgid "Filter Page"
@ -287,10 +275,8 @@ msgid "Category Creation Page"
msgstr "Página de Criação da Categoria"
#: admin/tainacan-admin-i18n.php:71
#, fuzzy
#| msgid "Delete selected collections"
msgid "Create Item on Collection"
msgstr "Deletar Coleções selecionadas"
msgstr "Criar item na coleção"
#: admin/tainacan-admin-i18n.php:72
msgid "Filter Creation Page"
@ -299,7 +285,7 @@ msgstr "Página de Criação do Filtro"
#: admin/tainacan-admin-i18n.php:73
#: classes/repositories/class-tainacan-collections.php:209
msgid "Edit Collection"
msgstr ""
msgstr "Editar coleção"
#: admin/tainacan-admin-i18n.php:74
#: classes/repositories/class-tainacan-items.php:131
@ -315,44 +301,32 @@ msgid "Filter Edition Page"
msgstr "Página de Edição do Filtro"
#: admin/tainacan-admin-i18n.php:77
#, fuzzy
#| msgid "Filter Edition Page"
msgid "Field Edition Page"
msgstr "Página de Edição do Filtro"
msgstr "Página de Edição de Metadado"
#: admin/tainacan-admin-i18n.php:78
#, fuzzy
#| msgid "Edit Field"
msgid "Edit Fields of"
msgstr "Editar Campo"
msgstr "Editar metadados de"
#: admin/tainacan-admin-i18n.php:79
#, fuzzy
#| msgid "Edit Filter"
msgid "Edit Filters of"
msgstr "Editar Filtro"
msgstr "Editar filtros de"
#: admin/tainacan-admin-i18n.php:82
msgid "Clear"
msgstr ""
msgstr "Limpar"
#: admin/tainacan-admin-i18n.php:83
#, fuzzy
#| msgid "Select"
msgid "Selected"
msgstr "Selecionar"
msgstr "Selecionado"
#: admin/tainacan-admin-i18n.php:84
#, fuzzy
#| msgid "Search"
msgid "New Search"
msgstr "Buscar"
msgstr "Nova busca"
#: admin/tainacan-admin-i18n.php:85
#, fuzzy
#| msgid "No items found"
msgid "Items found"
msgstr "Nenhum item encontrado"
msgstr "Itens encontrados"
#: admin/tainacan-admin-i18n.php:86
msgid "Menu"
@ -946,10 +920,8 @@ msgid "Showing collections "
msgstr "Exibindo coleções "
#: admin/tainacan-admin-i18n.php:218
#, fuzzy
#| msgid "Showing categories"
msgid "Showing categories "
msgstr "Exibindo Categorias"
msgstr "Exibindo categorias"
#: admin/tainacan-admin-i18n.php:219
#, fuzzy
@ -963,7 +935,7 @@ msgstr " a"
#: admin/tainacan-admin-i18n.php:221
msgid " of "
msgstr " de"
msgstr "de"
#: admin/tainacan-admin-i18n.php:222
msgid "Created by: "
@ -994,10 +966,8 @@ msgid "Are you sure? There are filters not saved, changes will be lost."
msgstr ""
#: admin/tainacan-admin-i18n.php:229
#, fuzzy
#| msgid "The log description"
msgid "No description provided."
msgstr "A descrição da atividade"
msgstr "Nenhuma descrição fornecida"
#: admin/tainacan-admin-i18n.php:230
msgid "Are you sure? The category is not saved, changes will be lost."
@ -1032,10 +1002,8 @@ msgid "There is no field here yet."
msgstr ""
#: admin/tainacan-admin-i18n.php:237
#, fuzzy
#| msgid "The filter type"
msgid "There is no filter here yet."
msgstr "O tipo de filtro"
msgstr "Ainda não há um filtro configurado."
#: admin/tainacan-admin-i18n.php:238
msgid "Changes"
@ -1050,10 +1018,8 @@ msgid "The term name"
msgstr "O nome do termo"
#: admin/tainacan-admin-i18n.php:241
#, fuzzy
#| msgid "The parent of the term"
msgid "The description of the Term."
msgstr "O pai do termo"
msgstr "Descrição do termo"
#: admin/tainacan-admin-i18n.php:244
msgid "Text"
@ -1641,10 +1607,8 @@ msgid "Collection filters ordination"
msgstr ""
#: classes/repositories/class-tainacan-collections.php:158
#, fuzzy
#| msgid "No item was created in this collection."
msgid "Use page as the home page of this collection"
msgstr "Nenhum item foi criado nesta coleção."
msgstr "Usar página como página principal desse repositório"
#: classes/repositories/class-tainacan-collections.php:159
msgid "Value should be yes or no"
@ -2163,10 +2127,8 @@ msgid "Log collection relationship"
msgstr "Página de Criação da Coleção"
#: classes/repositories/class-tainacan-logs.php:119
#, fuzzy
#| msgid "The IDs of collection where the taxonomy is used"
msgid "The id of collection that this log is related."
msgstr "Os IDs da coleção onde a categoria é utilizada"
msgstr "o ID da coleção relacionada a este registro."
#: classes/repositories/class-tainacan-logs.php:131
#: classes/repositories/class-tainacan-logs.php:142
@ -2343,22 +2305,16 @@ msgid "The user is empty or invalid"
msgstr "O usuário está vazio ou inválido"
#: classes/repositories/class-tainacan-terms.php:84
#, fuzzy
#| msgid "The mask to be used in the field"
msgid "The image to be used in term header"
msgstr "A máscara deve ser utilizada no campo"
msgstr "Imagem para ser usada no cabeçalho do termo"
#: classes/repositories/class-tainacan-terms.php:91
#, fuzzy
#| msgid "Field type is empty"
msgid "Hide empty"
msgstr "Tipo de metadado está vazio"
msgstr "Esconder vazios"
#: classes/repositories/class-tainacan-terms.php:93
#, fuzzy
#| msgid "The item term IDs"
msgid "Hide empty terms"
msgstr "Os IDs de termos do item"
msgstr "Esconder termos vazios"
#: dev-interface/class-tainacan-dev-interface.php:78
msgid "Properties"
@ -2378,7 +2334,7 @@ msgstr "Valor"
#: exposers/types/class-tainacan-txt.php:35
#: exposers/types/class-tainacan-xml.php:48
msgid "item"
msgstr ""
msgstr "item"
#: helpers/class-tainacan-helpers-html.php:59
msgid "Select an option"