mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-23 22:31:23 +08:00
723f108bd9
Altered & updated permissions repo, and existing connected RoleController to suit. Also extracts in-app success notifications to auto activity system. Tweaked tests where required.
79 lines
3.4 KiB
PHP
79 lines
3.4 KiB
PHP
<?php
|
|
/**
|
|
* Activity text strings.
|
|
* Is used for all the text within activity logs & notifications.
|
|
*/
|
|
return [
|
|
|
|
// Pages
|
|
'page_create' => 'created page',
|
|
'page_create_notification' => 'Page successfully created',
|
|
'page_update' => 'updated page',
|
|
'page_update_notification' => 'Page successfully updated',
|
|
'page_delete' => 'deleted page',
|
|
'page_delete_notification' => 'Page successfully deleted',
|
|
'page_restore' => 'restored page',
|
|
'page_restore_notification' => 'Page successfully restored',
|
|
'page_move' => 'moved page',
|
|
|
|
// Chapters
|
|
'chapter_create' => 'created chapter',
|
|
'chapter_create_notification' => 'Chapter successfully created',
|
|
'chapter_update' => 'updated chapter',
|
|
'chapter_update_notification' => 'Chapter successfully updated',
|
|
'chapter_delete' => 'deleted chapter',
|
|
'chapter_delete_notification' => 'Chapter successfully deleted',
|
|
'chapter_move' => 'moved chapter',
|
|
|
|
// Books
|
|
'book_create' => 'created book',
|
|
'book_create_notification' => 'Book successfully created',
|
|
'book_create_from_chapter' => 'converted chapter to book',
|
|
'book_create_from_chapter_notification' => 'Chapter successfully converted to a book',
|
|
'book_update' => 'updated book',
|
|
'book_update_notification' => 'Book successfully updated',
|
|
'book_delete' => 'deleted book',
|
|
'book_delete_notification' => 'Book successfully deleted',
|
|
'book_sort' => 'sorted book',
|
|
'book_sort_notification' => 'Book successfully re-sorted',
|
|
|
|
// Bookshelves
|
|
'bookshelf_create' => 'created shelf',
|
|
'bookshelf_create_notification' => 'Shelf successfully created',
|
|
'bookshelf_create_from_book' => 'converted book to shelf',
|
|
'bookshelf_create_from_book_notification' => 'Book successfully converted to a shelf',
|
|
'bookshelf_update' => 'updated shelf',
|
|
'bookshelf_update_notification' => 'Shelf successfully updated',
|
|
'bookshelf_delete' => 'deleted shelf',
|
|
'bookshelf_delete_notification' => 'Shelf successfully deleted',
|
|
|
|
// Favourites
|
|
'favourite_add_notification' => '":name" has been added to your favourites',
|
|
'favourite_remove_notification' => '":name" has been removed from your favourites',
|
|
|
|
// MFA
|
|
'mfa_setup_method_notification' => 'Multi-factor method successfully configured',
|
|
'mfa_remove_method_notification' => 'Multi-factor method successfully removed',
|
|
|
|
// Webhooks
|
|
'webhook_create' => 'created webhook',
|
|
'webhook_create_notification' => 'Webhook successfully created',
|
|
'webhook_update' => 'updated webhook',
|
|
'webhook_update_notification' => 'Webhook successfully updated',
|
|
'webhook_delete' => 'deleted webhook',
|
|
'webhook_delete_notification' => 'Webhook successfully deleted',
|
|
|
|
// Users
|
|
'user_update_notification' => 'User successfully updated',
|
|
'user_delete_notification' => 'User successfully removed',
|
|
|
|
// Roles
|
|
'role_create_notification' => 'Role successfully created',
|
|
'role_update_notification' => 'Role successfully updated',
|
|
'role_delete_notification' => 'Role successfully deleted',
|
|
|
|
// Other
|
|
'commented_on' => 'commented on',
|
|
'permissions_update' => 'updated permissions',
|
|
];
|