xref: /plugin/deletepageguard/lang/en/settings.php (revision 994617c99eb4de6734040e280e3cda0f9a974997)
1<?php
2/**
3 * English language settings file for the Delete Page Guard plugin
4 *
5 * These strings are used by DokuWiki’s Configuration Manager to label the
6 * configuration options for this plugin and to provide helpful descriptions.
7 * Each key corresponds to a setting defined in conf/default.php. When
8 * translated into other languages, the keys should remain the same while
9 * the values are translated.
10 */
11
12/*
13 * patterns
14 *
15 * Provide one Perl‑compatible regular expression per line. A page will be
16 * considered “protected” if its ID or relative file path matches any of the
17 * configured patterns (depending on the “match against” option). When a
18 * non‑admin user attempts to save a protected page with empty content, the
19 * save is blocked and the page is not deleted. Example:
20 *
21 *   ^users:[^:]+:start$
22 *
23 * This pattern protects pages like “users:alice:start” and
24 * “users:bob:start”.
25 */
26$lang['patterns'] = 'Protected page patterns (one PCRE per line). Examples: ^users:[^:]+:start$';
27
28/*
29 * match_target
30 *
31 * Determines which value is tested against the regular expressions above.
32 * Choose “id” to match against the page ID (e.g. users:alice:start) or
33 * “filepath” to match against the relative file system path below the
34 * pages directory (e.g. users/alice/start.txt). Use the file path if your
35 * patterns are easier to express in that form.
36 */
37$lang['match_target'] = 'Match against (page ID or file path)';
38
39/*
40 * exempt_groups
41 *
42 * Comma‑separated list of additional group names whose members are allowed
43 * to delete protected pages (in addition to administrators). The group
44 * names should not include the leading “@”. Example: managers,editors
45 */
46$lang['exempt_groups'] = 'Exempt groups (comma‑separated)';
47
48/*
49 * trim_mode
50 *
51 * When enabled, pages containing only whitespace (spaces, tabs or
52 * newlines) are treated as empty and deletion is blocked. When disabled,
53 * whitespace‑only pages are considered non‑empty and will not trigger the
54 * delete guard.
55 */
56$lang['trim_mode'] = 'Treat whitespace‑only pages as empty';