Translations for the form manager class.
Description
Source
File: src/translations/translations-form-manager.php
class Translations_Form_Manager extends Translations_Manager { /** * Initializes the translation strings. * * @since 1.0.0 */ protected function init() { $this->translations = array( /* --- Form --- */ 'db_insert_error' => __( 'Could not insert form into the database.', 'torro-forms' ), 'db_update_error' => __( 'Could not update form in the database.', 'torro-forms' ), /* translators: %s: meta key */ 'meta_delete_error' => __( 'Could not delete form metadata for key “%s”.', 'torro-forms' ), /* translators: %s: meta key */ 'meta_update_error' => __( 'Could not update form metadata for key “%s”.', 'torro-forms' ), 'db_fetch_error_missing_id' => __( 'Could not fetch form from the database because it is missing an ID.', 'torro-forms' ), 'db_fetch_error' => __( 'Could not fetch form from the database.', 'torro-forms' ), 'db_delete_error_missing_id' => __( 'Could not delete form from the database because it is missing an ID.', 'torro-forms' ), 'db_delete_error' => __( 'Could not delete form from the database.', 'torro-forms' ), 'meta_delete_all_error' => __( 'Could not delete the form metadata. The form itself was deleted successfully though.', 'torro-forms' ), /* --- REST Forms controller --- */ 'rest_invalid_id' => __( 'Invalid form ID.', 'torro-forms' ), 'rest_item_exists' => __( 'Cannot create an existing form.', 'torro-forms' ), 'rest_invalid_page_number' => _x( 'The page number requested is larger than the number of pages available.', 'form endpoint', 'torro-forms' ), 'rest_cannot_edit_items' => __( 'Sorry, you are not allowed to edit forms.', 'torro-forms' ), 'rest_cannot_read_items' => __( 'Sorry, you are not allowed to view forms.', 'torro-forms' ), 'rest_cannot_read_others_items' => __( 'Sorry, you are not allowed to view forms by this user.', 'torro-forms' ), 'rest_cannot_edit_item' => __( 'Sorry, you are not allowed to edit this form.', 'torro-forms' ), 'rest_cannot_edit_others_item' => __( 'Sorry, you are not allowed to edit a form as this user.', 'torro-forms' ), 'rest_cannot_read_item' => __( 'Sorry, you are not allowed to view this form.', 'torro-forms' ), 'rest_cannot_create_items' => __( 'Sorry, you are not allowed to create forms.', 'torro-forms' ), 'rest_cannot_create_others_items' => __( 'Sorry, you are not allowed to create forms as this user.', 'torro-forms' ), 'rest_cannot_delete_item' => __( 'Sorry, you are not allowed to delete this form.', 'torro-forms' ), 'rest_cannot_publish_item' => __( 'Sorry, you are not allowed to publish this form.', 'torro-forms' ), 'rest_item_id_description' => __( 'Unique identifier for the form.', 'torro-forms' ), 'rest_item_slug_description' => __( 'A unique alphanumeric identifier for the form.', 'torro-forms' ), 'rest_item_title_description' => __( 'The form title.', 'torro-forms' ), 'rest_collection_include_description' => __( 'Limit result set to specific form IDs.', 'torro-forms' ), 'rest_collection_exclude_description' => __( 'Ensure result set excludes specific form IDs.', 'torro-forms' ), 'rest_collection_orderby_description' => __( 'Sort collection by form attribute.', 'torro-forms' ), 'rest_collection_order_description' => __( 'Order form sort attribute ascending or descending.', 'torro-forms' ), 'rest_collection_slug_description' => __( 'Limit result set to forms with one or more specific slugs.', 'torro-forms' ), 'rest_collection_title_description' => __( 'Limit result set to forms with a specific title.', 'torro-forms' ), ); } }
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |
Methods
- init — Initializes the translation strings.