more minor spelling fixes

This commit is contained in:
Adrian 2021-11-11 00:48:10 +02:00
parent b669d3e879
commit e07d0a3b29
33 changed files with 346 additions and 346 deletions

View File

@ -265,7 +265,7 @@ class REST_Bulkedit_Controller extends REST_Controller {
];
} else {
return new \WP_REST_Response([
'error_message' => __('You mus specify items_ids OR use_query', 'tainacan'),
'error_message' => __('You must specify items_ids OR use_query', 'tainacan'),
], 400);
}

View File

@ -87,7 +87,7 @@ class REST_Collections_Controller extends REST_Controller {
'permission_callback' => array($this, 'update_metadata_order_permissions_check'),
'args' => [
'metadata_order' => [
'description' => __( 'The order of the metadata in the collection, an array of objects with integer id and bool enabled.', 'tainacan' ),
'description' => __( 'The order of the metadata in the collection, an array of objects with integer ID and bool enabled.', 'tainacan' ),
'required' => true,
'validate_callback' => [$this, 'validate_filters_metadata_order']
]
@ -102,7 +102,7 @@ class REST_Collections_Controller extends REST_Controller {
'permission_callback' => array($this, 'update_filters_order_permissions_check'),
'args' => [
'filters_order' => [
'description' => __( 'The order of the filters in the collection, an array of objects with integer id and bool enabled.', 'tainacan' ),
'description' => __( 'The order of the filters in the collection, an array of objects with integer ID and bool enabled.', 'tainacan' ),
'required' => true,
'validate_callback' => [$this, 'validate_filters_metadata_order']
]

View File

@ -104,7 +104,7 @@ class REST_Sequence_Edit_Controller extends REST_Controller {
} else {
return new \WP_REST_Response([
'error_message' => __('You mus specify items_ids OR use_query', 'tainacan'),
'error_message' => __('You must specify items_ids OR use_query', 'tainacan'),
], 400);
}

View File

@ -450,12 +450,12 @@ class REST_Terms_Controller extends REST_Controller {
$endpoint_args['metadatum_id'] = [
'required' => false,
'type' => 'integer',
'description' => __('If term is being created in the context of a Taxonomy metadatum, inform its ID')
'description' => __('If term is being created in the context of a Taxonomy metadatum, specify its ID')
];
$endpoint_args['item_id'] = [
'required' => false,
'type' => 'integer',
'description' => __('If term is being created in the context of a Taxonomy metadatum, inform the ID of the item being edited')
'description' => __('If term is being created in the context of a Taxonomy metadatum, specify the ID of the item being edited')
];
}

View File

@ -115,7 +115,7 @@ class Term_Exporter extends Exporter {
<h5><?php _e('Source Taxonomy', 'tainacan'); ?></h5>
</div>
<div class="help-tooltip-body">
<p><?php _e('Inform the taxonomy you want to export the terms from.', 'tainacan'); ?></p>
<p><?php _e('Specify the taxonomy you want to export the terms from.', 'tainacan'); ?></p>
</div>
</div>
</span>

View File

@ -462,7 +462,7 @@ class CSV extends Importer {
<h5><?php _e('Server path', 'tainacan'); ?></h5>
</div>
<div class="help-tooltip-body">
<p><?php _e("When using CSV special field to add documents or attachments that you've uploaded to the server, inform the full path to the folder here (e.g. /home/user/files/)", 'tainacan'); ?></p>
<p><?php _e("When using CSV special field to add documents or attachments that you've uploaded to the server, specify the full path to the folder here (e.g. /home/user/files/)", 'tainacan'); ?></p>
</div>
</div>
</span>

View File

@ -179,7 +179,7 @@ class Oaipmh_Importer extends Importer {
$metadata_map = $this->create_collection_metadata($collection);
$total = intval($this->get_total_items_from_source($setSpec));
$this->add_log('total in collection: ' . $total);
$this->add_log('collection id ' . (string) $collection->get_id());
$this->add_log('collection ID ' . (string) $collection->get_id());
$this->add_collection([
'id' => $collection->get_id(),
@ -194,7 +194,7 @@ class Oaipmh_Importer extends Importer {
$metadata_map = $this->create_collection_metadata($collection);
$total = intval( $this->get_total_items_from_source(false) );
$this->add_log('total in collection: ' . $total);
$this->add_log('collection id ' . (string) $collection->get_id());
$this->add_log('collection ID ' . (string) $collection->get_id());
$tax = new Entities\Taxonomy();
$tax->set_name( $this->NAME_FOR_SETS );

View File

@ -80,7 +80,7 @@ class Old_Tainacan extends Importer{
if ($tax->validate()) {
$tax = $this->tax_repo->insert($tax);
$this->add_log('Taxonomy ' . $tax->get_name() . ' created, id from Old'. $taxonomy->term_id );
$this->add_log('Taxonomy ' . $tax->get_name() . ' created, ID from Old'. $taxonomy->term_id );
$this->add_transient('tax_' . $taxonomy->term_id . '_id', $tax->get_id());
$this->add_transient('tax_' . $taxonomy->term_id . '_name', $tax->get_name());
@ -692,7 +692,7 @@ class Old_Tainacan extends Importer{
} else {
$this->add_log('Added term: ' . $inserted_term->get_name() . ' in tax: ' . $taxonomy_father->get_name());
$this->add_log('Added term before id ' . $term->term_id );
$this->add_log('Added term before ID ' . $term->term_id );
}
/*Insert old tainacan id*/

View File

@ -108,7 +108,7 @@ class Logs extends Repository {
'object_id' => [
'map' => 'meta',
'title' => __( 'Log item relationship', 'tainacan' ),
'description' => __( 'The id of the object that this log is related to', 'tainacan' ),
'description' => __( 'The ID of the object that this log is related to', 'tainacan' ),
],
'object_type' => [
'map' => 'meta',
@ -117,7 +117,7 @@ class Logs extends Repository {
],
'old_value' => [
'map' => 'meta',
'title' => __( 'Old Value', 'tainacan' ),
'title' => __( 'Old value', 'tainacan' ),
],
'new_value' => [
'map' => 'meta',

View File

@ -407,7 +407,7 @@ class Theme_Helper {
* @type int $default_items_per_page Default number of items per page loaded
* @type bool $show_filters_button_inside_search_control Display the "hide filters" button inside of the search control instead of floating
* @type bool $start_with_filters_hidden Loads the filters list hidden from start
* @type bool $filters_as_modal Display the filters as a modal instead of a collapsable region on desktop
* @type bool $filters_as_modal Display the filters as a modal instead of a collapsible region on desktop
* @type bool $show_inline_view_mode_options Display view modes as inline icon buttons instead of the dropdown
* @type bool $show_fullscreen_with_view_modes Lists fullscreen viewmodes alongside with other view modes istead of separatelly
* @type string $default_view_mode The default view mode

View File

@ -686,7 +686,7 @@ function tainacan_is_view_mode_enabled($view_mode_slug) {
* @type int $default_items_per_page Default number of items per page loaded
* @type bool $show_filters_button_inside_search_control Display the "hide filters" button inside of the search control instead of floating
* @type bool $start_with_filters_hidden Loads the filters list hidden from start
* @type bool $filters_as_modal Display the filters as a modal instead of a collapsable region on desktop
* @type bool $filters_as_modal Display the filters as a modal instead of a collapsible region on desktop
* @type bool $show_inline_view_mode_options Display view modes as inline icon buttons instead of the dropdown
* @type bool $show_fullscreen_with_view_modes Lists fullscreen viewmodes alongside with other view modes istead of separatelly
* @type string $default_view_mode The default view mode

View File

@ -77,11 +77,11 @@
show: 500,
hide: 300,
},
content: bgProcess.name ? bgProcess.name : $i18n.get('label_unamed_process'),
content: bgProcess.name ? bgProcess.name : $i18n.get('label_unnamed_process'),
autoHide: false, classes: ['tainacan-tooltip', 'tooltip', 'repository-tooltip'],
placement: 'auto-start'
}">
{{ bgProcess.name ? bgProcess.name : $i18n.get('label_unamed_process') }}</p>
{{ bgProcess.name ? bgProcess.name : $i18n.get('label_unnamed_process') }}</p>
</span>
<!-- Progress -->
<span

View File

@ -51,7 +51,7 @@
class="tainacan-icon tainacan-icon-18px"
:class="{ 'tainacan-icon-arrowdown': processesCollapses[index], 'tainacan-icon-arrowright': !processesCollapses[index] }" />
</span>
<p>{{ bgProcess.name ? bgProcess.name : $i18n.get('label_unamed_process') }}</p>
<p>{{ bgProcess.name ? bgProcess.name : $i18n.get('label_unnamed_process') }}</p>
</div>
<!-- <span
v-if="bgProcess.done <= 0 && bgProcess.status == 'closed'"

View File

@ -18,7 +18,7 @@
}
.button.is-primary, .button.is-secondary, .button.is-success {
.icon {
color: var(--taincan-background-color);
color: var(--tainacan-background-color);
}
}
.dropdown.is-disabled {

View File

@ -335,7 +335,7 @@ export default function ({ attributes, setAttributes, className, isSelected, cli
/>
<ToggleControl
label={__('Hide the metadata collapses', 'tainacan')}
help={ hideCollapses ? __('Do not show collapsable controls for each metadatum.', 'tainacan') : __('Toggle to show collapsable controls on each metadatum.', 'tainacan')}
help={ hideCollapses ? __('Do not show collapsible controls for each metadatum.', 'tainacan') : __('Toggle to show collapsible controls on each metadatum.', 'tainacan')}
checked={ hideCollapses }
onChange={ ( isChecked ) => {
hideCollapses = isChecked;
@ -673,7 +673,7 @@ export default function ({ attributes, setAttributes, className, isSelected, cli
tagName="p"
value={ termsAgreementMessage }
onChange={ ( inputContent ) => setAttributes( { termsAgreementMessage: inputContent } ) }
placeholder={ __( 'Type here a message requiring the user to agree with certain conditions.' ) }
placeholder={ __( 'Type a message requiring the user to agree with certain conditions.' ) }
/>
</div>
: null

View File

@ -280,9 +280,9 @@ return apply_filters( 'tainacan-i18n', [
'label_url' => __( 'URL', 'tainacan' ),
'label_select_file' => __( 'Select file', 'tainacan' ),
'label_selected_file' => __( 'Selected file', 'tainacan' ),
/* translators: Label for collapsable, accordeon-like elements */
/* translators: Label for collapsible, accordeon-like elements */
'label_expand_all' => __( 'Expand all', 'tainacan' ),
/* translators: Label for collapsable, accordeon-like elements */
/* translators: Label for collapsible, accordeon-like elements */
'label_collapse_all' => __( 'Collapse all', 'tainacan' ),
'label_view_term' => __( 'View Term', 'tainacan' ),
/* translators: 'Published' here refers to the sum of public and private items, not including draft or trashed ones. The are visible to those with permission */
@ -386,7 +386,7 @@ return apply_filters( 'tainacan-i18n', [
'label_delete_process' => __( 'Delete process', 'tainacan' ),
'label_process_failed' => __( 'Process failed', 'tainacan' ),
'label_max_options_to_show' => __( 'Max options to show', 'tainacan' ),
'label_unamed_process' => __( 'Unnamed process', 'tainacan' ),
'label_unnamed_process' => __( 'Unnamed process', 'tainacan' ),
'loading_processes' => __( 'Loading processes', 'tainacan' ),
'label_semantic_uri' => __( 'Semantic Uri', 'tainacan' ),
'label_view_collection_on_website' => __( 'View collection on website', 'tainacan' ),