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