Skip to content

Commit

Permalink
wip, added instructions in admin settings
Browse files Browse the repository at this point in the history
added links and instructions on how to use the allow/disallow language locale system
  • Loading branch information
gardenboi committed Dec 15, 2023
1 parent 0f1f72b commit e03ddac
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions admin/CF7_AntiSpam_Admin_Customizations.php
Original file line number Diff line number Diff line change
Expand Up @@ -779,10 +779,16 @@ public function cf7a_check_geoip() {

/** It prints the language info text */
public function cf7a_check_language() {
$iso_639 = '<a href="' . esc_url('https://www.loc.gov/standards/iso639-2/php/code_list.php') . '">ISO 639-1</a>';
$iso_3166 = '<a href="' . esc_url('https://www.iso.org/obp/ui/#search') . '">ISO 3166-2</a>';
printf(
'<p>%s</p><p>%s</p>',
esc_html__( 'Check the user browser language / user keyboard. Add a country code (us) or language (en) each line, you can insert them comma separated and when you save they will be formatted with the standard one per line.', 'cf7-antispam' ),
esc_html__( 'The browser language detection method is not as accurate as geo-ip because it relies on data provided by the browser and can easily bypassed however, less sophisticated bots do not pass this test', 'cf7-antispam' )
'<p>%s</p><p>%s<br>%s</p><p>%s<br>%s<br>%s</p>',
esc_html__( 'Check the user browser language / user keyboard. Add a country code / locale (US), language (en) or both (en-US) each line, in the latter case you must delimit with a "-" (Hyphen) character , you can insert them comma separated and when you save they will be formatted with the standard one per line.', 'cf7-antispam' ),
esc_html__( 'The browser language detection and country detection are separated, you can choose one of them each line or both.', 'cf7-antispam' ),
esc_html__( 'The language detection must be lower case, while the country detection upper case.', 'cf7-antispam' ),
esc_html__( 'If you are unsure please consult these ISO standards:', 'cf7-antispam' ),
esc_html__( '- Language codes (use ctrl+f for search) ', 'cf7-antispam') . wp_kses( $iso_639, array( 'a' => array( 'href' => array() ) ) ),
esc_html__( '- Country codes (refer to "Alpha-2 code"), ', 'cf7-antispam') . wp_kses( $iso_3166, array( 'a' => array( 'href' => array() ) ) )
);
}

Expand Down

0 comments on commit e03ddac

Please sign in to comment.