From 7b29fc77959953be612e3c940cd1d01c3489ca18 Mon Sep 17 00:00:00 2001 From: weryques Date: Wed, 21 Mar 2018 14:21:16 -0300 Subject: [PATCH] Crates category list page and fixes some errors --- .../edition/category-edition-form.vue | 16 +- .../edition/collection-edition-form.vue | 6 +- .../components/lists/categories-list.vue | 200 +++- .../components/navigation/primary-menu.vue | 2 +- src/admin/pages/lists/categories-page.vue | 197 +++- src/admin/tainacan-admin-i18n.php | 323 +++--- ...ss-tainacan-rest-taxonomies-controller.php | 24 +- .../class-tainacan-taxonomies.php | 1 - src/js/store/modules/category/actions.js | 35 + src/js/store/modules/category/getters.js | 7 + src/js/store/modules/category/index.js | 16 + src/js/store/modules/category/mutations.js | 7 + src/js/store/store.js | 4 +- src/languages/tainacan-pt_BR.mo | Bin 4243 -> 4339 bytes src/languages/tainacan-pt_BR.po | 963 ++++++++++-------- 15 files changed, 1187 insertions(+), 614 deletions(-) create mode 100644 src/js/store/modules/category/actions.js create mode 100644 src/js/store/modules/category/getters.js create mode 100644 src/js/store/modules/category/index.js create mode 100644 src/js/store/modules/category/mutations.js diff --git a/src/admin/components/edition/category-edition-form.vue b/src/admin/components/edition/category-edition-form.vue index a3493c1a0..960a5fc4d 100644 --- a/src/admin/components/edition/category-edition-form.vue +++ b/src/admin/components/edition/category-edition-form.vue @@ -1,17 +1,19 @@ diff --git a/src/admin/components/navigation/primary-menu.vue b/src/admin/components/navigation/primary-menu.vue index 5280fd0b7..3621a436c 100644 --- a/src/admin/components/navigation/primary-menu.vue +++ b/src/admin/components/navigation/primary-menu.vue @@ -40,7 +40,7 @@ {{ $i18n.getFrom('categories', 'name') }}
  • - {{ $i18n.getFrom('events', 'name') }} + {{ $i18n.get('events') }}
  • diff --git a/src/admin/pages/lists/categories-page.vue b/src/admin/pages/lists/categories-page.vue index 0c61b5d39..ea1c631ae 100644 --- a/src/admin/pages/lists/categories-page.vue +++ b/src/admin/pages/lists/categories-page.vue @@ -1,27 +1,200 @@ - diff --git a/src/admin/tainacan-admin-i18n.php b/src/admin/tainacan-admin-i18n.php index 076fefe38..6ae9956d0 100644 --- a/src/admin/tainacan-admin-i18n.php +++ b/src/admin/tainacan-admin-i18n.php @@ -1,170 +1,173 @@ - __('Repository', 'tainacan'), - 'collections' => __('Collections', 'tainacan'), - 'items' => __('Items', 'tainacan'), - 'fields' => __('Fields', 'tainacan'), - 'filters' => __('Filters', 'tainacan'), - 'categories' => __('Categories', 'tainacan'), - 'events' => __('Events', 'tainacan'), - 'collection' => __('Collection', 'tainacan'), - 'item' => __('Item', 'tainacan'), - 'field' => __('Field', 'tainacan'), - 'filter' => __('Filter', 'tainacan'), - 'category' => __('Category', 'tainacan'), - 'event' => __('Event', 'tainacan'), - - // Actions - 'edit' => __('Edit', 'tainacan'), - 'new' => __('New', 'tainacan'), - 'import' => __('Import', 'tainacan'), - 'export' => __('Export', 'tainacan'), - 'cancel' => __('Cancel', 'tainacan'), - 'save' => __('Save', 'tainacan'), - 'next' => __('Next', 'tainacan'), - 'see' => __('See', 'tainacan'), - 'search' => __('Search', 'tainacan'), - 'advanced_search' => __('Advanced Search', 'tainacan'), + // Tainacan common terms + 'repository' => __( 'Repository', 'tainacan' ), + 'collections' => __( 'Collections', 'tainacan' ), + 'items' => __( 'Items', 'tainacan' ), + 'fields' => __( 'Fields', 'tainacan' ), + 'filters' => __( 'Filters', 'tainacan' ), + 'categories' => __( 'Categories', 'tainacan' ), + 'events' => __( 'Events', 'tainacan' ), + 'collection' => __( 'Collection', 'tainacan' ), + 'item' => __( 'Item', 'tainacan' ), + 'field' => __( 'Field', 'tainacan' ), + 'filter' => __( 'Filter', 'tainacan' ), + 'category' => __( 'Category', 'tainacan' ), + 'event' => __( 'Event', 'tainacan' ), - // Wordpress Status - 'publish' => __('Publish', 'tainacan'), - 'draft' => __('Draft', 'tainacan'), - 'private' => __('Private', 'tainacan'), - 'trash' => __('Trash', 'tainacan'), - 'auto-draft' => __('Automatic Draft', 'tainacan'), - 'publish_visibility' => __('Visible to everyone', 'tainacan'), - 'private_visibility' => __('Visible only for editors', 'tainacan'), + // Actions + 'edit' => __( 'Edit', 'tainacan' ), + 'new' => __( 'New', 'tainacan' ), + 'import' => __( 'Import', 'tainacan' ), + 'export' => __( 'Export', 'tainacan' ), + 'cancel' => __( 'Cancel', 'tainacan' ), + 'save' => __( 'Save', 'tainacan' ), + 'next' => __( 'Next', 'tainacan' ), + 'see' => __( 'See', 'tainacan' ), + 'search' => __( 'Search', 'tainacan' ), + 'advanced_search' => __( 'Advanced Search', 'tainacan' ), - // Page Titles (used mainly on Router) - 'title_collections_page' => __('Collections Page', 'tainacan'), - 'title_items_page' => __('Items Page', 'tainacan'), - 'title_fields_page' => __('Fields Page', 'tainacan'), - 'title_filters_page' => __('Filters Page', 'tainacan'), - 'title_categories_page' => __('Categories Page', 'tainacan'), - 'title_terms_page' => __('Terms Page', 'tainacan'), - 'title_events_page' => __('Events Page', 'tainacan'), - 'title_collection_page' => __('Collection Page', 'tainacan'), - 'title_item_page' => __('Item Page', 'tainacan'), - 'title_field_page' => __('Field Page', 'tainacan'), - - /* translators: alkdjklasdj laksjd klsadj */ - 'title_filter_page' => __('Filter Page', 'tainacan'), - 'title_category_page' => __('Category Page', 'tainacan'), - 'title_term_page' => __('Term Page', 'tainacan'), - 'title_event_page' => __('Event Page', 'tainacan'), - 'title_create_collection' => __('Collection Creation Page', 'tainacan'), - 'title_create_category' => __('Category Creation Page', 'tainacan'), - 'title_create_item' => __('Item Creation Page', 'tainacan'), - 'title_create_filter' => __('Filter Creation Page', 'tainacan'), - 'title_collection_edition' => __('Collection Edition Page', 'tainacan'), - 'title_item_edition' => __('Item Edition Page', 'tainacan'), - 'title_category_edition' => __('Category Edition Page', 'tainacan'), - 'title_filter_edition' => __('Filter Edition Page', 'tainacan'), - 'title_collection_fields_edition' => __('Collection Fields Edition Page', 'tainacan'), + // Wordpress Status + 'publish' => __( 'Publish', 'tainacan' ), + 'draft' => __( 'Draft', 'tainacan' ), + 'private' => __( 'Private', 'tainacan' ), + 'trash' => __( 'Trash', 'tainacan' ), + 'auto-draft' => __( 'Automatic Draft', 'tainacan' ), + 'publish_visibility' => __( 'Visible to everyone', 'tainacan' ), + 'private_visibility' => __( 'Visible only for editors', 'tainacan' ), - // Labels (used mainly on Aria Labels and Inputs) - 'label_menu' => __('Menu', 'tainacan'), - 'label_main_menu' => __('Main Menu', 'tainacan'), - 'label_collection_menu' => __('Collection Menu', 'tainacan'), - 'label_title' => __('Title', 'tainacan'), - 'label_actions' => __('Actions', 'tainacan'), - 'label_name' => __('Name', 'tainacan'), - 'label_description' => __('Description', 'tainacan'), - 'label_status' => __('Status', 'tainacan'), - 'label_slug' => __('Slug', 'tainacan'), - 'label_image' => __('Image', 'tainacan'), - 'label_thumbnail' => __('Thumbnail', 'tainacan'), - 'label_button_view' => __('Button View', 'tainacan'), - 'label_button_edit' => __('Button Edit', 'tainacan'), - 'label_button_delete' => __('Button Delete', 'tainacan'), - 'label_button_edit_thumb' => __('Button Edit Thumbnail', 'tainacan'), - 'label_button_delete_thumb' => __('Button Delete Thumbnail', 'tainacan'), - 'label_collections_per_page' => __('Collections 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_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_required' => __('Required', 'tainacan'), - 'label_allow_multiple' => __('Allow multiple values', 'tainacan'), - 'label_default_value' => __('Default value', 'tainacan'), - 'label_unique_value' => __('Unique value', 'tainacan'), - 'label_yes' => __('Yes', 'tainacan'), - 'label_no' => __('No', 'tainacan'), - 'label_collection_related' => __('Collection Related', 'tainacan'), - 'label_fields_for_search' => __('Fields 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'), - 'label_category_allow_new_terms' => __('Allow new terms', 'tainacan'), - 'label_selectbox_init' => __('Select', 'tainacan'), - 'label_options' => __('Insert options', 'tainacan'), - 'label_attachments' => __('Attachments', 'tainacan'), - 'label_enabled' => __('Enabled', 'tainacan'), - 'label_disabled' => __('Disabled', 'tainacan'), - 'label_creation' => __('Creation', 'tainacan'), - 'label_collection_items' => __('Collection Items', 'tainacan'), - 'label_collection_fields' => __('Collection Fields', 'tainacan'), - 'label_collection_filters' => __('Collection Filters', 'tainacan'), - 'label_parent_term' => __('Parent Term', 'tainacan'), - 'label_add_new_term' => __('Add New Term', 'tainacan'), + // Page Titles (used mainly on Router) + 'title_collections_page' => __( 'Collections Page', 'tainacan' ), + 'title_items_page' => __( 'Items Page', 'tainacan' ), + 'title_fields_page' => __( 'Fields Page', 'tainacan' ), + 'title_filters_page' => __( 'Filters Page', 'tainacan' ), + 'title_categories_page' => __( 'Categories Page', 'tainacan' ), + 'title_terms_page' => __( 'Terms Page', 'tainacan' ), + 'title_events_page' => __( 'Events Page', 'tainacan' ), + 'title_collection_page' => __( 'Collection Page', 'tainacan' ), + 'title_item_page' => __( 'Item Page', 'tainacan' ), + 'title_field_page' => __( 'Field Page', 'tainacan' ), - // Instructions. More complex sentences to guide user and placeholders - 'instruction_dragndrop_fields_collection' => __('Drag and drop Fields here to Collection.', 'tainacan'), - 'instruction_dragndrop_filters_collection' => __('Drag and drop Fields to create Filters on Collection.', 'tainacan'), - 'instruction_dragndrop_fields_repository' => __('Drag and drop Fields here to Repository.', 'tainacan'), - 'instruction_dragndrop_filters_repository' => __('Drag and drop Fields to create Filters on Repository.', 'tainacan'), - 'instruction_delete_selected_collections' => __('Delete selected collections', 'tainacan'), - 'instruction_delete_selected_items' => __('Delete selected items', 'tainacan'), - 'instruction_image_upload_box' => __('Drop an image here or click to upload.', 'tainacan'), - 'instruction_select_a_status' => __('Select a status:', 'tainacan'), - 'instruction_select_a_filter_type' => __('Select a filter type:', 'tainacan'), + /* translators: alkdjklasdj laksjd klsadj */ + 'title_filter_page' => __( 'Filter Page', 'tainacan' ), + 'title_category_page' => __( 'Category Page', 'tainacan' ), + 'title_term_page' => __( 'Term Page', 'tainacan' ), + 'title_event_page' => __( 'Event Page', 'tainacan' ), + 'title_create_collection' => __( 'Collection Creation Page', 'tainacan' ), + 'title_create_category_page' => __( 'Category Creation Page', 'tainacan' ), + 'title_create_item' => __( 'Item Creation Page', 'tainacan' ), + 'title_create_filter' => __( 'Filter Creation Page', 'tainacan' ), + 'title_collection_edition' => __( 'Collection Edition Page', 'tainacan' ), + 'title_item_edition' => __( 'Item Edition Page', 'tainacan' ), + 'title_category_edition_page' => __( 'Category Edition Page', 'tainacan' ), + 'title_filter_edition' => __( 'Filter Edition Page', 'tainacan' ), + 'title_collection_fields_edition' => __( 'Collection Fields Edition Page', 'tainacan' ), - // Info. Other feedback to user. - 'info_name_is_required' => __('Name is required.', 'tainacan'), - 'info_no_collection_created' => __('No collection was created in this repository.', 'tainacan'), - 'info_no_item_created' => __('No item was created in this collection.', 'tainacan'), - 'info_error_deleting_collection' => __('Error on deleting collection.', 'tainacan'), - 'info_collection_deleted' => __('Collection deleted.', 'tainacan'), - 'info_item_deleted' => __('Item deleted.', 'tainacan'), - 'info_warning_collection_delete' => __('Do you really want to delete this collection?', 'tainacan'), - 'info_warning_item_delete' => __('Do you really want to delete this item?', '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_showing_items' => __('Showing items ', 'tainacan'), - 'info_showing_collections' => __('Showing collections ', 'tainacan'), - 'info_to' => __(' to ', 'tainacan'), - 'info_of' => __(' of ', 'tainacan'), - 'info_created_by' => __('Created by: ', 'tainacan'), - 'info_date' => __('Date: ', 'tainacan'), - 'info_not_saved' => __('Not saved ', 'tainacan'), + // Labels (used mainly on Aria Labels and Inputs) + 'label_menu' => __( 'Menu', 'tainacan' ), + 'label_main_menu' => __( 'Main Menu', 'tainacan' ), + 'label_collection_menu' => __( 'Collection Menu', 'tainacan' ), + 'label_title' => __( 'Title', 'tainacan' ), + 'label_actions' => __( 'Actions', 'tainacan' ), + 'label_name' => __( 'Name', 'tainacan' ), + 'label_description' => __( 'Description', 'tainacan' ), + 'label_status' => __( 'Status', 'tainacan' ), + 'label_slug' => __( 'Slug', 'tainacan' ), + 'label_image' => __( 'Image', 'tainacan' ), + 'label_thumbnail' => __( 'Thumbnail', 'tainacan' ), + 'label_button_view' => __( 'Button View', 'tainacan' ), + 'label_button_edit' => __( 'Button Edit', 'tainacan' ), + 'label_button_delete' => __( 'Button Delete', 'tainacan' ), + 'label_button_edit_thumb' => __( 'Button Edit Thumbnail', 'tainacan' ), + 'label_button_delete_thumb' => __( 'Button Delete Thumbnail', 'tainacan' ), + 'label_collections_per_page' => __( 'Collections per Page:', 'tainacan' ), + 'label_categories_per_page' => __( 'Categories 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_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_required' => __( 'Required', 'tainacan' ), + 'label_allow_multiple' => __( 'Allow multiple values', 'tainacan' ), + 'label_default_value' => __( 'Default value', 'tainacan' ), + 'label_unique_value' => __( 'Unique value', 'tainacan' ), + 'label_yes' => __( 'Yes', 'tainacan' ), + 'label_no' => __( 'No', 'tainacan' ), + 'label_collection_related' => __( 'Collection Related', 'tainacan' ), + 'label_fields_for_search' => __( 'Fields 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' ), + 'label_category_allow_new_terms' => __( 'Allow new terms', 'tainacan' ), + 'label_selectbox_init' => __( 'Select', 'tainacan' ), + 'label_options' => __( 'Insert options', 'tainacan' ), + 'label_attachments' => __( 'Attachments', 'tainacan' ), + 'label_enabled' => __( 'Enabled', 'tainacan' ), + 'label_disabled' => __( 'Disabled', 'tainacan' ), + 'label_creation' => __( 'Creation', 'tainacan' ), + 'label_collection_items' => __( 'Collection Items', 'tainacan' ), + 'label_collection_fields' => __( 'Collection Fields', 'tainacan' ), + 'label_collection_filters' => __( 'Collection Filters', 'tainacan' ), + 'label_parent_term' => __( 'Parent Term', 'tainacan' ), + 'label_add_new_term' => __( 'Add New Term', 'tainacan' ), - // Tainacan Field Types - 'tainacan-text' => __('Text', 'tainacan'), - 'tainacan-textarea' => __('Text area', 'tainacan'), - 'tainacan-date' => __('Date', 'tainacan'), - 'tainacan-numeric' => __('Numeric', 'tainacan'), - 'tainacan-selectbox' => __('Select box', 'tainacan'), - 'tainacan-relationship' => __('Relationship', 'tainacan'), - 'tainacan-category' => __('Category', 'tainacan'), + // Instructions. More complex sentences to guide user and placeholders + 'instruction_dragndrop_fields_collection' => __( 'Drag and drop Fields here to Collection.', 'tainacan' ), + 'instruction_dragndrop_filters_collection' => __( 'Drag and drop Fields to create Filters on Collection.', 'tainacan' ), + 'instruction_dragndrop_fields_repository' => __( 'Drag and drop Fields here to Repository.', 'tainacan' ), + 'instruction_dragndrop_filters_repository' => __( 'Drag and drop Fields to create Filters on Repository.', 'tainacan' ), + 'instruction_delete_selected_collections' => __( 'Delete selected collections', 'tainacan' ), + 'instruction_delete_selected_items' => __( 'Delete selected items', 'tainacan' ), + 'instruction_image_upload_box' => __( 'Drop an image here or click to upload.', 'tainacan' ), + 'instruction_select_a_status' => __( 'Select a status:', 'tainacan' ), + 'instruction_select_a_filter_type' => __( 'Select a filter type:', 'tainacan' ), - // Tainacan Filter Types - 'tainacan-filter-custom-interval' => __('Custom Interval', 'tainacan'), - 'tainacan-filter-selectbox' => __('Select Box', 'tainacan'), - 'tainacan-filter-autocomplete' => __('Autocomplete', 'tainacan'), - 'tainacan-filter-taginput' => __('Tag Input', 'tainacan'), - 'tainacan-filter-checkbox' => __('Check Box', 'tainacan'), - 'tainacan-filter-category-taginput' => __('Category Tag Input', 'tainacan'), - 'tainacan-filter-category-checkbox' => __('Category Check Box', 'tainacan'), - 'tainacan-filter-category-selectbox' => __('Category Select Box', 'tainacan') + // Info. Other feedback to user. + 'info_name_is_required' => __( 'Name is required.', 'tainacan' ), + 'info_no_collection_created' => __( 'No collection was created in this repository.', 'tainacan' ), + 'info_no_category_created' => __( 'No category was created in this repository.', 'tainacan' ), + 'info_no_item_created' => __( 'No item was created in this collection.', 'tainacan' ), + 'info_error_deleting_collection' => __( 'Error on deleting collection.', 'tainacan' ), + 'info_collection_deleted' => __( 'Collection deleted.', 'tainacan' ), + 'info_item_deleted' => __( 'Item deleted.', 'tainacan' ), + 'info_warning_collection_delete' => __( 'Do you really want to delete this collection?', 'tainacan' ), + 'info_warning_item_delete' => __( 'Do you really want to delete this item?', '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_showing_items' => __( 'Showing items ', 'tainacan' ), + 'info_showing_collections' => __( 'Showing collections ', 'tainacan' ), + 'info_showing_categories' => __( 'Showing categories ', 'tainacan' ), + 'info_to' => __( ' to ', 'tainacan' ), + 'info_of' => __( ' of ', 'tainacan' ), + 'info_created_by' => __( 'Created by: ', 'tainacan' ), + 'info_date' => __( 'Date: ', 'tainacan' ), + 'info_not_saved' => __( 'Not saved ', 'tainacan' ), + + // Tainacan Field Types + 'tainacan-text' => __( 'Text', 'tainacan' ), + 'tainacan-textarea' => __( 'Text area', 'tainacan' ), + 'tainacan-date' => __( 'Date', 'tainacan' ), + 'tainacan-numeric' => __( 'Numeric', 'tainacan' ), + 'tainacan-selectbox' => __( 'Select box', 'tainacan' ), + 'tainacan-relationship' => __( 'Relationship', 'tainacan' ), + 'tainacan-category' => __( 'Category', 'tainacan' ), + + // Tainacan Filter Types + 'tainacan-filter-custom-interval' => __( 'Custom Interval', 'tainacan' ), + 'tainacan-filter-selectbox' => __( 'Select Box', 'tainacan' ), + 'tainacan-filter-autocomplete' => __( 'Autocomplete', 'tainacan' ), + 'tainacan-filter-taginput' => __( 'Tag Input', 'tainacan' ), + 'tainacan-filter-checkbox' => __( 'Check Box', 'tainacan' ), + 'tainacan-filter-category-taginput' => __( 'Category Tag Input', 'tainacan' ), + 'tainacan-filter-category-checkbox' => __( 'Category Check Box', 'tainacan' ), + 'tainacan-filter-category-selectbox' => __( 'Category Select Box', 'tainacan' ) ] - ?> \ No newline at end of file +?> \ No newline at end of file diff --git a/src/api/endpoints/class-tainacan-rest-taxonomies-controller.php b/src/api/endpoints/class-tainacan-rest-taxonomies-controller.php index dd7748c9a..5df724943 100644 --- a/src/api/endpoints/class-tainacan-rest-taxonomies-controller.php +++ b/src/api/endpoints/class-tainacan-rest-taxonomies-controller.php @@ -227,14 +227,30 @@ class TAINACAN_REST_Taxonomies_Controller extends TAINACAN_REST_Controller { public function get_items( $request ) { $args = $this->prepare_filters($request); - $taxonomies = $this->taxonomy_repository->fetch($args, 'OBJECT'); + $taxonomies = $this->taxonomy_repository->fetch($args); $response = []; - foreach ($taxonomies as $taxonomy) { - array_push($response, $this->prepare_item_for_response( $taxonomy, $request )); + if($taxonomies->have_posts()){ + while ($taxonomies->have_posts()){ + $taxonomies->the_post(); + + $taxonomy = new Entities\Taxonomy($taxonomies->post); + + array_push($response, $this->prepare_item_for_response($taxonomy, $request)); + } + + wp_reset_postdata(); } - return new WP_REST_Response($response, 200); + $total_taxonomies = (int) $taxonomies->found_posts; + $max_pages = ceil($total_taxonomies / (int) $taxonomies->query_vars['posts_per_page']); + + $rest_response = new WP_REST_Response($response, 200); + + $rest_response->header('X-WP-Total', $total_taxonomies); + $rest_response->header('X-WP-TotalPages', (int) $max_pages); + + return $rest_response; } /** diff --git a/src/classes/repositories/class-tainacan-taxonomies.php b/src/classes/repositories/class-tainacan-taxonomies.php index d40b8db59..704aaa590 100644 --- a/src/classes/repositories/class-tainacan-taxonomies.php +++ b/src/classes/repositories/class-tainacan-taxonomies.php @@ -191,7 +191,6 @@ class Taxonomies extends Repository { $args = array_merge([ 'posts_per_page' => -1, - 'post_status' => 'publish' ], $args); $args = $this->parse_fetch_args($args); diff --git a/src/js/store/modules/category/actions.js b/src/js/store/modules/category/actions.js new file mode 100644 index 000000000..cbb6e143b --- /dev/null +++ b/src/js/store/modules/category/actions.js @@ -0,0 +1,35 @@ +import axios from '../../../axios/axios' + +export const createCategory = ({commit}, category) => { + return new Promise(( resolve, reject ) => { + axios.tainacan.post('/taxonomies/', { + name: category.name, + description: category.description, + status: category.status, + slug: category.slug, + allow_insert: category.allow_insert + }) + .then( res => { + commit('setCategory', category); + resolve( res.data ); + }) + .catch(error => { + reject( error.response ); + }); + }); +}; + +export const fetchCategories = ({ commit }, { page, categoriesPerPage } ) => { + return new Promise((resolve, reject) => { + axios.tainacan.get('/taxonomies?paged='+ page +'&perpage='+ categoriesPerPage) + .then(res => { + let categories = res.data; + commit('setCategories', categories); + resolve({'categories': categories, 'total': res.headers['x-wp-total'] }); + }) + .catch(error => { + console.log(error); + reject(error); + }); + }); +}; \ No newline at end of file diff --git a/src/js/store/modules/category/getters.js b/src/js/store/modules/category/getters.js new file mode 100644 index 000000000..0d19ddd31 --- /dev/null +++ b/src/js/store/modules/category/getters.js @@ -0,0 +1,7 @@ +export const getCategory = state => { + return state.category; +}; + +export const getCategories = state => { + return state.categories; +}; \ No newline at end of file diff --git a/src/js/store/modules/category/index.js b/src/js/store/modules/category/index.js new file mode 100644 index 000000000..4c1a81d27 --- /dev/null +++ b/src/js/store/modules/category/index.js @@ -0,0 +1,16 @@ +import * as actions from './actions'; +import * as getters from './getters'; +import * as mutations from './mutations'; + +const state = { + categories: [], + category: null, +}; + +export default { + namespaced: true, + state, + mutations, + actions, + getters +} \ No newline at end of file diff --git a/src/js/store/modules/category/mutations.js b/src/js/store/modules/category/mutations.js new file mode 100644 index 000000000..0e10c90da --- /dev/null +++ b/src/js/store/modules/category/mutations.js @@ -0,0 +1,7 @@ +export const setCategory = (state, category) => { + state.category = category; +}; + +export const setCategories = (state, categories) => { + state.categories = categories; +}; \ No newline at end of file diff --git a/src/js/store/store.js b/src/js/store/store.js index 32dbeecaa..500b86ca5 100644 --- a/src/js/store/store.js +++ b/src/js/store/store.js @@ -6,6 +6,7 @@ import collection from './modules/collection/'; import fields from './modules/fields/'; import filter from './modules/filter/'; import search from './modules/search/'; +import category from './modules/category/' Vue.use(Vuex); @@ -15,6 +16,7 @@ export default new Vuex.Store({ collection, fields, filter, - search + search, + category, } }) \ No newline at end of file diff --git a/src/languages/tainacan-pt_BR.mo b/src/languages/tainacan-pt_BR.mo index 2c31df38dfeb88a1ed3b3aec551680d4748d021c..1f9496026a2e7470f131cdc3df06a76370b9ce71 100644 GIT binary patch delta 1387 zcmXZaO-PhM9LMol-8Hq{(zQ%8YgNoN7I#%ljRaj^67f_S9@pG-!FEeU^RyHN5|M{B z2tx8;cqk#1i0TmbaSH7gr$7m|Yk|57y%zY{$LWZM}&5sgGh7-bVGG#@+bH`V6_v8(x{l zB+PpX3bcml_#Ja`6BW?K>KC;2Q@D?M3+7;t{eB4vX~xmb z{N@@31-yfrU<#Gcee~iCX5%7e;5$_RRa63Ns6YQ^zi*+&Z(DaTmAaF`nmFB>g$V`7 zqo4sLs05Co22`RFsJ88G$ZfiKY20~KBE8lD%%>hhZOMeK&*2x&)eqg>-~{q>rrFjzQG48t%w-0#2uIO}_fYYl z+wUtL)?Xby*$&%yoO%JXY02AB1A0&s#!wTCqYmGsZJ$FWvVdB_m)6&)ILoL%|BPDE zbyWY~2?|=m9n>jxu?z~3iyByH>y@Y#sl`G(gX(_;75F+T@GaE%Y19O>sI8qxjbFe5 zTt#k^_`zEV{6PhD@KPWzl9MS#1*oysTN_amhfqu1iR_j+hf1K=8bzI@%c!j!vF#Jc z-DoCx>rZD;0T)mczCb1L3bh3*sEpUqf!el~y_lyX>2Z~L+9>I& zz0$NVjPY4BAAf_45twZAIp3)DB%s2m6^dNM0g9JPye?yc0E)~nIpXsj>p3)xWN J;bd9X;9t#1ikbib delta 1294 zcmXZaOKeP09LMqhv@_b7&ghG3QD*wcP^m6VScqr!6*eVAv?5(-(g-3EEHH`Aq6tEB zH5Q(Ug~Wo$n1v={RT2x2h(#9~2@5Gw@hFK!eSiFK?!BM$zxSN~|J-xW_f(L|PF96S zjiZ}uF;{<)*#KS*bK^+PF)P6oCU7~<#Wh%to$fB2PdtbfcoNnBJeJ`V_cn4`o?FZ; zYhyH&XdFxN4c6c!D&bF5qB3T|0IS1VY{CV&4wv9gRGy=54psOPYC<BW zy{4g$o%r{F!l*(YklHqlN;Knf5wnaCM^XLCQT-O8`lUQ>#d*XTti~RHzZXemLl~#N z9igFwr%{P=s0p3LD!ho5cnhOgK=pr&n!q^f%U}BYcc}4G?lcw?|3DS~?J8MT2})^b zKs9OtwWtA0J#Iu!YvHE;8Po(exE)wWycP8;_IsSe2kfWosKPtq|9@p4Y7Y&?S%1y^ z1P`=SBdASy4Yg!r-tjqV54=T9;1lu@HskRu>fgrbL@i5V3R^IV+fexr`uj8f{#=6f zSBJYiSb;B4OZ^8mAi*?MumM$|6}9Qw{dpg1B7>-vJM11q6vB<6Ex|;1ZM2iPfy;vWNIKD>7DpS`rl2>ns&X@} oBv&(+j_zPIk`8s{A4QHA2VK$6`TkhCD3r\n" -"POT-Creation-Date: 2018-03-12 17:22-0300\n" +"POT-Creation-Date: 2018-03-21 09:48-0300\n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: MediaLab\n" @@ -20,7 +20,7 @@ msgstr "" "esc_attr_e;esc_attr_x:1,2c;esc_attr__;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;" "_x:1,2c;_n:1,2;_n_noop:1,2;__ngettext:1,2;__ngettext_noop:1,2;_c,_nc:4c,1,2\n" "X-Poedit-Basepath: ..\n" -"X-Generator: Poedit 2.0.4\n" +"X-Generator: Poedit 2.0.6\n" "X-Poedit-SearchPath-0: .\n" #: admin/class-tainacan-admin.php:22 admin/class-tainacan-admin.php:23 @@ -32,25 +32,26 @@ msgid "Repository" msgstr "Repositório" #: admin/tainacan-admin-i18n.php:6 -#: classes/repositories/class-tainacan-collections.php:167 -#: classes/repositories/class-tainacan-collections.php:178 +#: classes/repositories/class-tainacan-collections.php:155 +#: classes/repositories/class-tainacan-collections.php:166 #: classes/repositories/class-tainacan-taxonomies.php:58 msgid "Collections" msgstr "Coleções" #: admin/tainacan-admin-i18n.php:7 -#: classes/entities/class-tainacan-collection.php:52 +#: classes/repositories/class-tainacan-items.php:89 msgid "Items" msgstr "Itens" #: admin/tainacan-admin-i18n.php:8 -#: classes/repositories/class-tainacan-fields.php:189 +#: classes/repositories/class-tainacan-fields.php:190 +#: classes/repositories/class-tainacan-fields.php:201 msgid "Fields" msgstr "Campos" #: admin/tainacan-admin-i18n.php:9 -#: classes/repositories/class-tainacan-filters.php:78 -#: classes/repositories/class-tainacan-filters.php:89 +#: classes/repositories/class-tainacan-filters.php:83 +#: classes/repositories/class-tainacan-filters.php:94 msgid "Filters" msgstr "Filtros" @@ -63,34 +64,33 @@ msgid "Events" msgstr "Eventos" #: admin/tainacan-admin-i18n.php:12 -#: classes/repositories/class-tainacan-collections.php:168 -#: classes/repositories/class-tainacan-fields.php:151 -#: classes/repositories/class-tainacan-filters.php:54 -#: classes/repositories/class-tainacan-items.php:38 +#: classes/repositories/class-tainacan-collections.php:156 +#: classes/repositories/class-tainacan-fields.php:157 +#: classes/repositories/class-tainacan-filters.php:55 +#: classes/repositories/class-tainacan-items.php:40 msgid "Collection" msgstr "Coleção" #: admin/tainacan-admin-i18n.php:13 -#: classes/entities/class-tainacan-collection.php:53 +#: classes/repositories/class-tainacan-items.php:90 msgid "Item" msgstr "Item" #: admin/tainacan-admin-i18n.php:14 -#: classes/repositories/class-tainacan-fields.php:178 -#: classes/repositories/class-tainacan-fields.php:179 -#: classes/repositories/class-tainacan-filters.php:68 +#: classes/repositories/class-tainacan-fields.php:191 +#: classes/repositories/class-tainacan-filters.php:69 #: dev-interface/class-tainacan-dev-interface.php:103 -#: dev-interface/class-tainacan-dev-interface.php:252 -#: dev-interface/class-tainacan-dev-interface.php:322 +#: dev-interface/class-tainacan-dev-interface.php:244 +#: dev-interface/class-tainacan-dev-interface.php:314 msgid "Field" msgstr "Campo" #: admin/tainacan-admin-i18n.php:15 -#: classes/repositories/class-tainacan-filters.php:79 +#: classes/repositories/class-tainacan-filters.php:84 msgid "Filter" msgstr "Filtro" -#: admin/tainacan-admin-i18n.php:16 admin/tainacan-admin-i18n.php:137 +#: admin/tainacan-admin-i18n.php:16 admin/tainacan-admin-i18n.php:159 msgid "Category" msgstr "Categoria" @@ -123,423 +123,555 @@ msgid "Save" msgstr "Salvar" #: admin/tainacan-admin-i18n.php:26 +msgid "Next" +msgstr "" + +#: admin/tainacan-admin-i18n.php:27 msgid "See" msgstr "Ver" -#: admin/tainacan-admin-i18n.php:27 +#: admin/tainacan-admin-i18n.php:28 msgid "Search" msgstr "Buscar" -#: admin/tainacan-admin-i18n.php:28 +#: admin/tainacan-admin-i18n.php:29 msgid "Advanced Search" msgstr "Busca Avançada" -#: admin/tainacan-admin-i18n.php:31 +#: admin/tainacan-admin-i18n.php:32 msgid "Publish" msgstr "Publicado" -#: admin/tainacan-admin-i18n.php:32 +#: admin/tainacan-admin-i18n.php:33 msgid "Draft" msgstr "Rascunho" -#: admin/tainacan-admin-i18n.php:33 +#: admin/tainacan-admin-i18n.php:34 msgid "Private" msgstr "Privado" -#: admin/tainacan-admin-i18n.php:34 +#: admin/tainacan-admin-i18n.php:35 msgid "Trash" msgstr "Lixo" -#: admin/tainacan-admin-i18n.php:35 +#: admin/tainacan-admin-i18n.php:36 msgid "Automatic Draft" msgstr "Rascunho automático" +#: admin/tainacan-admin-i18n.php:37 +msgid "Visible to everyone" +msgstr "" + #: admin/tainacan-admin-i18n.php:38 +msgid "Visible only for editors" +msgstr "" + +#: admin/tainacan-admin-i18n.php:41 msgid "Collections Page" msgstr "Página de Coleções" -#: admin/tainacan-admin-i18n.php:39 +#: admin/tainacan-admin-i18n.php:42 msgid "Items Page" msgstr "Página de Itens" -#: admin/tainacan-admin-i18n.php:40 +#: admin/tainacan-admin-i18n.php:43 msgid "Fields Page" msgstr "Página de Campos" -#: admin/tainacan-admin-i18n.php:41 +#: admin/tainacan-admin-i18n.php:44 msgid "Filters Page" msgstr "Página de Filtros" -#: admin/tainacan-admin-i18n.php:42 +#: admin/tainacan-admin-i18n.php:45 msgid "Categories Page" msgstr "Página de Categorias" -#: admin/tainacan-admin-i18n.php:43 +#: admin/tainacan-admin-i18n.php:46 msgid "Terms Page" msgstr "Página de Campos" -#: admin/tainacan-admin-i18n.php:44 +#: admin/tainacan-admin-i18n.php:47 msgid "Events Page" msgstr "Página de Eventos" -#: admin/tainacan-admin-i18n.php:45 +#: admin/tainacan-admin-i18n.php:48 msgid "Collection Page" msgstr "Página da Coleção" -#: admin/tainacan-admin-i18n.php:46 +#: admin/tainacan-admin-i18n.php:49 msgid "Item Page" msgstr "Página do Item" -#: admin/tainacan-admin-i18n.php:47 +#: admin/tainacan-admin-i18n.php:50 msgid "Field Page" msgstr "Página do Campo" -#: admin/tainacan-admin-i18n.php:48 +#: admin/tainacan-admin-i18n.php:53 msgid "Filter Page" msgstr "Págia do Filtro" -#: admin/tainacan-admin-i18n.php:49 +#: admin/tainacan-admin-i18n.php:54 msgid "Category Page" msgstr "Página da Categoria" -#: admin/tainacan-admin-i18n.php:50 +#: admin/tainacan-admin-i18n.php:55 msgid "Term Page" msgstr "Página do Termo" -#: admin/tainacan-admin-i18n.php:51 +#: admin/tainacan-admin-i18n.php:56 msgid "Event Page" msgstr "Página do Evento" -#: admin/tainacan-admin-i18n.php:52 +#: admin/tainacan-admin-i18n.php:57 msgid "Collection Creation Page" msgstr "Página de Criação da Coleção" -#: admin/tainacan-admin-i18n.php:53 +#: admin/tainacan-admin-i18n.php:58 msgid "Category Creation Page" msgstr "Página de Criação da Categoria" -#: admin/tainacan-admin-i18n.php:54 +#: admin/tainacan-admin-i18n.php:59 msgid "Item Creation Page" msgstr "Página de Criação do Item" -#: admin/tainacan-admin-i18n.php:55 +#: admin/tainacan-admin-i18n.php:60 msgid "Filter Creation Page" msgstr "Página de Criação do Item" -#: admin/tainacan-admin-i18n.php:56 +#: admin/tainacan-admin-i18n.php:61 msgid "Collection Edition Page" msgstr "Página de Edição da Coleção" -#: admin/tainacan-admin-i18n.php:57 +#: admin/tainacan-admin-i18n.php:62 msgid "Item Edition Page" msgstr "Página de Edição do Item" -#: admin/tainacan-admin-i18n.php:58 +#: admin/tainacan-admin-i18n.php:63 msgid "Category Edition Page" msgstr "Página de Edição da Categoria" -#: admin/tainacan-admin-i18n.php:59 +#: admin/tainacan-admin-i18n.php:64 msgid "Filter Edition Page" msgstr "Página de Edição do Filtro" -#: admin/tainacan-admin-i18n.php:60 +#: admin/tainacan-admin-i18n.php:65 msgid "Collection Fields Edition Page" msgstr "Página de Edição dos Campos da Coleção" -#: admin/tainacan-admin-i18n.php:63 +#: admin/tainacan-admin-i18n.php:68 msgid "Menu" msgstr "Menu" -#: admin/tainacan-admin-i18n.php:64 +#: admin/tainacan-admin-i18n.php:69 msgid "Main Menu" msgstr "Menu Principal" -#: admin/tainacan-admin-i18n.php:65 +#: admin/tainacan-admin-i18n.php:70 msgid "Collection Menu" msgstr "Menu da Coleção" -#: admin/tainacan-admin-i18n.php:66 -#: classes/repositories/class-tainacan-items.php:15 +#: admin/tainacan-admin-i18n.php:71 +#: classes/repositories/class-tainacan-items.php:17 #: classes/repositories/class-tainacan-logs.php:26 msgid "Title" msgstr "Título" -#: admin/tainacan-admin-i18n.php:67 +#: admin/tainacan-admin-i18n.php:72 msgid "Actions" msgstr "Ações" -#: admin/tainacan-admin-i18n.php:68 -#: classes/repositories/class-tainacan-collections.php:26 -#: classes/repositories/class-tainacan-fields.php:36 +#: admin/tainacan-admin-i18n.php:73 +#: classes/repositories/class-tainacan-collections.php:28 +#: classes/repositories/class-tainacan-fields.php:39 #: classes/repositories/class-tainacan-filters.php:17 #: classes/repositories/class-tainacan-taxonomies.php:26 #: classes/repositories/class-tainacan-terms.php:27 msgid "Name" msgstr "Nome" -#: admin/tainacan-admin-i18n.php:69 -#: classes/repositories/class-tainacan-collections.php:96 -#: classes/repositories/class-tainacan-fields.php:67 +#: admin/tainacan-admin-i18n.php:74 +#: classes/repositories/class-tainacan-collections.php:80 +#: classes/repositories/class-tainacan-fields.php:71 #: classes/repositories/class-tainacan-filters.php:32 -#: classes/repositories/class-tainacan-items.php:30 +#: classes/repositories/class-tainacan-items.php:32 #: classes/repositories/class-tainacan-logs.php:48 #: classes/repositories/class-tainacan-taxonomies.php:34 #: classes/repositories/class-tainacan-terms.php:43 msgid "Description" msgstr "Decrição" -#: admin/tainacan-admin-i18n.php:70 -#: classes/repositories/class-tainacan-collections.php:33 -#: classes/repositories/class-tainacan-items.php:23 -#: classes/repositories/class-tainacan-repository.php:253 -#: classes/repositories/class-tainacan-repository.php:255 +#: admin/tainacan-admin-i18n.php:75 +#: classes/repositories/class-tainacan-collections.php:35 +#: classes/repositories/class-tainacan-items.php:25 +#: classes/repositories/class-tainacan-repository.php:274 +#: classes/repositories/class-tainacan-repository.php:276 msgid "Status" msgstr "Status" -#: admin/tainacan-admin-i18n.php:71 +#: admin/tainacan-admin-i18n.php:76 +#: classes/repositories/class-tainacan-collections.php:88 +#: classes/repositories/class-tainacan-fields.php:47 +#: classes/repositories/class-tainacan-logs.php:56 +#: classes/repositories/class-tainacan-taxonomies.php:42 +msgid "Slug" +msgstr "" + +#: admin/tainacan-admin-i18n.php:77 msgid "Image" msgstr "Imagem" -#: admin/tainacan-admin-i18n.php:72 +#: admin/tainacan-admin-i18n.php:78 +msgid "Thumbnail" +msgstr "" + +#: admin/tainacan-admin-i18n.php:79 msgid "Button View" msgstr "Botão Ver" -#: admin/tainacan-admin-i18n.php:73 +#: admin/tainacan-admin-i18n.php:80 msgid "Button Edit" msgstr "Botão Editar" -#: admin/tainacan-admin-i18n.php:74 +#: admin/tainacan-admin-i18n.php:81 msgid "Button Delete" msgstr "Botão Deletar" -#: admin/tainacan-admin-i18n.php:75 +#: admin/tainacan-admin-i18n.php:82 +#, fuzzy +#| msgid "Button Edit" +msgid "Button Edit Thumbnail" +msgstr "Botão Editar" + +#: admin/tainacan-admin-i18n.php:83 +#, fuzzy +#| msgid "Button Delete" +msgid "Button Delete Thumbnail" +msgstr "Botão Deletar" + +#: admin/tainacan-admin-i18n.php:84 msgid "Collections per Page:" msgstr "Coleções por Página:" -#: admin/tainacan-admin-i18n.php:76 +#: admin/tainacan-admin-i18n.php:85 msgid "Items per Page:" msgstr "Items por Página:" -#: admin/tainacan-admin-i18n.php:77 +#: admin/tainacan-admin-i18n.php:86 msgid "Active Fields" msgstr "Campos Ativos" -#: admin/tainacan-admin-i18n.php:78 +#: admin/tainacan-admin-i18n.php:87 msgid "Available Fields" msgstr "Campos Disponíveis" -#: admin/tainacan-admin-i18n.php:79 +#: admin/tainacan-admin-i18n.php:88 msgid "Available Field Types" msgstr "Tipos de Campos Disponíveis" -#: admin/tainacan-admin-i18n.php:80 +#: admin/tainacan-admin-i18n.php:89 msgid "Active Filters" msgstr "Filtros Ativos" -#: admin/tainacan-admin-i18n.php:81 +#: admin/tainacan-admin-i18n.php:90 +#, fuzzy +#| msgid "Filter Page" +msgid "Filter Type" +msgstr "Págia do Filtro" + +#: admin/tainacan-admin-i18n.php:91 msgid "Available Filters" msgstr "" -#: admin/tainacan-admin-i18n.php:82 +#: admin/tainacan-admin-i18n.php:92 msgid "Available Filter Types" msgstr "" -#: admin/tainacan-admin-i18n.php:83 +#: admin/tainacan-admin-i18n.php:93 msgid "per Page" msgstr "" -#: admin/tainacan-admin-i18n.php:84 +#: admin/tainacan-admin-i18n.php:94 msgid "Fields on table" msgstr "" -#: admin/tainacan-admin-i18n.php:85 -#: classes/repositories/class-tainacan-fields.php:84 +#: admin/tainacan-admin-i18n.php:95 +#: classes/repositories/class-tainacan-fields.php:88 msgid "Required" msgstr "" -#: admin/tainacan-admin-i18n.php:86 +#: admin/tainacan-admin-i18n.php:96 msgid "Allow multiple values" msgstr "" -#: admin/tainacan-admin-i18n.php:87 -#: classes/repositories/class-tainacan-fields.php:137 +#: admin/tainacan-admin-i18n.php:97 +#: classes/repositories/class-tainacan-fields.php:143 msgid "Default value" msgstr "" -#: admin/tainacan-admin-i18n.php:88 +#: admin/tainacan-admin-i18n.php:98 msgid "Unique value" msgstr "" -#: admin/tainacan-admin-i18n.php:89 +#: admin/tainacan-admin-i18n.php:99 msgid "Yes" msgstr "" -#: admin/tainacan-admin-i18n.php:90 +#: admin/tainacan-admin-i18n.php:100 msgid "No" msgstr "" -#: admin/tainacan-admin-i18n.php:91 +#: admin/tainacan-admin-i18n.php:101 msgid "Collection Related" msgstr "" -#: admin/tainacan-admin-i18n.php:92 +#: admin/tainacan-admin-i18n.php:102 msgid "Fields for search" msgstr "" -#: admin/tainacan-admin-i18n.php:93 +#: admin/tainacan-admin-i18n.php:103 msgid "Allow repeated items" msgstr "" -#: admin/tainacan-admin-i18n.php:94 +#: admin/tainacan-admin-i18n.php:104 msgid "Select category" msgstr "" -#: admin/tainacan-admin-i18n.php:95 +#: admin/tainacan-admin-i18n.php:105 msgid "Input type" msgstr "" -#: admin/tainacan-admin-i18n.php:96 +#: admin/tainacan-admin-i18n.php:106 msgid "Allow new terms" msgstr "" -#: admin/tainacan-admin-i18n.php:97 +#: admin/tainacan-admin-i18n.php:107 msgid "Select" msgstr "" -#: admin/tainacan-admin-i18n.php:98 +#: admin/tainacan-admin-i18n.php:108 msgid "Insert options" msgstr "" -#: admin/tainacan-admin-i18n.php:99 -#: classes/repositories/class-tainacan-collections.php:76 -#: classes/repositories/class-tainacan-items.php:81 +#: admin/tainacan-admin-i18n.php:109 msgid "Attachments" msgstr "" -#: admin/tainacan-admin-i18n.php:100 +#: admin/tainacan-admin-i18n.php:110 msgid "Enabled" msgstr "" -#: admin/tainacan-admin-i18n.php:101 +#: admin/tainacan-admin-i18n.php:111 msgid "Disabled" msgstr "" -#: admin/tainacan-admin-i18n.php:102 +#: admin/tainacan-admin-i18n.php:112 msgid "Creation" msgstr "" -#: admin/tainacan-admin-i18n.php:105 -msgid "Drag and drop Fields here to add them to Collection." -msgstr "" - -#: admin/tainacan-admin-i18n.php:106 -msgid "Delete selected collections" -msgstr "" - -#: admin/tainacan-admin-i18n.php:107 -msgid "Delete selected items" -msgstr "" - -#: admin/tainacan-admin-i18n.php:108 -msgid "Drop an image here or click to upload." -msgstr "" - -#: admin/tainacan-admin-i18n.php:109 -msgid "Select a status:" -msgstr "" - -#: admin/tainacan-admin-i18n.php:112 -msgid "No collection was created in this repository." -msgstr "" - #: admin/tainacan-admin-i18n.php:113 -msgid "No item was created in this collection." -msgstr "" +#, fuzzy +#| msgid "Collections" +msgid "Collection Items" +msgstr "Coleções" #: admin/tainacan-admin-i18n.php:114 -msgid "Error on deleting collection." -msgstr "" +#, fuzzy +#| msgid "Collections" +msgid "Collection Fields" +msgstr "Coleções" #: admin/tainacan-admin-i18n.php:115 -msgid "Collection deleted." -msgstr "" +#, fuzzy +#| msgid "Collections" +msgid "Collection Filters" +msgstr "Coleções" #: admin/tainacan-admin-i18n.php:116 -msgid "Item deleted." +msgid "Parent Term" msgstr "" #: admin/tainacan-admin-i18n.php:117 -msgid "Do you really want to delete this collection?" -msgstr "" - -#: admin/tainacan-admin-i18n.php:118 -msgid "Do you really want to delete this item?" -msgstr "" - -#: admin/tainacan-admin-i18n.php:119 -msgid "Do you really want to delete the selected collections?" +msgid "Add New Term" msgstr "" #: admin/tainacan-admin-i18n.php:120 -msgid "Do you really want to delete the selected items?" +msgid "Drag and drop Fields here to Collection." msgstr "" #: admin/tainacan-admin-i18n.php:121 -msgid "The field Collection related is required" +msgid "Drag and drop Fields to create Filters on Collection." msgstr "" #: admin/tainacan-admin-i18n.php:122 -msgid "No fields found in this collection" +msgid "Drag and drop Fields here to Repository." msgstr "" #: admin/tainacan-admin-i18n.php:123 -msgid "Showing items " +msgid "Drag and drop Fields to create Filters on Repository." msgstr "" #: admin/tainacan-admin-i18n.php:124 -msgid "Showing collections " +msgid "Delete selected collections" msgstr "" #: admin/tainacan-admin-i18n.php:125 -msgid " to " +msgid "Delete selected items" msgstr "" #: admin/tainacan-admin-i18n.php:126 -msgid " of " +msgid "Drop an image here or click to upload." msgstr "" #: admin/tainacan-admin-i18n.php:127 -msgid "Created by: " +msgid "Select a status:" msgstr "" #: admin/tainacan-admin-i18n.php:128 -msgid "Date: " +msgid "Select a filter type:" msgstr "" #: admin/tainacan-admin-i18n.php:131 -msgid "Text" +msgid "Name is required." msgstr "" #: admin/tainacan-admin-i18n.php:132 -msgid "Text area" +msgid "No collection was created in this repository." msgstr "" #: admin/tainacan-admin-i18n.php:133 -msgid "Date" +msgid "No item was created in this collection." msgstr "" #: admin/tainacan-admin-i18n.php:134 -msgid "Numeric" +msgid "Error on deleting collection." msgstr "" #: admin/tainacan-admin-i18n.php:135 -msgid "Select box" +msgid "Collection deleted." msgstr "" #: admin/tainacan-admin-i18n.php:136 +msgid "Item deleted." +msgstr "" + +#: admin/tainacan-admin-i18n.php:137 +msgid "Do you really want to delete this collection?" +msgstr "" + +#: admin/tainacan-admin-i18n.php:138 +msgid "Do you really want to delete this item?" +msgstr "" + +#: admin/tainacan-admin-i18n.php:139 +msgid "Do you really want to delete the selected collections?" +msgstr "" + +#: admin/tainacan-admin-i18n.php:140 +msgid "Do you really want to delete the selected items?" +msgstr "" + +#: admin/tainacan-admin-i18n.php:141 +msgid "The field Collection related is required" +msgstr "" + +#: admin/tainacan-admin-i18n.php:142 +msgid "No fields found in this collection" +msgstr "" + +#: admin/tainacan-admin-i18n.php:143 +msgid "Showing items " +msgstr "" + +#: admin/tainacan-admin-i18n.php:144 +msgid "Showing collections " +msgstr "" + +#: admin/tainacan-admin-i18n.php:145 +msgid "Showing categories" +msgstr "Exibindo Categorias" + +#: admin/tainacan-admin-i18n.php:146 +msgid " to " +msgstr "" + +#: admin/tainacan-admin-i18n.php:147 +msgid " of " +msgstr "" + +#: admin/tainacan-admin-i18n.php:148 +msgid "Created by: " +msgstr "" + +#: admin/tainacan-admin-i18n.php:149 +msgid "Date: " +msgstr "" + +#: admin/tainacan-admin-i18n.php:150 +msgid "Not saved " +msgstr "" + +#: admin/tainacan-admin-i18n.php:153 +msgid "Text" +msgstr "" + +#: admin/tainacan-admin-i18n.php:154 +msgid "Text area" +msgstr "" + +#: admin/tainacan-admin-i18n.php:155 +msgid "Date" +msgstr "" + +#: admin/tainacan-admin-i18n.php:156 +msgid "Numeric" +msgstr "" + +#: admin/tainacan-admin-i18n.php:157 +msgid "Select box" +msgstr "" + +#: admin/tainacan-admin-i18n.php:158 msgid "Relationship" msgstr "" +#: admin/tainacan-admin-i18n.php:162 +msgid "Custom Interval" +msgstr "" + +#: admin/tainacan-admin-i18n.php:163 +msgid "Select Box" +msgstr "" + +#: admin/tainacan-admin-i18n.php:164 +msgid "Autocomplete" +msgstr "" + +#: admin/tainacan-admin-i18n.php:165 +msgid "Tag Input" +msgstr "" + +#: admin/tainacan-admin-i18n.php:166 +msgid "Check Box" +msgstr "" + +#: admin/tainacan-admin-i18n.php:167 +#, fuzzy +#| msgid "Category Page" +msgid "Category Tag Input" +msgstr "Página da Categoria" + +#: admin/tainacan-admin-i18n.php:168 +#, fuzzy +#| msgid "Category Page" +msgid "Category Check Box" +msgstr "Página da Categoria" + +#: admin/tainacan-admin-i18n.php:169 +#, fuzzy +#| msgid "Category Page" +msgid "Category Select Box" +msgstr "Página da Categoria" + #: api/class-tainacan-rest-controller.php:302 msgid "Limit results to those matching a string." msgstr "" @@ -681,32 +813,34 @@ msgid "" msgstr "" #: api/endpoints/class-tainacan-rest-collections-controller.php:72 +#: api/endpoints/class-tainacan-rest-filters-controller.php:82 #: api/endpoints/class-tainacan-rest-items-controller.php:81 +#: api/endpoints/class-tainacan-rest-taxonomies-controller.php:62 msgid "" "To delete permanently, in body you can pass 'is_permanently' as true. By " "default this will only trash collection" msgstr "" #: api/endpoints/class-tainacan-rest-collections-controller.php:214 -#: api/endpoints/class-tainacan-rest-fields-controller.php:247 +#: api/endpoints/class-tainacan-rest-fields-controller.php:236 #: api/endpoints/class-tainacan-rest-items-controller.php:262 -#: api/endpoints/class-tainacan-rest-taxonomies-controller.php:159 -#: api/endpoints/class-tainacan-rest-taxonomies-controller.php:266 +#: api/endpoints/class-tainacan-rest-taxonomies-controller.php:170 +#: api/endpoints/class-tainacan-rest-taxonomies-controller.php:277 msgid "Body can not be empty." msgstr "" #: api/endpoints/class-tainacan-rest-collections-controller.php:234 #: api/endpoints/class-tainacan-rest-collections-controller.php:340 -#: api/endpoints/class-tainacan-rest-fields-controller.php:218 -#: api/endpoints/class-tainacan-rest-fields-controller.php:238 -#: api/endpoints/class-tainacan-rest-fields-controller.php:432 -#: api/endpoints/class-tainacan-rest-filters-controller.php:228 -#: api/endpoints/class-tainacan-rest-item-metadata-controller.php:220 +#: api/endpoints/class-tainacan-rest-fields-controller.php:207 +#: api/endpoints/class-tainacan-rest-fields-controller.php:227 +#: api/endpoints/class-tainacan-rest-fields-controller.php:421 +#: api/endpoints/class-tainacan-rest-filters-controller.php:282 +#: api/endpoints/class-tainacan-rest-item-metadata-controller.php:222 #: api/endpoints/class-tainacan-rest-items-controller.php:281 #: api/endpoints/class-tainacan-rest-items-controller.php:366 -#: api/endpoints/class-tainacan-rest-taxonomies-controller.php:259 -#: api/endpoints/class-tainacan-rest-taxonomies-controller.php:316 -#: api/endpoints/class-tainacan-rest-terms-controller.php:212 +#: api/endpoints/class-tainacan-rest-taxonomies-controller.php:270 +#: api/endpoints/class-tainacan-rest-taxonomies-controller.php:327 +#: api/endpoints/class-tainacan-rest-terms-controller.php:221 msgid "One or more values are invalid." msgstr "" @@ -715,68 +849,114 @@ msgid "Collection with that ID not found" msgstr "" #: api/endpoints/class-tainacan-rest-collections-controller.php:353 -#: api/endpoints/class-tainacan-rest-fields-controller.php:445 -#: api/endpoints/class-tainacan-rest-filters-controller.php:139 -#: api/endpoints/class-tainacan-rest-filters-controller.php:179 -#: api/endpoints/class-tainacan-rest-filters-controller.php:242 +#: api/endpoints/class-tainacan-rest-fields-controller.php:434 +#: api/endpoints/class-tainacan-rest-filters-controller.php:182 +#: api/endpoints/class-tainacan-rest-filters-controller.php:233 +#: api/endpoints/class-tainacan-rest-filters-controller.php:296 #: api/endpoints/class-tainacan-rest-items-controller.php:379 -#: api/endpoints/class-tainacan-rest-taxonomies-controller.php:329 -#: api/endpoints/class-tainacan-rest-terms-controller.php:226 +#: api/endpoints/class-tainacan-rest-taxonomies-controller.php:340 +#: api/endpoints/class-tainacan-rest-terms-controller.php:235 msgid "The body could not be empty" msgstr "" -#: api/endpoints/class-tainacan-rest-collections-controller.php:404 +#: api/endpoints/class-tainacan-rest-collections-controller.php:387 +#: api/endpoints/class-tainacan-rest-items-controller.php:412 +#: api/endpoints/class-tainacan-rest-taxonomies-controller.php:370 +msgid "" +"Fetch only specific attribute. The specifics attributes are the same in " +"schema." +msgstr "" + +#: api/endpoints/class-tainacan-rest-collections-controller.php:427 msgid "Limit result set to collection with specific name." msgstr "" -#: api/endpoints/class-tainacan-rest-fields-controller.php:400 +#: api/endpoints/class-tainacan-rest-field-types-controller.php:24 +#: api/endpoints/class-tainacan-rest-filter-types-controller.php:24 +msgid "The structure of objects returned." +msgstr "" + +#: api/endpoints/class-tainacan-rest-fields-controller.php:389 msgid "Field with that ID not found" msgstr "" -#: api/endpoints/class-tainacan-rest-fields-controller.php:406 +#: api/endpoints/class-tainacan-rest-fields-controller.php:395 msgid "That field is not a default field" msgstr "" -#: api/endpoints/class-tainacan-rest-fields-controller.php:413 +#: api/endpoints/class-tainacan-rest-fields-controller.php:402 msgid "That field is not a collection field" msgstr "" -#: api/endpoints/class-tainacan-rest-filters-controller.php:133 +#: api/endpoints/class-tainacan-rest-fields-controller.php:469 +msgid "Limit result set to field with specific name." +msgstr "" + +#: api/endpoints/class-tainacan-rest-fields-controller.php:489 +msgid "" +"Fetch all values of a field from a collection in all it collection items" +msgstr "" + +#: api/endpoints/class-tainacan-rest-filters-controller.php:176 msgid "One or more attributes are invalid" msgstr "" -#: api/endpoints/class-tainacan-rest-filters-controller.php:235 +#: api/endpoints/class-tainacan-rest-filters-controller.php:289 msgid "Filter with that ID not found" msgstr "" -#: api/endpoints/class-tainacan-rest-item-metadata-controller.php:213 +#: api/endpoints/class-tainacan-rest-filters-controller.php:468 +msgid "Limit result set to filter with specific name." +msgstr "" + +#: api/endpoints/class-tainacan-rest-item-metadata-controller.php:215 msgid "Field do not accept suggestion." msgstr "" +#: api/endpoints/class-tainacan-rest-item-metadata-controller.php:275 +msgid "The value(s) of item metadata" +msgstr "" + #: api/endpoints/class-tainacan-rest-items-controller.php:373 msgid "Item with that ID not found" msgstr "" -#: api/endpoints/class-tainacan-rest-items-controller.php:424 +#: api/endpoints/class-tainacan-rest-items-controller.php:449 msgid "Limit result set to items with specific title." msgstr "" -#: api/endpoints/class-tainacan-rest-taxonomies-controller.php:179 -msgid "Failure on deleted." +#: api/endpoints/class-tainacan-rest-logs-controller.php:224 +msgid "Limit result set to log with specific title." msgstr "" #: api/endpoints/class-tainacan-rest-taxonomies-controller.php:190 +msgid "Failure on deleted." +msgstr "" + +#: api/endpoints/class-tainacan-rest-taxonomies-controller.php:201 msgid "Taxonomy with this id (" msgstr "" -#: api/endpoints/class-tainacan-rest-taxonomies-controller.php:323 +#: api/endpoints/class-tainacan-rest-taxonomies-controller.php:334 msgid "Taxonomy with that ID not found" msgstr "" -#: api/endpoints/class-tainacan-rest-terms-controller.php:219 +#: api/endpoints/class-tainacan-rest-taxonomies-controller.php:410 +msgid "Limit result set to taxonomy with specific name." +msgstr "" + +#: api/endpoints/class-tainacan-rest-terms-controller.php:58 +msgid "Delete term permanently." +msgstr "" + +#: api/endpoints/class-tainacan-rest-terms-controller.php:228 msgid "Term or Taxonomy with that IDs not found" msgstr "" +#: api/endpoints/class-tainacan-rest-terms-controller.php:402 +msgid "Limit result set to term with specific name." +msgstr "" + #: classes/class-tainacan-capabilities.php:286 msgctxt "User role" msgid "Tainacan Author" @@ -792,44 +972,6 @@ msgctxt "User role" msgid "Tainacan Editor" msgstr "Editor Tainacan" -#: classes/entities/class-tainacan-collection.php:54 -#: classes/entities/class-tainacan-collection.php:55 -#: classes/repositories/class-tainacan-collections.php:169 -#: classes/repositories/class-tainacan-fields.php:180 -#: classes/repositories/class-tainacan-filters.php:80 -#: classes/repositories/class-tainacan-logs.php:108 -#: classes/repositories/class-tainacan-taxonomies.php:70 -msgid "Add new" -msgstr "" - -#: classes/entities/class-tainacan-collection.php:56 -msgid "Edit Item" -msgstr "" - -#: classes/entities/class-tainacan-collection.php:57 -msgid "New Item" -msgstr "" - -#: classes/entities/class-tainacan-collection.php:58 -msgid "View Item" -msgstr "" - -#: classes/entities/class-tainacan-collection.php:59 -msgid "Search items" -msgstr "" - -#: classes/entities/class-tainacan-collection.php:60 -msgid "No items found" -msgstr "" - -#: classes/entities/class-tainacan-collection.php:61 -msgid "No items found in trash" -msgstr "" - -#: classes/entities/class-tainacan-collection.php:62 -msgid "Parent item:" -msgstr "" - #: classes/entities/class-tainacan-entity.php:206 msgid " is invalid" msgstr "" @@ -867,14 +1009,6 @@ msgid "" "You can not have 2 Category Fields using the same category in a collection" msgstr "" -#: classes/field-types/radio/class-tainacan-radio.php:41 -msgid "Options" -msgstr "" - -#: classes/field-types/radio/class-tainacan-radio.php:42 -msgid "Insert the options, separate by lines for the field value" -msgstr "" - #: classes/field-types/relationship/class-tainacan-relationship.php:42 msgid "Collection ID invalid" msgstr "" @@ -887,376 +1021,357 @@ msgstr "" msgid "Options is required" msgstr "" -#: classes/filter-types/filter-type/class-tainacan-filter-type.php:89 +#: classes/filter-types/filter-type/class-tainacan-filter-type.php:92 msgid "The field primitive type is not supported by this filter" msgstr "" -#: classes/repositories/class-tainacan-collections.php:28 +#: classes/repositories/class-tainacan-collections.php:30 msgid "Name of the collection" msgstr "" -#: classes/repositories/class-tainacan-collections.php:36 -#: classes/repositories/class-tainacan-items.php:26 +#: classes/repositories/class-tainacan-collections.php:38 +#: classes/repositories/class-tainacan-items.php:28 msgid "The posts status" msgstr "" -#: classes/repositories/class-tainacan-collections.php:40 +#: classes/repositories/class-tainacan-collections.php:42 msgid "Author ID" msgstr "" -#: classes/repositories/class-tainacan-collections.php:42 +#: classes/repositories/class-tainacan-collections.php:44 msgid "The collection author's user ID (numeric string)" msgstr "" -#: classes/repositories/class-tainacan-collections.php:46 -#: classes/repositories/class-tainacan-items.php:51 -msgid "Author name" -msgstr "" - #: classes/repositories/class-tainacan-collections.php:48 -msgid "The collection author's user name" -msgstr "" - -#: classes/repositories/class-tainacan-collections.php:52 -#: classes/repositories/class-tainacan-items.php:57 +#: classes/repositories/class-tainacan-items.php:53 msgid "Creation Date" msgstr "" -#: classes/repositories/class-tainacan-collections.php:54 +#: classes/repositories/class-tainacan-collections.php:50 msgid "The collection creation date" msgstr "" -#: classes/repositories/class-tainacan-collections.php:58 -#: classes/repositories/class-tainacan-items.php:63 +#: classes/repositories/class-tainacan-collections.php:54 +#: classes/repositories/class-tainacan-items.php:59 msgid "Modification Date" msgstr "" -#: classes/repositories/class-tainacan-collections.php:60 +#: classes/repositories/class-tainacan-collections.php:56 msgid "The collection modification date" msgstr "" -#: classes/repositories/class-tainacan-collections.php:64 +#: classes/repositories/class-tainacan-collections.php:60 msgid "Collection URL" msgstr "" -#: classes/repositories/class-tainacan-collections.php:66 +#: classes/repositories/class-tainacan-collections.php:62 msgid "The collection URL" msgstr "" -#: classes/repositories/class-tainacan-collections.php:70 -#: classes/repositories/class-tainacan-items.php:75 -msgid "Featured Image" -msgstr "" - -#: classes/repositories/class-tainacan-collections.php:72 -msgid "The collection thumbnail URL" -msgstr "" - -#: classes/repositories/class-tainacan-collections.php:78 -msgid "The collection attachments" -msgstr "" - -#: classes/repositories/class-tainacan-collections.php:82 -#: classes/repositories/class-tainacan-fields.php:51 +#: classes/repositories/class-tainacan-collections.php:66 +#: classes/repositories/class-tainacan-fields.php:54 #: classes/repositories/class-tainacan-filters.php:25 msgid "Order" msgstr "" -#: classes/repositories/class-tainacan-collections.php:84 +#: classes/repositories/class-tainacan-collections.php:68 msgid "Collection order. Field used if collections are manually ordered" msgstr "" -#: classes/repositories/class-tainacan-collections.php:89 +#: classes/repositories/class-tainacan-collections.php:73 msgid "Parent Collection" msgstr "" -#: classes/repositories/class-tainacan-collections.php:91 +#: classes/repositories/class-tainacan-collections.php:75 msgid "Parent collection ID" msgstr "" -#: classes/repositories/class-tainacan-collections.php:98 +#: classes/repositories/class-tainacan-collections.php:82 msgid "Collection description" msgstr "" -#: classes/repositories/class-tainacan-collections.php:104 -#: classes/repositories/class-tainacan-fields.php:44 -#: classes/repositories/class-tainacan-logs.php:56 -#: classes/repositories/class-tainacan-taxonomies.php:42 -msgid "Slug" -msgstr "" - -#: classes/repositories/class-tainacan-collections.php:106 +#: classes/repositories/class-tainacan-collections.php:90 msgid "" "A unique and santized string representation of the collection, used to build " "the collection URL" msgstr "" -#: classes/repositories/class-tainacan-collections.php:112 +#: classes/repositories/class-tainacan-collections.php:95 msgid "Default Order field" msgstr "" -#: classes/repositories/class-tainacan-collections.php:114 +#: classes/repositories/class-tainacan-collections.php:97 msgid "Default property items in this collections will be ordered by" msgstr "" -#: classes/repositories/class-tainacan-collections.php:120 +#: classes/repositories/class-tainacan-collections.php:103 msgid "Default order" msgstr "" -#: classes/repositories/class-tainacan-collections.php:121 +#: classes/repositories/class-tainacan-collections.php:104 msgid "Default order for items in this collection. ASC or DESC" msgstr "" -#: classes/repositories/class-tainacan-collections.php:128 +#: classes/repositories/class-tainacan-collections.php:111 msgid "Columns" msgstr "" -#: classes/repositories/class-tainacan-collections.php:130 +#: classes/repositories/class-tainacan-collections.php:113 msgid "List of collections property that will be displayed in the table view" msgstr "" -#: classes/repositories/class-tainacan-collections.php:135 +#: classes/repositories/class-tainacan-collections.php:118 msgid "Default view mode" msgstr "" -#: classes/repositories/class-tainacan-collections.php:137 +#: classes/repositories/class-tainacan-collections.php:120 msgid "Collection default visualization mode" msgstr "" -#: classes/repositories/class-tainacan-collections.php:142 +#: classes/repositories/class-tainacan-collections.php:125 msgid "Ordination fields" msgstr "" -#: classes/repositories/class-tainacan-collections.php:144 +#: classes/repositories/class-tainacan-collections.php:127 msgid "Collection fields ordination" msgstr "" -#: classes/repositories/class-tainacan-collections.php:149 +#: classes/repositories/class-tainacan-collections.php:132 msgid "Ordination filters" msgstr "" -#: classes/repositories/class-tainacan-collections.php:151 +#: classes/repositories/class-tainacan-collections.php:134 msgid "Collection filters ordination" msgstr "" -#: classes/repositories/class-tainacan-collections.php:156 +#: classes/repositories/class-tainacan-collections.php:139 msgid "Moderators" msgstr "" -#: classes/repositories/class-tainacan-collections.php:158 +#: classes/repositories/class-tainacan-collections.php:141 msgid "The IDs of users assigned as moderators of this collection" msgstr "" -#: classes/repositories/class-tainacan-collections.php:170 +#: classes/repositories/class-tainacan-collections.php:157 +#: classes/repositories/class-tainacan-fields.php:192 +#: classes/repositories/class-tainacan-filters.php:85 +#: classes/repositories/class-tainacan-items.php:91 +#: classes/repositories/class-tainacan-items.php:92 +#: classes/repositories/class-tainacan-logs.php:108 +#: classes/repositories/class-tainacan-taxonomies.php:74 +msgid "Add new" +msgstr "" + +#: classes/repositories/class-tainacan-collections.php:158 msgid "Add new Collection" msgstr "" -#: classes/repositories/class-tainacan-collections.php:171 +#: classes/repositories/class-tainacan-collections.php:159 msgid "Edit Collection" msgstr "" -#: classes/repositories/class-tainacan-collections.php:172 +#: classes/repositories/class-tainacan-collections.php:160 msgid "New Collection" msgstr "" -#: classes/repositories/class-tainacan-collections.php:173 +#: classes/repositories/class-tainacan-collections.php:161 msgid "View Collection" msgstr "" -#: classes/repositories/class-tainacan-collections.php:174 +#: classes/repositories/class-tainacan-collections.php:162 msgid "Search Collections" msgstr "" -#: classes/repositories/class-tainacan-collections.php:175 +#: classes/repositories/class-tainacan-collections.php:163 msgid "No Collections found " msgstr "" -#: classes/repositories/class-tainacan-collections.php:176 +#: classes/repositories/class-tainacan-collections.php:164 msgid "No Collections found in trash" msgstr "" -#: classes/repositories/class-tainacan-collections.php:177 +#: classes/repositories/class-tainacan-collections.php:165 msgid "Parent Collection:" msgstr "" -#: classes/repositories/class-tainacan-fields.php:38 +#: classes/repositories/class-tainacan-fields.php:41 msgid "Name of the field" msgstr "" -#: classes/repositories/class-tainacan-fields.php:39 +#: classes/repositories/class-tainacan-fields.php:42 msgid "The name should be a text value and not empty" msgstr "" -#: classes/repositories/class-tainacan-fields.php:46 +#: classes/repositories/class-tainacan-fields.php:49 msgid "A unique and santized string representation of the field" msgstr "" -#: classes/repositories/class-tainacan-fields.php:53 +#: classes/repositories/class-tainacan-fields.php:56 msgid "Field order. Field used if collections are manually ordered" msgstr "" -#: classes/repositories/class-tainacan-fields.php:54 +#: classes/repositories/class-tainacan-fields.php:57 msgid "The menu order should be a numeric value" msgstr "" -#: classes/repositories/class-tainacan-fields.php:59 +#: classes/repositories/class-tainacan-fields.php:62 #: classes/repositories/class-tainacan-logs.php:41 #: classes/repositories/class-tainacan-terms.php:35 msgid "Parent" msgstr "" -#: classes/repositories/class-tainacan-fields.php:61 +#: classes/repositories/class-tainacan-fields.php:64 msgid "Parent field" msgstr "" -#: classes/repositories/class-tainacan-fields.php:69 +#: classes/repositories/class-tainacan-fields.php:73 msgid "The field description" msgstr "" -#: classes/repositories/class-tainacan-fields.php:76 -#: classes/repositories/class-tainacan-filters.php:47 +#: classes/repositories/class-tainacan-fields.php:80 +#: classes/repositories/class-tainacan-filters.php:48 msgid "Type" msgstr "" -#: classes/repositories/class-tainacan-fields.php:78 +#: classes/repositories/class-tainacan-fields.php:82 msgid "The field type" msgstr "" -#: classes/repositories/class-tainacan-fields.php:79 +#: classes/repositories/class-tainacan-fields.php:83 msgid "Field type is empty" msgstr "" -#: classes/repositories/class-tainacan-fields.php:86 +#: classes/repositories/class-tainacan-fields.php:90 msgid "The field is required" msgstr "" -#: classes/repositories/class-tainacan-fields.php:87 +#: classes/repositories/class-tainacan-fields.php:91 msgid "Field required field is invalid" msgstr "" -#: classes/repositories/class-tainacan-fields.php:93 +#: classes/repositories/class-tainacan-fields.php:97 msgid "Collection key" msgstr "" -#: classes/repositories/class-tainacan-fields.php:95 +#: classes/repositories/class-tainacan-fields.php:99 msgid "Field value should not be repeated" msgstr "" -#: classes/repositories/class-tainacan-fields.php:96 +#: classes/repositories/class-tainacan-fields.php:100 msgid "Collection key is invalid" msgstr "" -#: classes/repositories/class-tainacan-fields.php:102 +#: classes/repositories/class-tainacan-fields.php:106 msgid "Multiple" msgstr "" -#: classes/repositories/class-tainacan-fields.php:104 +#: classes/repositories/class-tainacan-fields.php:108 msgid "Allow multiple fields for the field" msgstr "" -#: classes/repositories/class-tainacan-fields.php:105 +#: classes/repositories/class-tainacan-fields.php:109 msgid "Multiple fields is invalid" msgstr "" -#: classes/repositories/class-tainacan-fields.php:111 +#: classes/repositories/class-tainacan-fields.php:116 msgid "Cardinality" msgstr "" -#: classes/repositories/class-tainacan-fields.php:113 +#: classes/repositories/class-tainacan-fields.php:118 msgid "Number of multiples possible fields" msgstr "" -#: classes/repositories/class-tainacan-fields.php:114 +#: classes/repositories/class-tainacan-fields.php:119 msgid "The number of fields not allowed" msgstr "" -#: classes/repositories/class-tainacan-fields.php:120 +#: classes/repositories/class-tainacan-fields.php:125 msgid "Privacy" msgstr "" -#: classes/repositories/class-tainacan-fields.php:122 +#: classes/repositories/class-tainacan-fields.php:127 msgid "The field should be omitted in item view" msgstr "" -#: classes/repositories/class-tainacan-fields.php:123 +#: classes/repositories/class-tainacan-fields.php:128 msgid "Privacy is invalid" msgstr "" -#: classes/repositories/class-tainacan-fields.php:129 +#: classes/repositories/class-tainacan-fields.php:135 msgid "Mask" msgstr "" -#: classes/repositories/class-tainacan-fields.php:131 +#: classes/repositories/class-tainacan-fields.php:137 msgid "The mask to be used in the field" msgstr "" -#: classes/repositories/class-tainacan-fields.php:139 +#: classes/repositories/class-tainacan-fields.php:145 msgid "The value default fot the field" msgstr "" -#: classes/repositories/class-tainacan-fields.php:143 +#: classes/repositories/class-tainacan-fields.php:149 msgid "Field Type options" msgstr "" -#: classes/repositories/class-tainacan-fields.php:145 +#: classes/repositories/class-tainacan-fields.php:152 msgid "Options specific for field type" msgstr "" -#: classes/repositories/class-tainacan-fields.php:153 -#: classes/repositories/class-tainacan-filters.php:56 -#: classes/repositories/class-tainacan-items.php:40 +#: classes/repositories/class-tainacan-fields.php:159 +#: classes/repositories/class-tainacan-filters.php:57 +#: classes/repositories/class-tainacan-items.php:42 msgid "The collection ID" msgstr "" -#: classes/repositories/class-tainacan-fields.php:158 +#: classes/repositories/class-tainacan-fields.php:164 msgid "Field Value Accepts Suggestions" msgstr "" -#: classes/repositories/class-tainacan-fields.php:160 +#: classes/repositories/class-tainacan-fields.php:166 msgid "Allow the community suggest a different values for that field" msgstr "" -#: classes/repositories/class-tainacan-fields.php:166 +#: classes/repositories/class-tainacan-fields.php:172 msgid "Can delete" msgstr "" -#: classes/repositories/class-tainacan-fields.php:168 +#: classes/repositories/class-tainacan-fields.php:174 msgid "The field can be deleted" msgstr "" -#: classes/repositories/class-tainacan-fields.php:169 +#: classes/repositories/class-tainacan-fields.php:175 msgid "Can delete is invalid" msgstr "" -#: classes/repositories/class-tainacan-fields.php:181 +#: classes/repositories/class-tainacan-fields.php:193 msgid "Add new Field" msgstr "" -#: classes/repositories/class-tainacan-fields.php:182 +#: classes/repositories/class-tainacan-fields.php:194 msgid "Edit Field" msgstr "" -#: classes/repositories/class-tainacan-fields.php:183 +#: classes/repositories/class-tainacan-fields.php:195 msgid "New Field" msgstr "" -#: classes/repositories/class-tainacan-fields.php:184 +#: classes/repositories/class-tainacan-fields.php:196 msgid "View Field" msgstr "" -#: classes/repositories/class-tainacan-fields.php:185 +#: classes/repositories/class-tainacan-fields.php:197 msgid "Search Field" msgstr "" -#: classes/repositories/class-tainacan-fields.php:186 +#: classes/repositories/class-tainacan-fields.php:198 msgid "No Field found " msgstr "" -#: classes/repositories/class-tainacan-fields.php:187 +#: classes/repositories/class-tainacan-fields.php:199 msgid "No Field found in trash" msgstr "" -#: classes/repositories/class-tainacan-fields.php:188 +#: classes/repositories/class-tainacan-fields.php:200 msgid "Parent Field:" msgstr "" @@ -1280,115 +1395,131 @@ msgstr "" msgid "Filter type options" msgstr "" -#: classes/repositories/class-tainacan-filters.php:42 +#: classes/repositories/class-tainacan-filters.php:43 msgid "The filter type options" msgstr "" -#: classes/repositories/class-tainacan-filters.php:49 +#: classes/repositories/class-tainacan-filters.php:50 msgid "The filter type" msgstr "" -#: classes/repositories/class-tainacan-filters.php:61 +#: classes/repositories/class-tainacan-filters.php:62 msgid "Color" msgstr "" -#: classes/repositories/class-tainacan-filters.php:63 +#: classes/repositories/class-tainacan-filters.php:64 msgid "Filter color" msgstr "" -#: classes/repositories/class-tainacan-filters.php:70 +#: classes/repositories/class-tainacan-filters.php:71 msgid "Filter field" msgstr "" -#: classes/repositories/class-tainacan-filters.php:81 +#: classes/repositories/class-tainacan-filters.php:86 msgid "Add new Filter" msgstr "" -#: classes/repositories/class-tainacan-filters.php:82 +#: classes/repositories/class-tainacan-filters.php:87 msgid "Edit Filter" msgstr "" -#: classes/repositories/class-tainacan-filters.php:83 +#: classes/repositories/class-tainacan-filters.php:88 msgid "New Filter" msgstr "" -#: classes/repositories/class-tainacan-filters.php:84 +#: classes/repositories/class-tainacan-filters.php:89 msgid "View Filter" msgstr "" -#: classes/repositories/class-tainacan-filters.php:85 +#: classes/repositories/class-tainacan-filters.php:90 msgid "Search Filters" msgstr "" -#: classes/repositories/class-tainacan-filters.php:86 +#: classes/repositories/class-tainacan-filters.php:91 msgid "No Filters found " msgstr "" -#: classes/repositories/class-tainacan-filters.php:87 +#: classes/repositories/class-tainacan-filters.php:92 msgid "No Filters found in trash" msgstr "" -#: classes/repositories/class-tainacan-filters.php:88 +#: classes/repositories/class-tainacan-filters.php:93 msgid "Parent Filter:" msgstr "" -#: classes/repositories/class-tainacan-items.php:17 +#: classes/repositories/class-tainacan-items.php:19 msgid "Title of the item" msgstr "" -#: classes/repositories/class-tainacan-items.php:18 +#: classes/repositories/class-tainacan-items.php:20 #: classes/repositories/class-tainacan-logs.php:29 msgid "The title should be a text value and not empty" msgstr "" -#: classes/repositories/class-tainacan-items.php:32 +#: classes/repositories/class-tainacan-items.php:34 msgid "The item description" msgstr "" -#: classes/repositories/class-tainacan-items.php:45 +#: classes/repositories/class-tainacan-items.php:47 msgid "Author" msgstr "" -#: classes/repositories/class-tainacan-items.php:47 +#: classes/repositories/class-tainacan-items.php:49 msgid "The item author's user ID (numeric string)" msgstr "" -#: classes/repositories/class-tainacan-items.php:53 -msgid "The item author's user name" -msgstr "" - -#: classes/repositories/class-tainacan-items.php:59 +#: classes/repositories/class-tainacan-items.php:55 msgid "The item creation date" msgstr "" -#: classes/repositories/class-tainacan-items.php:65 +#: classes/repositories/class-tainacan-items.php:61 msgid "The item modification date" msgstr "" -#: classes/repositories/class-tainacan-items.php:69 +#: classes/repositories/class-tainacan-items.php:65 msgid "Item URL" msgstr "" -#: classes/repositories/class-tainacan-items.php:71 +#: classes/repositories/class-tainacan-items.php:67 msgid "The item URL" msgstr "" -#: classes/repositories/class-tainacan-items.php:77 -msgid "The item thumbnail URL" -msgstr "" - -#: classes/repositories/class-tainacan-items.php:83 -msgid "The item attachments" -msgstr "" - -#: classes/repositories/class-tainacan-items.php:87 +#: classes/repositories/class-tainacan-items.php:71 msgid "Term IDs" msgstr "" -#: classes/repositories/class-tainacan-items.php:89 +#: classes/repositories/class-tainacan-items.php:73 msgid "The item term IDs" msgstr "" +#: classes/repositories/class-tainacan-items.php:93 +msgid "Edit Item" +msgstr "" + +#: classes/repositories/class-tainacan-items.php:94 +msgid "New Item" +msgstr "" + +#: classes/repositories/class-tainacan-items.php:95 +msgid "View Item" +msgstr "" + +#: classes/repositories/class-tainacan-items.php:96 +msgid "Search items" +msgstr "" + +#: classes/repositories/class-tainacan-items.php:97 +msgid "No items found" +msgstr "" + +#: classes/repositories/class-tainacan-items.php:98 +msgid "No items found in trash" +msgstr "" + +#: classes/repositories/class-tainacan-items.php:99 +msgid "Parent item:" +msgstr "" + #: classes/repositories/class-tainacan-logs.php:28 msgid "The title of the log" msgstr "" @@ -1424,7 +1555,7 @@ msgstr "" #: classes/repositories/class-tainacan-logs.php:72 #: classes/repositories/class-tainacan-logs.php:79 -#: classes/repositories/class-tainacan-repository.php:262 +#: classes/repositories/class-tainacan-repository.php:283 #: classes/repositories/class-tainacan-terms.php:22 msgid "Unique identifier" msgstr "" @@ -1495,7 +1626,7 @@ msgstr "" msgid "a %s has been created/updated." msgstr "" -#: classes/repositories/class-tainacan-repository.php:260 +#: classes/repositories/class-tainacan-repository.php:281 #: classes/repositories/class-tainacan-terms.php:20 msgid "ID" msgstr "" @@ -1532,83 +1663,83 @@ msgstr "" msgid "The IDs of collection where the taxonomy is used" msgstr "" -#: classes/repositories/class-tainacan-taxonomies.php:68 -#: classes/repositories/class-tainacan-taxonomies.php:79 -#: classes/repositories/class-tainacan-taxonomies.php:125 +#: classes/repositories/class-tainacan-taxonomies.php:72 +#: classes/repositories/class-tainacan-taxonomies.php:83 +#: classes/repositories/class-tainacan-taxonomies.php:132 msgid "Taxonomies" msgstr "" -#: classes/repositories/class-tainacan-taxonomies.php:69 -#: classes/repositories/class-tainacan-taxonomies.php:126 +#: classes/repositories/class-tainacan-taxonomies.php:73 +#: classes/repositories/class-tainacan-taxonomies.php:133 #: classes/repositories/class-tainacan-terms.php:51 msgid "Taxonomy" msgstr "" -#: classes/repositories/class-tainacan-taxonomies.php:71 +#: classes/repositories/class-tainacan-taxonomies.php:75 msgid "Add new Taxonomy" msgstr "" -#: classes/repositories/class-tainacan-taxonomies.php:72 +#: classes/repositories/class-tainacan-taxonomies.php:76 msgid "Edit Taxonomy" msgstr "" -#: classes/repositories/class-tainacan-taxonomies.php:73 +#: classes/repositories/class-tainacan-taxonomies.php:77 msgid "New Taxonomy" msgstr "" -#: classes/repositories/class-tainacan-taxonomies.php:74 +#: classes/repositories/class-tainacan-taxonomies.php:78 msgid "View Taxonomy" msgstr "" -#: classes/repositories/class-tainacan-taxonomies.php:75 +#: classes/repositories/class-tainacan-taxonomies.php:79 msgid "Search Taxonomies" msgstr "" -#: classes/repositories/class-tainacan-taxonomies.php:76 +#: classes/repositories/class-tainacan-taxonomies.php:80 msgid "No Taxonomies found " msgstr "" -#: classes/repositories/class-tainacan-taxonomies.php:77 +#: classes/repositories/class-tainacan-taxonomies.php:81 msgid "No Taxonomies found in trash" msgstr "" -#: classes/repositories/class-tainacan-taxonomies.php:78 +#: classes/repositories/class-tainacan-taxonomies.php:82 msgid "Parent Taxonomy:" msgstr "" -#: classes/repositories/class-tainacan-taxonomies.php:127 +#: classes/repositories/class-tainacan-taxonomies.php:134 msgid "Search taxonomies" msgstr "" -#: classes/repositories/class-tainacan-taxonomies.php:128 +#: classes/repositories/class-tainacan-taxonomies.php:135 msgid "All taxonomies" msgstr "" -#: classes/repositories/class-tainacan-taxonomies.php:129 +#: classes/repositories/class-tainacan-taxonomies.php:136 msgid "Parent taxonomy" msgstr "" -#: classes/repositories/class-tainacan-taxonomies.php:130 +#: classes/repositories/class-tainacan-taxonomies.php:137 msgid "Parent taxonomy:" msgstr "" -#: classes/repositories/class-tainacan-taxonomies.php:131 +#: classes/repositories/class-tainacan-taxonomies.php:138 msgid "Edit taxonomy" msgstr "" -#: classes/repositories/class-tainacan-taxonomies.php:132 +#: classes/repositories/class-tainacan-taxonomies.php:139 msgid "Update taxonomy" msgstr "" -#: classes/repositories/class-tainacan-taxonomies.php:133 +#: classes/repositories/class-tainacan-taxonomies.php:140 msgid "Add New taxonomy" msgstr "" -#: classes/repositories/class-tainacan-taxonomies.php:134 +#: classes/repositories/class-tainacan-taxonomies.php:141 msgid "New Genre taxonomy" msgstr "" -#: classes/repositories/class-tainacan-taxonomies.php:135 +#: classes/repositories/class-tainacan-taxonomies.php:142 msgid "Genre" msgstr "" @@ -1652,17 +1783,13 @@ msgstr "" msgid "Properties" msgstr "" -#: dev-interface/class-tainacan-dev-interface.php:112 -msgid "Field Components" -msgstr "" - -#: dev-interface/class-tainacan-dev-interface.php:159 +#: dev-interface/class-tainacan-dev-interface.php:151 msgid "Property" msgstr "" -#: dev-interface/class-tainacan-dev-interface.php:160 -#: dev-interface/class-tainacan-dev-interface.php:253 -#: dev-interface/class-tainacan-dev-interface.php:323 +#: dev-interface/class-tainacan-dev-interface.php:152 +#: dev-interface/class-tainacan-dev-interface.php:245 +#: dev-interface/class-tainacan-dev-interface.php:315 msgid "Value" msgstr ""