|
| 1 | +<?php |
| 2 | +/** |
| 3 | + * Text shown in error messaging. |
| 4 | + */ |
| 5 | +return [ |
| 6 | + |
| 7 | + // Permissions |
| 8 | + 'permission' => 'You do not have permission to access the requested page.', |
| 9 | + 'permissionJson' => 'You do not have permission to perform the requested action.', |
| 10 | + |
| 11 | + // Auth |
| 12 | + 'error_user_exists_different_creds' => 'A user with the email :email already exists but with different credentials.', |
| 13 | + 'auth_pre_register_theme_prevention' => 'User account could not be registered for the provided details', |
| 14 | + 'email_already_confirmed' => 'Email has already been confirmed, Try logging in.', |
| 15 | + 'email_confirmation_invalid' => 'This confirmation token is not valid or has already been used, Please try registering again.', |
| 16 | + 'email_confirmation_expired' => 'The confirmation token has expired, A new confirmation email has been sent.', |
| 17 | + 'email_confirmation_awaiting' => 'The email address for the account in use needs to be confirmed', |
| 18 | + 'ldap_fail_anonymous' => 'LDAP access failed using anonymous bind', |
| 19 | + 'ldap_fail_authed' => 'LDAP access failed using given dn & password details', |
| 20 | + 'ldap_extension_not_installed' => 'LDAP PHP extension not installed', |
| 21 | + 'ldap_cannot_connect' => 'Cannot connect to ldap server, Initial connection failed', |
| 22 | + 'saml_already_logged_in' => 'Already logged in', |
| 23 | + 'saml_no_email_address' => 'Could not find an email address, for this user, in the data provided by the external authentication system', |
| 24 | + 'saml_invalid_response_id' => 'The request from the external authentication system is not recognised by a process started by this application. Navigating back after a login could cause this issue.', |
| 25 | + 'saml_fail_authed' => 'Login using :system failed, system did not provide successful authorization', |
| 26 | + 'oidc_already_logged_in' => 'Already logged in', |
| 27 | + 'oidc_no_email_address' => 'Could not find an email address, for this user, in the data provided by the external authentication system', |
| 28 | + 'oidc_fail_authed' => 'Login using :system failed, system did not provide successful authorization', |
| 29 | + 'social_no_action_defined' => 'No action defined', |
| 30 | + 'social_login_bad_response' => "Error received during :socialAccount login: \n:error", |
| 31 | + 'social_account_in_use' => 'This :socialAccount account is already in use, Try logging in via the :socialAccount option.', |
| 32 | + 'social_account_email_in_use' => 'The email :email is already in use. If you already have an account you can connect your :socialAccount account from your profile settings.', |
| 33 | + 'social_account_existing' => 'This :socialAccount is already attached to your profile.', |
| 34 | + 'social_account_already_used_existing' => 'This :socialAccount account is already used by another user.', |
| 35 | + 'social_account_not_used' => 'This :socialAccount account is not linked to any users. Please attach it in your profile settings. ', |
| 36 | + 'social_account_register_instructions' => 'If you do not yet have an account, You can register an account using the :socialAccount option.', |
| 37 | + 'social_driver_not_found' => 'Social driver not found', |
| 38 | + 'social_driver_not_configured' => 'Your :socialAccount social settings are not configured correctly.', |
| 39 | + 'invite_token_expired' => 'This invitation link has expired. You can instead try to reset your account password.', |
| 40 | + 'login_user_not_found' => 'A user for this action could not be found.', |
| 41 | + |
| 42 | + // System |
| 43 | + 'path_not_writable' => 'File path :filePath could not be uploaded to. Ensure it is writable to the server.', |
| 44 | + 'cannot_get_image_from_url' => 'Cannot get image from :url', |
| 45 | + 'cannot_create_thumbs' => 'The server cannot create thumbnails. Please check you have the GD PHP extension installed.', |
| 46 | + 'server_upload_limit' => 'The server does not allow uploads of this size. Please try a smaller file size.', |
| 47 | + 'server_post_limit' => 'The server cannot receive the provided amount of data. Try again with less data or a smaller file.', |
| 48 | + 'uploaded' => 'The server does not allow uploads of this size. Please try a smaller file size.', |
| 49 | + |
| 50 | + // Drawing & Images |
| 51 | + 'image_upload_error' => 'An error occurred uploading the image', |
| 52 | + 'image_upload_type_error' => 'The image type being uploaded is invalid', |
| 53 | + 'image_upload_replace_type' => 'Image file replacements must be of the same type', |
| 54 | + 'image_upload_memory_limit' => 'Failed to handle image upload and/or create thumbnails due to system resource limits.', |
| 55 | + 'image_thumbnail_memory_limit' => 'Failed to create image size variations due to system resource limits.', |
| 56 | + 'image_gallery_thumbnail_memory_limit' => 'Failed to create gallery thumbnails due to system resource limits.', |
| 57 | + 'drawing_data_not_found' => 'Drawing data could not be loaded. The drawing file might no longer exist or you may not have permission to access it.', |
| 58 | + |
| 59 | + // Attachments |
| 60 | + 'attachment_not_found' => 'Attachment not found', |
| 61 | + 'attachment_upload_error' => 'An error occurred uploading the attachment file', |
| 62 | + |
| 63 | + // Pages |
| 64 | + 'page_draft_autosave_fail' => 'Failed to save draft. Ensure you have internet connection before saving this page', |
| 65 | + 'page_draft_delete_fail' => 'Failed to delete page draft and fetch current page saved content', |
| 66 | + 'page_custom_home_deletion' => 'Cannot delete a page while it is set as a homepage', |
| 67 | + |
| 68 | + // Entities |
| 69 | + 'entity_not_found' => 'Entity not found', |
| 70 | + 'bookshelf_not_found' => 'Shelf not found', |
| 71 | + 'book_not_found' => 'Book not found', |
| 72 | + 'page_not_found' => 'Page not found', |
| 73 | + 'chapter_not_found' => 'Chapter not found', |
| 74 | + 'selected_book_not_found' => 'The selected book was not found', |
| 75 | + 'selected_book_chapter_not_found' => 'The selected Book or Chapter was not found', |
| 76 | + 'guests_cannot_save_drafts' => 'Guests cannot save drafts', |
| 77 | + |
| 78 | + // Users |
| 79 | + 'users_cannot_delete_only_admin' => 'You cannot delete the only admin', |
| 80 | + 'users_cannot_delete_guest' => 'You cannot delete the guest user', |
| 81 | + 'users_could_not_send_invite' => 'Could not create user since invite email failed to send', |
| 82 | + |
| 83 | + // Roles |
| 84 | + 'role_cannot_be_edited' => 'This role cannot be edited', |
| 85 | + 'role_system_cannot_be_deleted' => 'This role is a system role and cannot be deleted', |
| 86 | + 'role_registration_default_cannot_delete' => 'This role cannot be deleted while set as the default registration role', |
| 87 | + 'role_cannot_remove_only_admin' => 'This user is the only user assigned to the administrator role. Assign the administrator role to another user before attempting to remove it here.', |
| 88 | + |
| 89 | + // Comments |
| 90 | + 'comment_list' => 'An error occurred while fetching the comments.', |
| 91 | + 'cannot_add_comment_to_draft' => 'You cannot add comments to a draft.', |
| 92 | + 'comment_add' => 'An error occurred while adding / updating the comment.', |
| 93 | + 'comment_delete' => 'An error occurred while deleting the comment.', |
| 94 | + 'empty_comment' => 'Cannot add an empty comment.', |
| 95 | + |
| 96 | + // Error pages |
| 97 | + '404_page_not_found' => 'Page Not Found', |
| 98 | + 'sorry_page_not_found' => 'Sorry, The page you were looking for could not be found.', |
| 99 | + 'sorry_page_not_found_permission_warning' => 'If you expected this page to exist, you might not have permission to view it.', |
| 100 | + 'image_not_found' => 'Image Not Found', |
| 101 | + 'image_not_found_subtitle' => 'Sorry, The image file you were looking for could not be found.', |
| 102 | + 'image_not_found_details' => 'If you expected this image to exist it might have been deleted.', |
| 103 | + 'return_home' => 'Return to home', |
| 104 | + 'error_occurred' => 'An Error Occurred', |
| 105 | + 'app_down' => ':appName is down right now', |
| 106 | + 'back_soon' => 'It will be back up soon.', |
| 107 | + |
| 108 | + // Import |
| 109 | + 'import_zip_cant_read' => 'Could not read ZIP file.', |
| 110 | + 'import_zip_cant_decode_data' => 'Could not find and decode ZIP data.json content.', |
| 111 | + 'import_zip_no_data' => 'ZIP file data has no expected book, chapter or page content.', |
| 112 | + 'import_validation_failed' => 'Import ZIP failed to validate with errors:', |
| 113 | + 'import_zip_failed_notification' => 'Failed to import ZIP file.', |
| 114 | + 'import_perms_books' => 'You are lacking the required permissions to create books.', |
| 115 | + 'import_perms_chapters' => 'You are lacking the required permissions to create chapters.', |
| 116 | + 'import_perms_pages' => 'You are lacking the required permissions to create pages.', |
| 117 | + 'import_perms_images' => 'You are lacking the required permissions to create images.', |
| 118 | + 'import_perms_attachments' => 'You are lacking the required permission to create attachments.', |
| 119 | + |
| 120 | + // API errors |
| 121 | + 'api_no_authorization_found' => 'No authorization token found on the request', |
| 122 | + 'api_bad_authorization_format' => 'An authorization token was found on the request but the format appeared incorrect', |
| 123 | + 'api_user_token_not_found' => 'No matching API token was found for the provided authorization token', |
| 124 | + 'api_incorrect_token_secret' => 'The secret provided for the given used API token is incorrect', |
| 125 | + 'api_user_no_api_permission' => 'The owner of the used API token does not have permission to make API calls', |
| 126 | + 'api_user_token_expired' => 'The authorization token used has expired', |
| 127 | + |
| 128 | + // Settings & Maintenance |
| 129 | + 'maintenance_test_email_failure' => 'Error thrown when sending a test email:', |
| 130 | + |
| 131 | + // HTTP errors |
| 132 | + 'http_ssr_url_no_match' => 'The URL does not match the configured allowed SSR hosts', |
| 133 | +]; |
0 commit comments