Skip to content

Commit

Permalink
Normalize delete vs remove language
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanheywood committed Dec 31, 2024
1 parent c935ed1 commit 23ff958
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions cleaner/README.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@

A cleaner can do almost anything. But they broadly fit into a few categories:

* A cleaner remove data
* A cleaner delete data

* A cleaner transforms data, by inserting random data or randomizing the existing data


As a general rule for speed, all the data removal steps should be run first
so we aren't wasting time transforming them only to be removed later. Each
so we aren't wasting time transforming them only to be deleted later. Each
task has a sortorder which reflects this order, a good rule of thunb is to
use the CONTEXT_ numbers, so CONTEXT_SYSTEM (10) cleaners will be run first,
then CONTEXT_USER (30) etc.
2 changes: 1 addition & 1 deletion cleaner/backup/lang/en/cleaner_backup.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@
$string['pluginname'] = 'Delete backup files';
$string['privacy:metadata'] = 'The Delete backup files plugin does not store any personal data.';
$string['fastdelete'] = 'Fast delete';
$string['fastdelete_desc'] = 'Perform a fast delete. This will remove file references from the file table, but will not remove the actual files on disk. This is useful when the filesystem stores files in a remote location, or files are shared between environments.';
$string['fastdelete_desc'] = 'Perform a fast delete. This will delete file references from the file table, but will not delete the actual files on disk. This is useful when the filesystem stores files in a remote location, or files are shared between environments.';
2 changes: 1 addition & 1 deletion cleaner/completion/lang/en/cleaner_completion.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
$string['deletecoursecompletiondesc'] = 'Delete course completion.';
$string['category'] = 'Category';
$string['categories'] = 'Categories';
$string['categoriesdesc'] = 'Remove completion data for the courses in the selected categories only. If not selected all categories will be processed.';
$string['categoriesdesc'] = 'Delete completion data for the courses in the selected categories only. If not selected all categories will be processed.';
$string['coursename'] = 'Full name of course to keep completion';
$string['courses'] = 'Courses to skip';
$string['coursesdesc'] = 'Shortname of courses that should never be cleaned, separated by a new line.';
12 changes: 6 additions & 6 deletions cleaner/config/lang/en/cleaner_config.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

$string['pluginname'] = 'Remove config';
$string['pluginname'] = 'Delete config';
$string['privacy:metadata'] = 'The cleaner config plugin does not store any personal data.';
$string['names'] = 'Config items to remove';
$string['namesdesc'] = 'A list of config item names, one per line, which if matched will be removed. You can use the % wildcard to match multiple names.';
$string['vals'] = 'Config values to remove';
$string['valsdesc'] = 'A list of config item values, one per line, which if found in any config item will be removed. You can use the % wildcard to match multiple values.';
$string['names'] = 'Config items to delete';
$string['namesdesc'] = 'A list of config item names, one per line, which if matched will be deleted. You can use the % wildcard to match multiple names.';
$string['vals'] = 'Config values to delete';
$string['valsdesc'] = 'A list of config item values, one per line, which if found in any config item will be deleted. You can use the % wildcard to match multiple values.';

$string['name'] = 'Config name';
$string['value'] = 'Config value to be removed';
$string['value'] = 'Config value to be deleted';
4 changes: 2 additions & 2 deletions cleaner/courses/lang/en/cleaner_courses.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

$string['pluginname'] = 'Remove courses';
$string['pluginname'] = 'Delete courses';
$string['privacy:metadata'] = 'The cleaner courses plugin does not store any personal data.';
$string['category'] = 'Category';
$string['categories'] = 'Categories';
$string['categoriesdesc'] = 'Remove courses in the selected categories only.';
$string['categoriesdesc'] = 'Delete courses in the selected categories only.';
$string['coursename'] = 'Full name of course to keep';
$string['courses'] = 'Courses';
$string['coursesdesc'] = 'Shortname of courses that should never be deleted, separated by a new line.';
Expand Down
2 changes: 1 addition & 1 deletion cleaner/delete_users/lang/en/cleaner_delete_users.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

$string['pluginname'] = 'Remove users';
$string['pluginname'] = 'Delete users';
$string['privacy:metadata'] = 'The cleaner delete users plugin does not store any personal data.';
$string['minimumage'] = 'Minimum age';
$string['minimumagedesc'] = 'Keep users who logged in within the last <i>n</i> days.';
Expand Down
2 changes: 1 addition & 1 deletion cleaner/environment_matrix/classes/local/matrix.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ public static function populate_envbar_environments() {
/**
* Returns a filtered list of environments that has been configured in Environment bar.
*
* When when environments have been removed in the Environment bar config, do not display them here.
* When when environments have been deleted in the Environment bar config, do not display them here.
*
* @return array|bool
*/
Expand Down
2 changes: 1 addition & 1 deletion cleaner/environment_matrix/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@

}

// Else we will reset / remove all the unticked groups.
// Else we will reset / delete all the unticked groups.
} else {
foreach ($envs as $envid => $value) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

$string['pluginname'] = 'Remove standard logs';
$string['pluginname'] = 'Delete standard logs';
$string['privacy:metadata'] = 'The cleaner logstore standard plugin does not store any personal data.';
$string['truncate'] = 'Truncate all standard database logs';

0 comments on commit 23ff958

Please sign in to comment.