share
8 years ago
.htaccess
11 years ago
anti_malware.php
4 years ago
class-coupon.php
6 months ago
class-email-sodium.php
3 weeks ago
class-firewall-log.php
1 week ago
class-helpers.php
7 months ago
class-import-export.php
3 months ago
class-ip.php
4 months ago
class-nfw-database.php
6 months ago
class-nfw-session.php
1 week ago
class-php-session.php
1 year ago
class-plugin-upgrade.php
1 week ago
class_mail.php
3 weeks ago
event_updates.php
9 months ago
firewall.php
4 months ago
fw_centlog.php
1 week ago
fw_fileguard.php
4 months ago
fw_livelog.php
1 year ago
help.php
3 weeks ago
helpers.php
1 week ago
i18n-extra.php
3 weeks ago
i18n.php
1 year ago
index.html
13 years ago
init_update.php
1 year ago
install.php
1 year ago
install_default.php
6 months ago
loader.php
6 months ago
mail_template_firewall.php
1 year ago
mail_template_plugin.php
1 month ago
scheduled_tasks.php
3 years ago
settings_dashboard.php
1 month ago
settings_dashboard_about.php
3 weeks ago
settings_dashboard_statistics.php
1 month ago
settings_event_notifications.php
1 month ago
settings_events.php
1 month ago
settings_firewall_options.php
1 month ago
settings_firewall_policies.php
1 week ago
settings_login_protection.php
1 month ago
settings_logs.php
1 month ago
settings_logs_firewall_log.php
3 weeks ago
settings_logs_live_log.php
1 month ago
settings_monitoring.php
3 weeks ago
settings_monitoring_file_check.php
1 month ago
settings_monitoring_file_guard.php
1 month ago
settings_network.php
1 month ago
settings_security_rules.php
1 month ago
settings_security_rules_editor.php
1 month ago
settings_security_rules_update.php
1 week ago
sign.pub
7 years ago
thickbox.php
4 years ago
widget.php
3 years ago
wpplus.php
3 months ago
i18n.php
55 lines
| 1 | <?php |
| 2 | /* |
| 3 | +=====================================================================+ |
| 4 | | _ _ _ _ _____ _ _ _ | |
| 5 | | | \ | (_)_ __ (_) __ _| ___(_)_ __ _____ ____ _| | | | |
| 6 | | | \| | | '_ \ | |/ _` | |_ | | '__/ _ \ \ /\ / / _` | | | | |
| 7 | | | |\ | | | | || | (_| | _| | | | | __/\ V V / (_| | | | | |
| 8 | | |_| \_|_|_| |_|/ |\__,_|_| |_|_| \___| \_/\_/ \__,_|_|_| | |
| 9 | | |__/ | |
| 10 | | (c) NinTechNet Limited ~ https://nintechnet.com/ | |
| 11 | +=====================================================================+ |
| 12 | */ |
| 13 | |
| 14 | /** |
| 15 | * Since WP 6.7, translation loading must not be triggered too early. |
| 16 | */ |
| 17 | function nfw_wp_i18n_definitions() { |
| 18 | |
| 19 | global $err_fw; |
| 20 | |
| 21 | $null = esc_html__('A true Web Application Firewall to protect and secure WordPress.', 'ninjafirewall'); |
| 22 | $err_fw = [ |
| 23 | 1 => esc_html__('Cannot find WordPress configuration file', 'ninjafirewall'), |
| 24 | 2 => esc_html__('Cannot read WordPress configuration file', 'ninjafirewall'), |
| 25 | 3 => esc_html__('Cannot retrieve WordPress database credentials', 'ninjafirewall'), |
| 26 | 4 => esc_html__('Cannot connect to WordPress database', 'ninjafirewall'), |
| 27 | 5 => esc_html__('Cannot retrieve user options from database (#2)', 'ninjafirewall'), |
| 28 | 6 => esc_html__('Cannot retrieve user options from database (#3)', 'ninjafirewall'), |
| 29 | 7 => esc_html__('Cannot retrieve user rules from database (#2)', 'ninjafirewall'), |
| 30 | 8 => esc_html__('Cannot retrieve user rules from database (#3)', 'ninjafirewall'), |
| 31 | 9 => sprintf( |
| 32 | esc_html__('The firewall has been disabled from the %1$sadministration console%2$s', 'ninjafirewall'), |
| 33 | '<a href="admin.php?page=nfsubopt">', '</a>' |
| 34 | ), |
| 35 | 10 => esc_html__('Unable to communicate with the firewall. Please check your settings', 'ninjafirewall'), |
| 36 | 11 => esc_html__('Cannot retrieve user options from database (#1)', 'ninjafirewall'), |
| 37 | 12 => esc_html__('Cannot retrieve user rules from database (#1)', 'ninjafirewall'), |
| 38 | 13 => sprintf( |
| 39 | esc_html__('The firewall cannot access its log and cache folders. If you changed the name of WordPress %1$s or %2$s folders, you must define NinjaFirewall\'s built-in %3$s constant (see %4$s for more info)', 'ninjafirewall'), |
| 40 | '<code>/wp-content/</code>', |
| 41 | '<code>/plugins/</code>', |
| 42 | '<code>NFW_LOG_DIR</code>', |
| 43 | "<a href='https://blog.nintechnet.com/ninjafirewall-wp-edition-the-htninja-configuration-file/' target='_blank'>Path to NinjaFirewall's log and cache directory</a>" |
| 44 | ), |
| 45 | 14 => esc_html__('The PHP msqli extension is missing or not loaded.', 'ninjafirewall'), |
| 46 | 15 => esc_html__('Cannot retrieve user options from database (#4)', 'ninjafirewall'), |
| 47 | 16 => esc_html__('Cannot retrieve user rules from database (#4)', 'ninjafirewall') |
| 48 | ]; |
| 49 | } |
| 50 | |
| 51 | add_action('init', 'nfw_wp_i18n_definitions'); |
| 52 | |
| 53 | // --------------------------------------------------------------------- |
| 54 | // EOF |
| 55 |