xref: /plugin/deletepageguard/lang/en/lang.php (revision 1a97af9eab9d5c777e1efac4ced808b8ed81e4af)
1e39ccd63SJonny Dee<?php
2e39ccd63SJonny Dee/**
30da69785SJohann Duscher * English language file for the Delete Page Guard plugin.
40da69785SJohann Duscher *
50da69785SJohann Duscher * @license GPL 2 (https://www.gnu.org/licenses/gpl-2.0.html) - see LICENSE.md
60da69785SJohann Duscher * @author  Johann Duscher <jonny.dee@posteo.net>
70da69785SJohann Duscher * @copyright 2025 Johann Duscher
8e39ccd63SJonny Dee */
9e39ccd63SJonny Dee
10e39ccd63SJonny Dee$lang['deny_msg'] = 'Deleting this page is not allowed.';
110da69785SJohann Duscher
120da69785SJohann Duscher// Configuration Manager labels
130da69785SJohann Duscher$lang['patterns'] = 'Protected page patterns (one PCRE per line). Examples: ^users:[^:]+:start$';
140da69785SJohann Duscher$lang['match_target'] = 'Match against (page ID or file path)';
150da69785SJohann Duscher$lang['exempt_groups'] = 'Exempt groups (comma‑separated)';
160da69785SJohann Duscher$lang['trim_mode'] = 'Treat whitespace‑only pages as empty';
170da69785SJohann Duscher
18*1a97af9eSJohann Duscher// Pattern validation messages for administrators
19*1a97af9eSJohann Duscher$lang['pattern_redos_warning'] = 'Pattern "%s" may cause performance issues (potential ReDoS attack)';
20*1a97af9eSJohann Duscher$lang['pattern_too_long'] = 'Pattern "%s" is too long (maximum 1000 characters allowed)';
21*1a97af9eSJohann Duscher$lang['pattern_invalid_syntax'] = 'Pattern "%s" has invalid regex syntax: %s';
22*1a97af9eSJohann Duscher$lang['config_validation_errors'] = 'Some regex patterns in Delete Page Guard configuration have validation errors. Please check the configuration.';
23*1a97af9eSJohann Duscher
24*1a97af9eSJohann Duscher// Admin interface
25*1a97af9eSJohann Duscher$lang['menu'] = 'Delete Page Guard';
26*1a97af9eSJohann Duscher$lang['admin_title'] = 'Delete Page Guard - Pattern Validation';
27*1a97af9eSJohann Duscher$lang['test_patterns_title'] = 'Test Pattern Configuration';
28*1a97af9eSJohann Duscher$lang['test_patterns_help'] = 'Enter one regular expression pattern per line to validate them. This helps you test patterns before saving them to the configuration.';
29*1a97af9eSJohann Duscher$lang['validate_button'] = 'Validate Patterns';
30*1a97af9eSJohann Duscher$lang['validation_results_title'] = 'Validation Results';
31*1a97af9eSJohann Duscher$lang['validation_results'] = 'Pattern Validation Results';
32*1a97af9eSJohann Duscher$lang['no_patterns'] = 'No patterns to validate.';
33*1a97af9eSJohann Duscher$lang['all_patterns_valid'] = 'All %d patterns are valid!';
34*1a97af9eSJohann Duscher$lang['some_patterns_invalid'] = 'Some patterns have issues. Please fix them before using.';
35*1a97af9eSJohann Duscher
36*1a97af9eSJohann Duscher// Detailed error messages for admin interface
37*1a97af9eSJohann Duscher$lang['error_pattern_too_long'] = 'Pattern is too long (maximum 1000 characters allowed)';
38*1a97af9eSJohann Duscher$lang['error_pattern_redos'] = 'Pattern may cause performance issues (potential ReDoS attack)';
39*1a97af9eSJohann Duscher$lang['error_pattern_syntax'] = 'Invalid regular expression syntax';
40*1a97af9eSJohann Duscher
410da69785SJohann Duscher// Legacy configuration keys (for backward compatibility)
42e39ccd63SJonny Dee$lang['cfg_patterns'] = 'Protected page patterns (one per line, as PCRE)';
43e39ccd63SJonny Dee$lang['cfg_match_target'] = 'Match against';
44e39ccd63SJonny Dee$lang['cfg_match_target_o_id'] = 'Page ID (e.g. users:john:start)';
45e39ccd63SJonny Dee$lang['cfg_match_target_o_filepath'] = 'Relative file path (e.g. users/john/start.txt)';
46e39ccd63SJonny Dee$lang['cfg_exempt_groups'] = 'Extra groups allowed to delete (comma separated)';
47e39ccd63SJonny Dee$lang['cfg_trim_mode'] = 'Treat whitespace‑only pages as empty';