Contact Form 7 - Version 4.3

Version Description

  • reCAPTCHA module has been introduced.
  • Translations for Croatian, Danish, Persian, and Swedish have been updated.
  • WordPress 4.2 or higher is required.
Download this release

Release Info

Developer takayukister
Plugin Icon 128x128 Contact Form 7
Version 4.3
Comparing to
See all releases

Code changes from version 4.2.2 to 4.3

admin/admin.php CHANGED
@@ -4,6 +4,12 @@ require_once WPCF7_PLUGIN_DIR . '/admin/includes/admin-functions.php';
4
  require_once WPCF7_PLUGIN_DIR . '/admin/includes/help-tabs.php';
5
  require_once WPCF7_PLUGIN_DIR . '/admin/includes/tag-generator.php';
6
 
 
 
 
 
 
 
7
  add_action( 'admin_menu', 'wpcf7_admin_menu', 9 );
8
 
9
  function wpcf7_admin_menu() {
@@ -175,7 +181,6 @@ function wpcf7_load_contact_form_admin() {
175
  array( 'WPCF7_Contact_Form_List_Table', 'define_columns' ) );
176
 
177
  add_screen_option( 'per_page', array(
178
- 'label' => __( 'Contact Forms', 'contact-form-7' ),
179
  'default' => 20,
180
  'option' => 'cfseven_contact_forms_per_page' ) );
181
  }
@@ -341,22 +346,21 @@ function wpcf7_admin_integration_page() {
341
  add_action( 'wpcf7_admin_notices', 'wpcf7_admin_updated_message' );
342
 
343
  function wpcf7_admin_updated_message() {
344
- if ( empty( $_REQUEST['message'] ) )
345
  return;
 
346
 
347
- if ( 'created' == $_REQUEST['message'] )
348
- $updated_message = esc_html( __( 'Contact form created.', 'contact-form-7' ) );
349
- elseif ( 'saved' == $_REQUEST['message'] )
350
- $updated_message = esc_html( __( 'Contact form saved.', 'contact-form-7' ) );
351
- elseif ( 'deleted' == $_REQUEST['message'] )
352
- $updated_message = esc_html( __( 'Contact form deleted.', 'contact-form-7' ) );
353
-
354
- if ( empty( $updated_message ) )
355
- return;
356
 
357
- ?>
358
- <div id="message" class="updated"><p><?php echo $updated_message; ?></p></div>
359
- <?php
360
  }
361
 
362
  add_filter( 'plugin_action_links', 'wpcf7_plugin_action_links', 10, 2 );
@@ -373,28 +377,23 @@ function wpcf7_plugin_action_links( $links, $file ) {
373
  return $links;
374
  }
375
 
376
- add_action( 'admin_notices', 'wpcf7_old_wp_version_error', 9 );
377
 
378
  function wpcf7_old_wp_version_error() {
379
- global $plugin_page;
380
-
381
- if ( 'wpcf7' != substr( $plugin_page, 0, 5 ) ) {
382
- return;
383
- }
384
-
385
  $wp_version = get_bloginfo( 'version' );
386
 
387
- if ( ! version_compare( $wp_version, WPCF7_REQUIRED_WP_VERSION, '<' ) )
388
  return;
 
389
 
390
  ?>
391
- <div class="error">
392
  <p><?php echo sprintf( __( '<strong>Contact Form 7 %1$s requires WordPress %2$s or higher.</strong> Please <a href="%3$s">update WordPress</a> first.', 'contact-form-7' ), WPCF7_VERSION, WPCF7_REQUIRED_WP_VERSION, admin_url( 'update-core.php' ) ); ?></p>
393
  </div>
394
  <?php
395
  }
396
 
397
- add_action( 'wpcf7_admin_notices', 'wpcf7_welcome_panel', 2 );
398
 
399
  function wpcf7_welcome_panel() {
400
  global $plugin_page;
@@ -489,6 +488,7 @@ function wpcf7_not_allowed_to_edit() {
489
  $message = __( "You are not allowed to edit this contact form.",
490
  'contact-form-7' );
491
 
492
- echo sprintf( '<div class="notice notice-warning"><p>%s</p></div>',
 
493
  esc_html( $message ) );
494
  }
4
  require_once WPCF7_PLUGIN_DIR . '/admin/includes/help-tabs.php';
5
  require_once WPCF7_PLUGIN_DIR . '/admin/includes/tag-generator.php';
6
 
7
+ add_action( 'admin_init', 'wpcf7_admin_init' );
8
+
9
+ function wpcf7_admin_init() {
10
+ do_action( 'wpcf7_admin_init' );
11
+ }
12
+
13
  add_action( 'admin_menu', 'wpcf7_admin_menu', 9 );
14
 
15
  function wpcf7_admin_menu() {
181
  array( 'WPCF7_Contact_Form_List_Table', 'define_columns' ) );
182
 
183
  add_screen_option( 'per_page', array(
 
184
  'default' => 20,
185
  'option' => 'cfseven_contact_forms_per_page' ) );
186
  }
346
  add_action( 'wpcf7_admin_notices', 'wpcf7_admin_updated_message' );
347
 
348
  function wpcf7_admin_updated_message() {
349
+ if ( empty( $_REQUEST['message'] ) ) {
350
  return;
351
+ }
352
 
353
+ if ( 'created' == $_REQUEST['message'] ) {
354
+ $updated_message = __( 'Contact form created.', 'contact-form-7' );
355
+ } elseif ( 'saved' == $_REQUEST['message'] ) {
356
+ $updated_message = __( 'Contact form saved.', 'contact-form-7' );
357
+ } elseif ( 'deleted' == $_REQUEST['message'] ) {
358
+ $updated_message = __( 'Contact form deleted.', 'contact-form-7' );
359
+ }
 
 
360
 
361
+ if ( ! empty( $updated_message ) ) {
362
+ echo sprintf( '<div id="message" class="updated notice notice-success is-dismissible"><p>%s</p></div>', esc_html( $updated_message ) );
363
+ }
364
  }
365
 
366
  add_filter( 'plugin_action_links', 'wpcf7_plugin_action_links', 10, 2 );
377
  return $links;
378
  }
379
 
380
+ add_action( 'wpcf7_admin_notices', 'wpcf7_old_wp_version_error', 2 );
381
 
382
  function wpcf7_old_wp_version_error() {
 
 
 
 
 
 
383
  $wp_version = get_bloginfo( 'version' );
384
 
385
+ if ( ! version_compare( $wp_version, WPCF7_REQUIRED_WP_VERSION, '<' ) ) {
386
  return;
387
+ }
388
 
389
  ?>
390
+ <div class="notice notice-error is-dismissible">
391
  <p><?php echo sprintf( __( '<strong>Contact Form 7 %1$s requires WordPress %2$s or higher.</strong> Please <a href="%3$s">update WordPress</a> first.', 'contact-form-7' ), WPCF7_VERSION, WPCF7_REQUIRED_WP_VERSION, admin_url( 'update-core.php' ) ); ?></p>
392
  </div>
393
  <?php
394
  }
395
 
396
+ add_action( 'wpcf7_admin_notices', 'wpcf7_welcome_panel', 4 );
397
 
398
  function wpcf7_welcome_panel() {
399
  global $plugin_page;
488
  $message = __( "You are not allowed to edit this contact form.",
489
  'contact-form-7' );
490
 
491
+ echo sprintf(
492
+ '<div class="notice notice-warning is-dismissible"><p>%s</p></div>',
493
  esc_html( $message ) );
494
  }
admin/edit-contact-form.php CHANGED
@@ -143,9 +143,11 @@ if ( $post ) :
143
  </div><!-- #delete-action -->
144
  <?php endif; ?>
145
 
146
- <div class="save-contact-form textright">
 
147
  <?php wpcf7_admin_save_button( $post_id ); ?>
148
  </div>
 
149
  </div><!-- #major-publishing-actions -->
150
  </div><!-- #submitpost -->
151
  </div>
143
  </div><!-- #delete-action -->
144
  <?php endif; ?>
145
 
146
+ <div id="publishing-action">
147
+ <span class="spinner"></span>
148
  <?php wpcf7_admin_save_button( $post_id ); ?>
149
  </div>
150
+ <div class="clear"></div>
151
  </div><!-- #major-publishing-actions -->
152
  </div><!-- #submitpost -->
153
  </div>
admin/js/scripts.js CHANGED
@@ -78,6 +78,10 @@
78
  if ('copy' != this.action.value) {
79
  $(window).off('beforeunload');
80
  }
 
 
 
 
81
  });
82
  });
83
 
78
  if ('copy' != this.action.value) {
79
  $(window).off('beforeunload');
80
  }
81
+
82
+ if ('save' == this.action.value) {
83
+ $('#publishing-action .spinner').addClass('is-active');
84
+ }
85
  });
86
  });
87
 
admin/js/tag-generator.js CHANGED
@@ -88,26 +88,7 @@
88
 
89
  var options = [];
90
 
91
- var size = scope.find(':input[name="size"]').val() || '';
92
- var maxlength = scope.find(':input[name="maxlength"]').val() || '';
93
- var cols = scope.find(':input[name="cols"]').val() || '';
94
- var rows = scope.find(':input[name="rows"]').val() || '';
95
-
96
- if ((cols || rows) && maxlength) {
97
- options.push(cols + 'x' + rows + '/' + maxlength);
98
- } else if (cols || rows) {
99
- options.push(cols + 'x' + rows);
100
- } else if (size || maxlength) {
101
- options.push(size + '/' + maxlength);
102
- }
103
-
104
  scope.find('input.option').not(':checkbox,:radio').each(function(i) {
105
- var excluded = ['size', 'maxlength', 'cols', 'rows'];
106
-
107
- if (-1 < $.inArray($(this).attr('name'), excluded)) {
108
- return;
109
- }
110
-
111
  var val = $(this).val();
112
 
113
  if (! val) {
@@ -135,6 +116,12 @@
135
  }
136
  });
137
 
 
 
 
 
 
 
138
  options = (options.length > 0) ? options.join(' ') : '';
139
 
140
  var value = '';
88
 
89
  var options = [];
90
 
 
 
 
 
 
 
 
 
 
 
 
 
 
91
  scope.find('input.option').not(':checkbox,:radio').each(function(i) {
 
 
 
 
 
 
92
  var val = $(this).val();
93
 
94
  if (! val) {
116
  }
117
  });
118
 
119
+ scope.find('input:radio.option').each(function(i) {
120
+ if ($(this).is(':checked') && ! $(this).hasClass('default')) {
121
+ options.push($(this).attr('name') + ':' + $(this).val());
122
+ }
123
+ });
124
+
125
  options = (options.length > 0) ? options.join(' ') : '';
126
 
127
  var value = '';
images/service-icons/recaptcha-72x72.png ADDED
Binary file
includes/contact-form.php CHANGED
@@ -357,15 +357,19 @@ class WPCF7_ContactForm {
357
  '_wpcf7_locale' => $this->locale,
358
  '_wpcf7_unit_tag' => $this->unit_tag );
359
 
360
- if ( WPCF7_VERIFY_NONCE )
361
  $hidden_fields['_wpnonce'] = wpcf7_create_nonce( $this->id );
 
 
 
 
362
 
363
  $content = '';
364
 
365
  foreach ( $hidden_fields as $name => $value ) {
366
- $content .= '<input type="hidden"'
367
- . ' name="' . esc_attr( $name ) . '"'
368
- . ' value="' . esc_attr( $value ) . '" />' . "\n";
369
  }
370
 
371
  return '<div style="display: none;">' . "\n" . $content . '</div>' . "\n";
@@ -508,11 +512,13 @@ class WPCF7_ContactForm {
508
  $this->scanned_form_tags = $scanned;
509
  }
510
 
511
- if ( empty( $scanned ) )
512
- return null;
 
513
 
514
- if ( ! is_array( $cond ) || empty( $cond ) )
515
  return $scanned;
 
516
 
517
  for ( $i = 0, $size = count( $scanned ); $i < $size; $i++ ) {
518
 
@@ -815,15 +821,17 @@ function wpcf7_get_contact_form_by_old_id( $old_id ) {
815
  $q = "SELECT post_id FROM $wpdb->postmeta WHERE meta_key = '_old_cf7_unit_id'"
816
  . $wpdb->prepare( " AND meta_value = %d", $old_id );
817
 
818
- if ( $new_id = $wpdb->get_var( $q ) )
819
  return wpcf7_contact_form( $new_id );
 
820
  }
821
 
822
  function wpcf7_get_contact_form_by_title( $title ) {
823
  $page = get_page_by_title( $title, OBJECT, WPCF7_ContactForm::post_type );
824
 
825
- if ( $page )
826
  return wpcf7_contact_form( $page->ID );
 
827
 
828
  return null;
829
  }
@@ -835,8 +843,9 @@ function wpcf7_get_current_contact_form() {
835
  }
836
 
837
  function wpcf7_is_posted() {
838
- if ( ! $contact_form = wpcf7_get_current_contact_form() )
839
  return false;
 
840
 
841
  return $contact_form->is_posted();
842
  }
@@ -856,22 +865,25 @@ function wpcf7_get_hangover( $name, $default = null ) {
856
  }
857
 
858
  function wpcf7_get_validation_error( $name ) {
859
- if ( ! $contact_form = wpcf7_get_current_contact_form() )
860
  return '';
 
861
 
862
  return $contact_form->validation_error( $name );
863
  }
864
 
865
  function wpcf7_get_message( $status ) {
866
- if ( ! $contact_form = wpcf7_get_current_contact_form() )
867
  return '';
 
868
 
869
  return $contact_form->message( $status );
870
  }
871
 
872
  function wpcf7_scan_shortcode( $cond = null ) {
873
- if ( ! $contact_form = wpcf7_get_current_contact_form() )
874
- return null;
 
875
 
876
  return $contact_form->form_scan_shortcode( $cond );
877
  }
@@ -887,8 +899,9 @@ function wpcf7_form_controls_class( $type, $default = '' ) {
887
 
888
  $classes[] = 'wpcf7-' . $typebase;
889
 
890
- if ( $required )
891
  $classes[] = 'wpcf7-validates-as-required';
 
892
 
893
  $classes = array_unique( $classes );
894
 
357
  '_wpcf7_locale' => $this->locale,
358
  '_wpcf7_unit_tag' => $this->unit_tag );
359
 
360
+ if ( WPCF7_VERIFY_NONCE ) {
361
  $hidden_fields['_wpnonce'] = wpcf7_create_nonce( $this->id );
362
+ }
363
+
364
+ $hidden_fields += (array) apply_filters(
365
+ 'wpcf7_form_hidden_fields', array() );
366
 
367
  $content = '';
368
 
369
  foreach ( $hidden_fields as $name => $value ) {
370
+ $content .= sprintf(
371
+ '<input type="hidden" name="%1$s" value="%2$s" />',
372
+ esc_attr( $name ), esc_attr( $value ) ) . "\n";
373
  }
374
 
375
  return '<div style="display: none;">' . "\n" . $content . '</div>' . "\n";
512
  $this->scanned_form_tags = $scanned;
513
  }
514
 
515
+ if ( empty( $scanned ) ) {
516
+ return array();
517
+ }
518
 
519
+ if ( ! is_array( $cond ) || empty( $cond ) ) {
520
  return $scanned;
521
+ }
522
 
523
  for ( $i = 0, $size = count( $scanned ); $i < $size; $i++ ) {
524
 
821
  $q = "SELECT post_id FROM $wpdb->postmeta WHERE meta_key = '_old_cf7_unit_id'"
822
  . $wpdb->prepare( " AND meta_value = %d", $old_id );
823
 
824
+ if ( $new_id = $wpdb->get_var( $q ) ) {
825
  return wpcf7_contact_form( $new_id );
826
+ }
827
  }
828
 
829
  function wpcf7_get_contact_form_by_title( $title ) {
830
  $page = get_page_by_title( $title, OBJECT, WPCF7_ContactForm::post_type );
831
 
832
+ if ( $page ) {
833
  return wpcf7_contact_form( $page->ID );
834
+ }
835
 
836
  return null;
837
  }
843
  }
844
 
845
  function wpcf7_is_posted() {
846
+ if ( ! $contact_form = wpcf7_get_current_contact_form() ) {
847
  return false;
848
+ }
849
 
850
  return $contact_form->is_posted();
851
  }
865
  }
866
 
867
  function wpcf7_get_validation_error( $name ) {
868
+ if ( ! $contact_form = wpcf7_get_current_contact_form() ) {
869
  return '';
870
+ }
871
 
872
  return $contact_form->validation_error( $name );
873
  }
874
 
875
  function wpcf7_get_message( $status ) {
876
+ if ( ! $contact_form = wpcf7_get_current_contact_form() ) {
877
  return '';
878
+ }
879
 
880
  return $contact_form->message( $status );
881
  }
882
 
883
  function wpcf7_scan_shortcode( $cond = null ) {
884
+ if ( ! $contact_form = wpcf7_get_current_contact_form() ) {
885
+ return array();
886
+ }
887
 
888
  return $contact_form->form_scan_shortcode( $cond );
889
  }
899
 
900
  $classes[] = 'wpcf7-' . $typebase;
901
 
902
+ if ( $required ) {
903
  $classes[] = 'wpcf7-validates-as-required';
904
+ }
905
 
906
  $classes = array_unique( $classes );
907
 
includes/controller.php CHANGED
@@ -31,7 +31,7 @@ function wpcf7_ajax_onload() {
31
  $items = apply_filters( 'wpcf7_ajax_onload', $items );
32
  }
33
 
34
- $echo = json_encode( $items );
35
 
36
  if ( wpcf7_is_xhr() ) {
37
  @header( 'Content-Type: application/json; charset=' . get_option( 'blog_charset' ) );
@@ -94,7 +94,7 @@ function wpcf7_ajax_json_echo() {
94
  }
95
  }
96
 
97
- $echo = json_encode( $items );
98
 
99
  if ( wpcf7_is_xhr() ) {
100
  @header( 'Content-Type: application/json; charset=' . get_option( 'blog_charset' ) );
31
  $items = apply_filters( 'wpcf7_ajax_onload', $items );
32
  }
33
 
34
+ $echo = wp_json_encode( $items );
35
 
36
  if ( wpcf7_is_xhr() ) {
37
  @header( 'Content-Type: application/json; charset=' . get_option( 'blog_charset' ) );
94
  }
95
  }
96
 
97
+ $echo = wp_json_encode( $items );
98
 
99
  if ( wpcf7_is_xhr() ) {
100
  @header( 'Content-Type: application/json; charset=' . get_option( 'blog_charset' ) );
includes/formatting.php CHANGED
@@ -13,8 +13,9 @@ function wpcf7_autop( $pee, $br = 1 ) {
13
  $pee = preg_replace( '!(<' . $allblocks . '[^>]*>)!', "\n$1", $pee );
14
  $pee = preg_replace( '!(</' . $allblocks . '>)!', "$1\n\n", $pee );
15
 
16
- /* wpcf7: take care of [response] tag */
17
- $pee = preg_replace( '!(\[response[^]]*\])!', "\n$1\n\n", $pee );
 
18
 
19
  $pee = str_replace( array( "\r\n", "\r" ), "\n", $pee ); // cross-platform newlines
20
 
@@ -41,9 +42,11 @@ function wpcf7_autop( $pee, $br = 1 ) {
41
  $pee = preg_replace( '!<p>\s*(</?' . $allblocks . '[^>]*>)!', "$1", $pee );
42
  $pee = preg_replace( '!(</?' . $allblocks . '[^>]*>)\s*</p>!', "$1", $pee );
43
 
44
- /* wpcf7: take care of [response] tag */
45
- $pee = preg_replace( '!<p>\s*(\[response[^]]*\])!', "$1", $pee );
46
- $pee = preg_replace( '!(\[response[^]]*\])\s*</p>!', "$1", $pee );
 
 
47
 
48
  if ( $br ) {
49
  /* wpcf7: add textarea */
13
  $pee = preg_replace( '!(<' . $allblocks . '[^>]*>)!', "\n$1", $pee );
14
  $pee = preg_replace( '!(</' . $allblocks . '>)!', "$1\n\n", $pee );
15
 
16
+ /* wpcf7: take care of [response] and [recaptcha] tag */
17
+ $pee = preg_replace( '!(\[(?:response|recaptcha)[^]]*\])!',
18
+ "\n$1\n\n", $pee );
19
 
20
  $pee = str_replace( array( "\r\n", "\r" ), "\n", $pee ); // cross-platform newlines
21
 
42
  $pee = preg_replace( '!<p>\s*(</?' . $allblocks . '[^>]*>)!', "$1", $pee );
43
  $pee = preg_replace( '!(</?' . $allblocks . '[^>]*>)\s*</p>!', "$1", $pee );
44
 
45
+ /* wpcf7: take care of [response] and [recaptcha] tag */
46
+ $pee = preg_replace( '!<p>\s*(\[(?:response|recaptcha)[^]]*\])!',
47
+ "$1", $pee );
48
+ $pee = preg_replace( '!(\[(?:response|recaptcha)[^]]*\])\s*</p>!',
49
+ "$1", $pee );
50
 
51
  if ( $br ) {
52
  /* wpcf7: add textarea */
includes/functions.php CHANGED
@@ -29,101 +29,6 @@ function wpcf7_upload_dir( $type = false ) {
29
  return $uploads;
30
  }
31
 
32
- function wpcf7_l10n() {
33
- static $l10n = array();
34
-
35
- if ( ! empty( $l10n ) ) {
36
- return $l10n;
37
- }
38
-
39
- $l10n = array(
40
- 'af' => __( 'Afrikaans', 'contact-form-7' ),
41
- 'sq' => __( 'Albanian', 'contact-form-7' ),
42
- 'ar' => __( 'Arabic', 'contact-form-7' ),
43
- 'hy_AM' => __( 'Armenian', 'contact-form-7' ),
44
- 'az' => __( 'Azerbaijani', 'contact-form-7' ),
45
- 'bn_BD' => __( 'Bangla', 'contact-form-7' ),
46
- 'eu' => __( 'Basque', 'contact-form-7' ),
47
- 'be_BY' => __( 'Belarusian', 'contact-form-7' ),
48
- 'bs_BA' => __( 'Bosnian', 'contact-form-7' ),
49
- 'bg_BG' => __( 'Bulgarian', 'contact-form-7' ),
50
- 'ca' => __( 'Catalan', 'contact-form-7' ),
51
- 'ckb' => __( 'Central Kurdish', 'contact-form-7' ),
52
- 'zh_CN' => __( 'Chinese (China)', 'contact-form-7' ),
53
- 'zh_TW' => __( 'Chinese (Taiwan)', 'contact-form-7' ),
54
- 'hr' => __( 'Croatian', 'contact-form-7' ),
55
- 'cs_CZ' => __( 'Czech', 'contact-form-7' ),
56
- 'da_DK' => __( 'Danish', 'contact-form-7' ),
57
- 'nl_NL' => __( 'Dutch', 'contact-form-7' ),
58
- 'en_US' => __( 'English (United States)', 'contact-form-7' ),
59
- 'eo_EO' => __( 'Esperanto', 'contact-form-7' ),
60
- 'et' => __( 'Estonian', 'contact-form-7' ),
61
- 'fi' => __( 'Finnish', 'contact-form-7' ),
62
- 'fr_FR' => __( 'French (France)', 'contact-form-7' ),
63
- 'gl_ES' => __( 'Galician', 'contact-form-7' ),
64
- 'gu_IN' => __( 'Gujarati', 'contact-form-7' ),
65
- 'ka_GE' => __( 'Georgian', 'contact-form-7' ),
66
- 'de_DE' => __( 'German', 'contact-form-7' ),
67
- 'el' => __( 'Greek', 'contact-form-7' ),
68
- 'ht' => __( 'Haitian', 'contact-form-7' ),
69
- 'he_IL' => __( 'Hebrew', 'contact-form-7' ),
70
- 'hi_IN' => __( 'Hindi', 'contact-form-7' ),
71
- 'hu_HU' => __( 'Hungarian', 'contact-form-7' ),
72
- 'bn_IN' => __( 'Indian Bengali', 'contact-form-7' ),
73
- 'id_ID' => __( 'Indonesian', 'contact-form-7' ),
74
- 'ga_IE' => __( 'Irish', 'contact-form-7' ),
75
- 'it_IT' => __( 'Italian', 'contact-form-7' ),
76
- 'ja' => __( 'Japanese', 'contact-form-7' ),
77
- 'ko_KR' => __( 'Korean', 'contact-form-7' ),
78
- 'lv' => __( 'Latvian', 'contact-form-7' ),
79
- 'lt_LT' => __( 'Lithuanian', 'contact-form-7' ),
80
- 'mk_MK' => __( 'Macedonian', 'contact-form-7' ),
81
- 'ms_MY' => __( 'Malay', 'contact-form-7' ),
82
- 'ml_IN' => __( 'Malayalam', 'contact-form-7' ),
83
- 'mt_MT' => __( 'Maltese', 'contact-form-7' ),
84
- 'nb_NO' => __( 'Norwegian (Bokmål)', 'contact-form-7' ),
85
- 'fa_IR' => __( 'Persian', 'contact-form-7' ),
86
- 'pl_PL' => __( 'Polish', 'contact-form-7' ),
87
- 'pt_BR' => __( 'Portuguese (Brazil)', 'contact-form-7' ),
88
- 'pt_PT' => __( 'Portuguese (Portugal)', 'contact-form-7' ),
89
- 'pa_IN' => __( 'Punjabi', 'contact-form-7' ),
90
- 'ru_RU' => __( 'Russian', 'contact-form-7' ),
91
- 'ro_RO' => __( 'Romanian', 'contact-form-7' ),
92
- 'sr_RS' => __( 'Serbian', 'contact-form-7' ),
93
- 'si_LK' => __( 'Sinhala', 'contact-form-7' ),
94
- 'sk_SK' => __( 'Slovak', 'contact-form-7' ),
95
- 'sl_SI' => __( 'Slovene', 'contact-form-7' ),
96
- 'es_ES' => __( 'Spanish (Spain)', 'contact-form-7' ),
97
- 'sv_SE' => __( 'Swedish', 'contact-form-7' ),
98
- 'ta' => __( 'Tamil', 'contact-form-7' ),
99
- 'th' => __( 'Thai', 'contact-form-7' ),
100
- 'tl' => __( 'Tagalog', 'contact-form-7' ),
101
- 'tr_TR' => __( 'Turkish', 'contact-form-7' ),
102
- 'uk' => __( 'Ukrainian', 'contact-form-7' ),
103
- 'vi' => __( 'Vietnamese', 'contact-form-7' )
104
- );
105
-
106
- return $l10n;
107
- }
108
-
109
- function wpcf7_is_valid_locale( $locale ) {
110
- $l10n = wpcf7_l10n();
111
- return isset( $l10n[$locale] );
112
- }
113
-
114
- function wpcf7_is_rtl( $locale = '' ) {
115
- if ( empty( $locale ) ) {
116
- return function_exists( 'is_rtl' ) ? is_rtl() : false;
117
- }
118
-
119
- $rtl_locales = array(
120
- 'ar' => 'Arabic',
121
- 'he_IL' => 'Hebrew',
122
- 'fa_IR' => 'Persian' );
123
-
124
- return isset( $rtl_locales[$locale] );
125
- }
126
-
127
  function wpcf7_ajax_loader() {
128
  $url = wpcf7_plugin_url( 'images/ajax-loader.gif' );
129
 
@@ -197,6 +102,11 @@ function wpcf7_support_html5_fallback() {
197
  return (bool) apply_filters( 'wpcf7_support_html5_fallback', false );
198
  }
199
 
 
 
 
 
 
200
  function wpcf7_load_js() {
201
  return apply_filters( 'wpcf7_load_js', WPCF7_LOAD_JS );
202
  }
@@ -254,63 +164,6 @@ function wpcf7_link( $url, $anchor_text, $args = '' ) {
254
  return $link;
255
  }
256
 
257
- function wpcf7_load_textdomain( $locale = null ) {
258
- global $l10n;
259
-
260
- $domain = 'contact-form-7';
261
-
262
- if ( get_locale() == $locale ) {
263
- $locale = null;
264
- }
265
-
266
- if ( empty( $locale ) ) {
267
- if ( is_textdomain_loaded( $domain ) ) {
268
- return true;
269
- } else {
270
- return load_plugin_textdomain( $domain, false, $domain . '/languages' );
271
- }
272
- } else {
273
- $mo_orig = $l10n[$domain];
274
- unload_textdomain( $domain );
275
-
276
- $mofile = $domain . '-' . $locale . '.mo';
277
- $path = WP_PLUGIN_DIR . '/' . $domain . '/languages';
278
-
279
- if ( $loaded = load_textdomain( $domain, $path . '/'. $mofile ) ) {
280
- return $loaded;
281
- } else {
282
- $mofile = WP_LANG_DIR . '/plugins/' . $mofile;
283
- return load_textdomain( $domain, $mofile );
284
- }
285
-
286
- $l10n[$domain] = $mo_orig;
287
- }
288
-
289
- return false;
290
- }
291
-
292
- function wpcf7_load_modules() {
293
- $dir = WPCF7_PLUGIN_MODULES_DIR;
294
-
295
- if ( empty( $dir ) || ! is_dir( $dir ) ) {
296
- return false;
297
- }
298
-
299
- $mods = array(
300
- 'acceptance', 'flamingo',
301
- 'akismet', 'jetpack', 'submit', 'captcha', 'number',
302
- 'text', 'checkbox', 'quiz', 'textarea', 'date',
303
- 'response', 'file', 'select', 'listo', 'count' );
304
-
305
- foreach ( $mods as $mod ) {
306
- $file = trailingslashit( $dir ) . $mod . '.php';
307
-
308
- if ( file_exists( $file ) ) {
309
- include_once $file;
310
- }
311
- }
312
- }
313
-
314
  function wpcf7_get_request_uri() {
315
  static $request_uri = '';
316
 
29
  return $uploads;
30
  }
31
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  function wpcf7_ajax_loader() {
33
  $url = wpcf7_plugin_url( 'images/ajax-loader.gif' );
34
 
102
  return (bool) apply_filters( 'wpcf7_support_html5_fallback', false );
103
  }
104
 
105
+ function wpcf7_use_really_simple_captcha() {
106
+ return apply_filters( 'wpcf7_use_really_simple_captcha',
107
+ WPCF7_USE_REALLY_SIMPLE_CAPTCHA );
108
+ }
109
+
110
  function wpcf7_load_js() {
111
  return apply_filters( 'wpcf7_load_js', WPCF7_LOAD_JS );
112
  }
164
  return $link;
165
  }
166
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
167
  function wpcf7_get_request_uri() {
168
  static $request_uri = '';
169
 
includes/integration.php CHANGED
@@ -107,19 +107,19 @@ class WPCF7_Integration {
107
 
108
  abstract class WPCF7_Service {
109
 
110
- public function get_title() {
111
- }
112
-
113
- public function is_active() {
114
- }
115
 
116
  public function get_categories() {
 
117
  }
118
 
119
  public function icon() {
 
120
  }
121
 
122
  public function link() {
 
123
  }
124
 
125
  public function load( $action = '' ) {
107
 
108
  abstract class WPCF7_Service {
109
 
110
+ abstract public function get_title();
111
+ abstract public function is_active();
 
 
 
112
 
113
  public function get_categories() {
114
+ return array();
115
  }
116
 
117
  public function icon() {
118
+ return '';
119
  }
120
 
121
  public function link() {
122
+ return '';
123
  }
124
 
125
  public function load( $action = '' ) {
includes/js/scripts.js CHANGED
@@ -1,14 +1,12 @@
1
  (function($) {
2
 
3
- if (typeof _wpcf7 == 'undefined' || _wpcf7 === null)
4
  _wpcf7 = {};
 
5
 
6
- _wpcf7 = $.extend({ cached: 0 }, _wpcf7);
7
-
8
- $(function() {
9
- _wpcf7.supportHtml5 = $.wpcf7SupportHtml5();
10
- $('div.wpcf7 > form').wpcf7InitForm();
11
- });
12
 
13
  $.fn.wpcf7InitForm = function() {
14
  this.ajaxForm({
@@ -33,8 +31,9 @@
33
  }
34
  });
35
 
36
- if (_wpcf7.cached)
37
  this.wpcf7OnloadRefill();
 
38
 
39
  this.wpcf7ToggleSubmit();
40
 
@@ -78,8 +77,9 @@
78
  };
79
 
80
  $.wpcf7AjaxSuccess = function(data, status, xhr, $form) {
81
- if (! $.isPlainObject(data) || $.isEmptyObject(data))
82
  return;
 
83
 
84
  var $responseOutput = $form.find('div.wpcf7-response-output');
85
 
@@ -88,11 +88,13 @@
88
  $form.find('.wpcf7-form-control').removeClass('wpcf7-not-valid');
89
  $form.removeClass('invalid spam sent failed');
90
 
91
- if (data.captcha)
92
  $form.wpcf7RefillCaptcha(data.captcha);
 
93
 
94
- if (data.quiz)
95
  $form.wpcf7RefillQuiz(data.quiz);
 
96
 
97
  if (data.invalids) {
98
  $.each(data.invalids, function(i, n) {
@@ -104,37 +106,45 @@
104
  $responseOutput.addClass('wpcf7-validation-errors');
105
  $form.addClass('invalid');
106
 
107
- $(data.into).trigger('invalid.wpcf7');
 
108
 
109
  } else if (1 == data.spam) {
110
  $responseOutput.addClass('wpcf7-spam-blocked');
111
  $form.addClass('spam');
112
 
113
- $(data.into).trigger('spam.wpcf7');
 
114
 
115
  } else if (1 == data.mailSent) {
116
  $responseOutput.addClass('wpcf7-mail-sent-ok');
117
  $form.addClass('sent');
118
 
119
- if (data.onSentOk)
120
  $.each(data.onSentOk, function(i, n) { eval(n) });
 
121
 
122
- $(data.into).trigger('mailsent.wpcf7');
 
123
 
124
  } else {
125
  $responseOutput.addClass('wpcf7-mail-sent-ng');
126
  $form.addClass('failed');
127
 
128
- $(data.into).trigger('mailfailed.wpcf7');
 
129
  }
130
 
131
- if (data.onSubmit)
132
  $.each(data.onSubmit, function(i, n) { eval(n) });
 
133
 
134
- $(data.into).trigger('submit.wpcf7');
 
135
 
136
- if (1 == data.mailSent)
137
  $form.resetForm();
 
138
 
139
  $form.find('[placeholder].placeheld').each(function(i, n) {
140
  $(n).val($(n).attr('placeholder'));
@@ -154,8 +164,9 @@
154
  };
155
 
156
  $.fn.wpcf7Placeholder = function() {
157
- if (_wpcf7.supportHtml5.placeholder)
158
  return this;
 
159
 
160
  return this.each(function() {
161
  $(this).val($(this).attr('placeholder'));
@@ -188,11 +199,14 @@
188
  $.fn.wpcf7ToggleSubmit = function() {
189
  return this.each(function() {
190
  var form = $(this);
191
- if (this.tagName.toLowerCase() != 'form')
 
192
  form = $(this).find('form').first();
 
193
 
194
- if (form.hasClass('wpcf7-acceptance-as-validation'))
195
  return;
 
196
 
197
  var submit = form.find('input:submit');
198
  if (! submit.length) return;
@@ -204,8 +218,9 @@
204
  acceptances.each(function(i, n) {
205
  n = $(n);
206
  if (n.hasClass('wpcf7-invert') && n.is(':checked')
207
- || ! n.hasClass('wpcf7-invert') && ! n.is(':checked'))
208
  submit.attr('disabled', 'disabled');
 
209
  });
210
  });
211
  };
@@ -316,8 +331,10 @@
316
  $.fn.wpcf7OnloadRefill = function() {
317
  return this.each(function() {
318
  var url = $(this).attr('action');
319
- if (0 < url.indexOf('#'))
 
320
  url = url.substr(0, url.indexOf('#'));
 
321
 
322
  var id = $(this).find('input[name="_wpcf7"]').val();
323
  var unitTag = $(this).find('input[name="_wpcf7_unit_tag"]').val();
@@ -325,11 +342,13 @@
325
  $.getJSON(url,
326
  { _wpcf7_is_ajax_call: 1, _wpcf7: id, _wpcf7_request_ver: $.now() },
327
  function(data) {
328
- if (data && data.captcha)
329
  $('#' + unitTag).wpcf7RefillCaptcha(data.captcha);
 
330
 
331
- if (data && data.quiz)
332
  $('#' + unitTag).wpcf7RefillQuiz(data.quiz);
 
333
  }
334
  );
335
  });
@@ -411,4 +430,9 @@
411
  return features;
412
  };
413
 
 
 
 
 
 
414
  })(jQuery);
1
  (function($) {
2
 
3
+ if (typeof _wpcf7 == 'undefined' || _wpcf7 === null) {
4
  _wpcf7 = {};
5
+ }
6
 
7
+ _wpcf7 = $.extend({
8
+ cached: 0
9
+ }, _wpcf7);
 
 
 
10
 
11
  $.fn.wpcf7InitForm = function() {
12
  this.ajaxForm({
31
  }
32
  });
33
 
34
+ if (_wpcf7.cached) {
35
  this.wpcf7OnloadRefill();
36
+ }
37
 
38
  this.wpcf7ToggleSubmit();
39
 
77
  };
78
 
79
  $.wpcf7AjaxSuccess = function(data, status, xhr, $form) {
80
+ if (! $.isPlainObject(data) || $.isEmptyObject(data)) {
81
  return;
82
+ }
83
 
84
  var $responseOutput = $form.find('div.wpcf7-response-output');
85
 
88
  $form.find('.wpcf7-form-control').removeClass('wpcf7-not-valid');
89
  $form.removeClass('invalid spam sent failed');
90
 
91
+ if (data.captcha) {
92
  $form.wpcf7RefillCaptcha(data.captcha);
93
+ }
94
 
95
+ if (data.quiz) {
96
  $form.wpcf7RefillQuiz(data.quiz);
97
+ }
98
 
99
  if (data.invalids) {
100
  $.each(data.invalids, function(i, n) {
106
  $responseOutput.addClass('wpcf7-validation-errors');
107
  $form.addClass('invalid');
108
 
109
+ $(data.into).trigger('wpcf7:invalid');
110
+ $(data.into).trigger('invalid.wpcf7'); // deprecated
111
 
112
  } else if (1 == data.spam) {
113
  $responseOutput.addClass('wpcf7-spam-blocked');
114
  $form.addClass('spam');
115
 
116
+ $(data.into).trigger('wpcf7:spam');
117
+ $(data.into).trigger('spam.wpcf7'); // deprecated
118
 
119
  } else if (1 == data.mailSent) {
120
  $responseOutput.addClass('wpcf7-mail-sent-ok');
121
  $form.addClass('sent');
122
 
123
+ if (data.onSentOk) {
124
  $.each(data.onSentOk, function(i, n) { eval(n) });
125
+ }
126
 
127
+ $(data.into).trigger('wpcf7:mailsent');
128
+ $(data.into).trigger('mailsent.wpcf7'); // deprecated
129
 
130
  } else {
131
  $responseOutput.addClass('wpcf7-mail-sent-ng');
132
  $form.addClass('failed');
133
 
134
+ $(data.into).trigger('wpcf7:mailfailed');
135
+ $(data.into).trigger('mailfailed.wpcf7'); // deprecated
136
  }
137
 
138
+ if (data.onSubmit) {
139
  $.each(data.onSubmit, function(i, n) { eval(n) });
140
+ }
141
 
142
+ $(data.into).trigger('wpcf7:submit');
143
+ $(data.into).trigger('submit.wpcf7'); // deprecated
144
 
145
+ if (1 == data.mailSent) {
146
  $form.resetForm();
147
+ }
148
 
149
  $form.find('[placeholder].placeheld').each(function(i, n) {
150
  $(n).val($(n).attr('placeholder'));
164
  };
165
 
166
  $.fn.wpcf7Placeholder = function() {
167
+ if (_wpcf7.supportHtml5.placeholder) {
168
  return this;
169
+ }
170
 
171
  return this.each(function() {
172
  $(this).val($(this).attr('placeholder'));
199
  $.fn.wpcf7ToggleSubmit = function() {
200
  return this.each(function() {
201
  var form = $(this);
202
+
203
+ if (this.tagName.toLowerCase() != 'form') {
204
  form = $(this).find('form').first();
205
+ }
206
 
207
+ if (form.hasClass('wpcf7-acceptance-as-validation')) {
208
  return;
209
+ }
210
 
211
  var submit = form.find('input:submit');
212
  if (! submit.length) return;
218
  acceptances.each(function(i, n) {
219
  n = $(n);
220
  if (n.hasClass('wpcf7-invert') && n.is(':checked')
221
+ || ! n.hasClass('wpcf7-invert') && ! n.is(':checked')) {
222
  submit.attr('disabled', 'disabled');
223
+ }
224
  });
225
  });
226
  };
331
  $.fn.wpcf7OnloadRefill = function() {
332
  return this.each(function() {
333
  var url = $(this).attr('action');
334
+
335
+ if (0 < url.indexOf('#')) {
336
  url = url.substr(0, url.indexOf('#'));
337
+ }
338
 
339
  var id = $(this).find('input[name="_wpcf7"]').val();
340
  var unitTag = $(this).find('input[name="_wpcf7_unit_tag"]').val();
342
  $.getJSON(url,
343
  { _wpcf7_is_ajax_call: 1, _wpcf7: id, _wpcf7_request_ver: $.now() },
344
  function(data) {
345
+ if (data && data.captcha) {
346
  $('#' + unitTag).wpcf7RefillCaptcha(data.captcha);
347
+ }
348
 
349
+ if (data && data.quiz) {
350
  $('#' + unitTag).wpcf7RefillQuiz(data.quiz);
351
+ }
352
  }
353
  );
354
  });
430
  return features;
431
  };
432
 
433
+ $(function() {
434
+ _wpcf7.supportHtml5 = $.wpcf7SupportHtml5();
435
+ $('div.wpcf7 > form').wpcf7InitForm();
436
+ });
437
+
438
  })(jQuery);
includes/l10n.php ADDED
@@ -0,0 +1,131 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ function wpcf7_l10n() {
4
+ static $l10n = array();
5
+
6
+ if ( ! empty( $l10n ) ) {
7
+ return $l10n;
8
+ }
9
+
10
+ $l10n = array(
11
+ 'af' => __( 'Afrikaans', 'contact-form-7' ),
12
+ 'sq' => __( 'Albanian', 'contact-form-7' ),
13
+ 'ar' => __( 'Arabic', 'contact-form-7' ),
14
+ 'hy_AM' => __( 'Armenian', 'contact-form-7' ),
15
+ 'az' => __( 'Azerbaijani', 'contact-form-7' ),
16
+ 'bn_BD' => __( 'Bangla', 'contact-form-7' ),
17
+ 'eu' => __( 'Basque', 'contact-form-7' ),
18
+ 'be_BY' => __( 'Belarusian', 'contact-form-7' ),
19
+ 'bs_BA' => __( 'Bosnian', 'contact-form-7' ),
20
+ 'bg_BG' => __( 'Bulgarian', 'contact-form-7' ),
21
+ 'ca' => __( 'Catalan', 'contact-form-7' ),
22
+ 'ckb' => __( 'Central Kurdish', 'contact-form-7' ),
23
+ 'zh_CN' => __( 'Chinese (China)', 'contact-form-7' ),
24
+ 'zh_TW' => __( 'Chinese (Taiwan)', 'contact-form-7' ),
25
+ 'hr' => __( 'Croatian', 'contact-form-7' ),
26
+ 'cs_CZ' => __( 'Czech', 'contact-form-7' ),
27
+ 'da_DK' => __( 'Danish', 'contact-form-7' ),
28
+ 'nl_NL' => __( 'Dutch', 'contact-form-7' ),
29
+ 'en_US' => __( 'English (United States)', 'contact-form-7' ),
30
+ 'eo_EO' => __( 'Esperanto', 'contact-form-7' ),
31
+ 'et' => __( 'Estonian', 'contact-form-7' ),
32
+ 'fi' => __( 'Finnish', 'contact-form-7' ),
33
+ 'fr_FR' => __( 'French (France)', 'contact-form-7' ),
34
+ 'gl_ES' => __( 'Galician', 'contact-form-7' ),
35
+ 'gu_IN' => __( 'Gujarati', 'contact-form-7' ),
36
+ 'ka_GE' => __( 'Georgian', 'contact-form-7' ),
37
+ 'de_DE' => __( 'German', 'contact-form-7' ),
38
+ 'el' => __( 'Greek', 'contact-form-7' ),
39
+ 'ht' => __( 'Haitian', 'contact-form-7' ),
40
+ 'he_IL' => __( 'Hebrew', 'contact-form-7' ),
41
+ 'hi_IN' => __( 'Hindi', 'contact-form-7' ),
42
+ 'hu_HU' => __( 'Hungarian', 'contact-form-7' ),
43
+ 'bn_IN' => __( 'Indian Bengali', 'contact-form-7' ),
44
+ 'id_ID' => __( 'Indonesian', 'contact-form-7' ),
45
+ 'ga_IE' => __( 'Irish', 'contact-form-7' ),
46
+ 'it_IT' => __( 'Italian', 'contact-form-7' ),
47
+ 'ja' => __( 'Japanese', 'contact-form-7' ),
48
+ 'ko_KR' => __( 'Korean', 'contact-form-7' ),
49
+ 'lv' => __( 'Latvian', 'contact-form-7' ),
50
+ 'lt_LT' => __( 'Lithuanian', 'contact-form-7' ),
51
+ 'mk_MK' => __( 'Macedonian', 'contact-form-7' ),
52
+ 'ms_MY' => __( 'Malay', 'contact-form-7' ),
53
+ 'ml_IN' => __( 'Malayalam', 'contact-form-7' ),
54
+ 'mt_MT' => __( 'Maltese', 'contact-form-7' ),
55
+ 'nb_NO' => __( 'Norwegian (Bokmål)', 'contact-form-7' ),
56
+ 'fa_IR' => __( 'Persian', 'contact-form-7' ),
57
+ 'pl_PL' => __( 'Polish', 'contact-form-7' ),
58
+ 'pt_BR' => __( 'Portuguese (Brazil)', 'contact-form-7' ),
59
+ 'pt_PT' => __( 'Portuguese (Portugal)', 'contact-form-7' ),
60
+ 'pa_IN' => __( 'Punjabi', 'contact-form-7' ),
61
+ 'ru_RU' => __( 'Russian', 'contact-form-7' ),
62
+ 'ro_RO' => __( 'Romanian', 'contact-form-7' ),
63
+ 'sr_RS' => __( 'Serbian', 'contact-form-7' ),
64
+ 'si_LK' => __( 'Sinhala', 'contact-form-7' ),
65
+ 'sk_SK' => __( 'Slovak', 'contact-form-7' ),
66
+ 'sl_SI' => __( 'Slovene', 'contact-form-7' ),
67
+ 'es_ES' => __( 'Spanish (Spain)', 'contact-form-7' ),
68
+ 'sv_SE' => __( 'Swedish', 'contact-form-7' ),
69
+ 'ta' => __( 'Tamil', 'contact-form-7' ),
70
+ 'th' => __( 'Thai', 'contact-form-7' ),
71
+ 'tl' => __( 'Tagalog', 'contact-form-7' ),
72
+ 'tr_TR' => __( 'Turkish', 'contact-form-7' ),
73
+ 'uk' => __( 'Ukrainian', 'contact-form-7' ),
74
+ 'vi' => __( 'Vietnamese', 'contact-form-7' )
75
+ );
76
+
77
+ return $l10n;
78
+ }
79
+
80
+ function wpcf7_is_valid_locale( $locale ) {
81
+ $l10n = wpcf7_l10n();
82
+ return isset( $l10n[$locale] );
83
+ }
84
+
85
+ function wpcf7_is_rtl( $locale = '' ) {
86
+ if ( empty( $locale ) ) {
87
+ return function_exists( 'is_rtl' ) ? is_rtl() : false;
88
+ }
89
+
90
+ $rtl_locales = array(
91
+ 'ar' => 'Arabic',
92
+ 'he_IL' => 'Hebrew',
93
+ 'fa_IR' => 'Persian' );
94
+
95
+ return isset( $rtl_locales[$locale] );
96
+ }
97
+
98
+ function wpcf7_load_textdomain( $locale = null ) {
99
+ global $l10n;
100
+
101
+ $domain = 'contact-form-7';
102
+
103
+ if ( get_locale() == $locale ) {
104
+ $locale = null;
105
+ }
106
+
107
+ if ( empty( $locale ) ) {
108
+ if ( is_textdomain_loaded( $domain ) ) {
109
+ return true;
110
+ } else {
111
+ return load_plugin_textdomain( $domain, false, $domain . '/languages' );
112
+ }
113
+ } else {
114
+ $mo_orig = $l10n[$domain];
115
+ unload_textdomain( $domain );
116
+
117
+ $mofile = $domain . '-' . $locale . '.mo';
118
+ $path = WP_PLUGIN_DIR . '/' . $domain . '/languages';
119
+
120
+ if ( $loaded = load_textdomain( $domain, $path . '/'. $mofile ) ) {
121
+ return $loaded;
122
+ } else {
123
+ $mofile = WP_LANG_DIR . '/plugins/' . $mofile;
124
+ return load_textdomain( $domain, $mofile );
125
+ }
126
+
127
+ $l10n[$domain] = $mo_orig;
128
+ }
129
+
130
+ return false;
131
+ }
includes/shortcodes.php CHANGED
@@ -349,6 +349,12 @@ class WPCF7_Shortcode {
349
  }
350
 
351
  public function get_cols_option( $default = '' ) {
 
 
 
 
 
 
352
  $matches_a = $this->get_all_match_options(
353
  '%^([0-9]*)x([0-9]*)(?:/[0-9]+)?$%' );
354
 
@@ -361,6 +367,12 @@ class WPCF7_Shortcode {
361
  }
362
 
363
  public function get_rows_option( $default = '' ) {
 
 
 
 
 
 
364
  $matches_a = $this->get_all_match_options(
365
  '%^([0-9]*)x([0-9]*)(?:/[0-9]+)?$%' );
366
 
349
  }
350
 
351
  public function get_cols_option( $default = '' ) {
352
+ $option = $this->get_option( 'cols', 'int', true );
353
+
354
+ if ( $option ) {
355
+ return $option;
356
+ }
357
+
358
  $matches_a = $this->get_all_match_options(
359
  '%^([0-9]*)x([0-9]*)(?:/[0-9]+)?$%' );
360
 
367
  }
368
 
369
  public function get_rows_option( $default = '' ) {
370
+ $option = $this->get_option( 'rows', 'int', true );
371
+
372
+ if ( $option ) {
373
+ return $option;
374
+ }
375
+
376
  $matches_a = $this->get_all_match_options(
377
  '%^([0-9]*)x([0-9]*)(?:/[0-9]+)?$%' );
378
 
languages/contact-form-7-da_DK.mo CHANGED
Binary file
languages/contact-form-7-fa_IR.mo CHANGED
Binary file
languages/contact-form-7-hr.mo CHANGED
Binary file
languages/contact-form-7-ja.mo CHANGED
Binary file
languages/contact-form-7-sv_SE.mo CHANGED
Binary file
languages/contact-form-7.pot CHANGED
@@ -3,7 +3,7 @@ msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Contact Form 7\n"
5
  "Report-Msgid-Bugs-To: \n"
6
- "POT-Creation-Date: 2015-07-22 06:38+0900\n"
7
  "PO-Revision-Date: 2015-05-18 21:49+0900\n"
8
  "Last-Translator: Takayuki Miyoshi <takayukister@gmail.com>\n"
9
  "Language-Team: \n"
@@ -21,207 +21,207 @@ msgstr ""
21
  msgid "Just another contact form plugin. Simple but flexible."
22
  msgstr ""
23
 
24
- #: contact-form-7/admin/admin.php:10 contact-form-7/modules/flamingo.php:134
25
  msgid "Contact Form 7"
26
  msgstr ""
27
 
28
- #: contact-form-7/admin/admin.php:11
29
  msgid "Contact"
30
  msgstr ""
31
 
32
- #: contact-form-7/admin/admin.php:16
33
  #: contact-form-7/admin/edit-contact-form.php:38
34
  msgid "Edit Contact Form"
35
  msgstr ""
36
 
37
- #: contact-form-7/admin/admin.php:17 contact-form-7/admin/admin.php:178
38
- #: contact-form-7/admin/admin.php:234
39
  #: contact-form-7/includes/contact-form.php:29
40
  msgid "Contact Forms"
41
  msgstr ""
42
 
43
- #: contact-form-7/admin/admin.php:24 contact-form-7/admin/admin.php:278
44
  #: contact-form-7/admin/edit-contact-form.php:36
45
  msgid "Add New Contact Form"
46
  msgstr ""
47
 
48
- #: contact-form-7/admin/admin.php:25 contact-form-7/admin/admin.php:237
49
- #: contact-form-7/admin/admin.php:283 contact-form-7/admin/admin.php:295
50
  #: contact-form-7/admin/edit-contact-form.php:41
51
  msgid "Add New"
52
  msgstr ""
53
 
54
- #: contact-form-7/admin/admin.php:35 contact-form-7/admin/admin.php:320
55
  msgid "Integration with Other Services"
56
  msgstr ""
57
 
58
- #: contact-form-7/admin/admin.php:36
59
  msgid "Integration"
60
  msgstr ""
61
 
62
- #: contact-form-7/admin/admin.php:66 contact-form-7/admin/admin.php:88
63
  msgid "You are not allowed to edit this item."
64
  msgstr ""
65
 
66
- #: contact-form-7/admin/admin.php:127
67
  msgid "You are not allowed to delete this item."
68
  msgstr ""
69
 
70
- #: contact-form-7/admin/admin.php:130
71
  msgid "Error in deleting."
72
  msgstr ""
73
 
74
- #: contact-form-7/admin/admin.php:208
75
  msgid "The changes you made will be lost if you navigate away from this page."
76
  msgstr ""
77
 
78
- #: contact-form-7/admin/admin.php:242
79
  #, php-format
80
  msgid "Search results for &#8220;%s&#8221;"
81
  msgstr ""
82
 
83
- #: contact-form-7/admin/admin.php:251
84
  msgid "Search Contact Forms"
85
  msgstr ""
86
 
87
- #: contact-form-7/admin/admin.php:282
88
  #, php-format
89
  msgid "Use the default language (%s)"
90
  msgstr ""
91
 
92
- #: contact-form-7/admin/admin.php:286
93
  msgid "Or"
94
  msgstr ""
95
 
96
- #: contact-form-7/admin/admin.php:290
97
  msgid "(select language)"
98
  msgstr ""
99
 
100
- #: contact-form-7/admin/admin.php:348
101
  msgid "Contact form created."
102
  msgstr ""
103
 
104
- #: contact-form-7/admin/admin.php:350
105
  msgid "Contact form saved."
106
  msgstr ""
107
 
108
- #: contact-form-7/admin/admin.php:352
109
  msgid "Contact form deleted."
110
  msgstr ""
111
 
112
- #: contact-form-7/admin/admin.php:369
113
  msgid "Settings"
114
  msgstr ""
115
 
116
- #: contact-form-7/admin/admin.php:392
117
  #, php-format
118
  msgid ""
119
  "<strong>Contact Form 7 %1$s requires WordPress %2$s or higher.</strong> "
120
  "Please <a href=\"%3$s\">update WordPress</a> first."
121
  msgstr ""
122
 
123
- #: contact-form-7/admin/admin.php:418
124
  msgid "Dismiss"
125
  msgstr ""
126
 
127
- #: contact-form-7/admin/admin.php:423
128
  msgid "Contact Form 7 Needs Your Support"
129
  msgstr ""
130
 
131
- #: contact-form-7/admin/admin.php:424
132
  msgid ""
133
  "It is hard to continue development and support for this plugin without "
134
  "contributions from users like you. If you enjoy using Contact Form 7 and "
135
  "find it useful, please consider making a donation."
136
  msgstr ""
137
 
138
- #: contact-form-7/admin/admin.php:425
139
  msgid "http://contactform7.com/donate/"
140
  msgstr ""
141
 
142
- #: contact-form-7/admin/admin.php:425
143
  msgid "Donate"
144
  msgstr ""
145
 
146
- #: contact-form-7/admin/admin.php:429
147
  msgid "Get Started"
148
  msgstr ""
149
 
150
- #: contact-form-7/admin/admin.php:431
151
  msgid "http://contactform7.com/getting-started-with-contact-form-7/"
152
  msgstr ""
153
 
154
- #: contact-form-7/admin/admin.php:431
155
  msgid "Getting Started with Contact Form 7"
156
  msgstr ""
157
 
158
- #: contact-form-7/admin/admin.php:432
159
  msgid "http://contactform7.com/admin-screen/"
160
  msgstr ""
161
 
162
- #: contact-form-7/admin/admin.php:432
163
  msgid "Admin Screen"
164
  msgstr ""
165
 
166
- #: contact-form-7/admin/admin.php:433
167
  msgid "http://contactform7.com/tag-syntax/"
168
  msgstr ""
169
 
170
- #: contact-form-7/admin/admin.php:433
171
  msgid "How Tags Work"
172
  msgstr ""
173
 
174
- #: contact-form-7/admin/admin.php:434
175
  msgid "http://contactform7.com/setting-up-mail/"
176
  msgstr ""
177
 
178
- #: contact-form-7/admin/admin.php:434
179
  msgid "Setting Up Mail"
180
  msgstr ""
181
 
182
- #: contact-form-7/admin/admin.php:439
183
  msgid "Did You Know?"
184
  msgstr ""
185
 
186
- #: contact-form-7/admin/admin.php:441
187
  msgid "http://contactform7.com/spam-filtering-with-akismet/"
188
  msgstr ""
189
 
190
- #: contact-form-7/admin/admin.php:441
191
  msgid "Spam Filtering with Akismet"
192
  msgstr ""
193
 
194
- #: contact-form-7/admin/admin.php:442
195
  msgid "http://contactform7.com/save-submitted-messages-with-flamingo/"
196
  msgstr ""
197
 
198
- #: contact-form-7/admin/admin.php:442
199
  msgid "Save Messages with Flamingo"
200
  msgstr ""
201
 
202
- #: contact-form-7/admin/admin.php:443
203
  msgid "http://contactform7.com/selectable-recipient-with-pipes/"
204
  msgstr ""
205
 
206
- #: contact-form-7/admin/admin.php:443
207
  msgid "Selectable Recipient with Pipes"
208
  msgstr ""
209
 
210
- #: contact-form-7/admin/admin.php:444
211
  msgid ""
212
  "http://contactform7.com/tracking-form-submissions-with-google-analytics/"
213
  msgstr ""
214
 
215
- #: contact-form-7/admin/admin.php:444
216
  msgid "Tracking with Google Analytics"
217
  msgstr ""
218
 
219
- #: contact-form-7/admin/admin.php:489
220
  msgid "You are not allowed to edit this contact form."
221
  msgstr ""
222
 
223
  #: contact-form-7/admin/edit-contact-form.php:26
224
  #: contact-form-7/admin/edit-contact-form.php:124
 
225
  msgid "Save"
226
  msgstr ""
227
 
@@ -259,66 +259,66 @@ msgid ""
259
  " 'Cancel' to stop, 'OK' to delete."
260
  msgstr ""
261
 
262
- #: contact-form-7/admin/edit-contact-form.php:156
263
  msgid "Information"
264
  msgstr ""
265
 
266
- #: contact-form-7/admin/edit-contact-form.php:159
267
  #: contact-form-7/admin/includes/help-tabs.php:103
268
  msgid "http://contactform7.com/docs/"
269
  msgstr ""
270
 
271
- #: contact-form-7/admin/edit-contact-form.php:159
272
  #: contact-form-7/admin/includes/help-tabs.php:103
273
  msgid "Docs"
274
  msgstr ""
275
 
276
- #: contact-form-7/admin/edit-contact-form.php:160
277
  #: contact-form-7/admin/includes/help-tabs.php:104
278
  msgid "http://contactform7.com/faq/"
279
  msgstr ""
280
 
281
- #: contact-form-7/admin/edit-contact-form.php:160
282
  #: contact-form-7/admin/includes/help-tabs.php:104
283
  msgid "FAQ"
284
  msgstr ""
285
 
286
- #: contact-form-7/admin/edit-contact-form.php:161
287
  #: contact-form-7/admin/includes/help-tabs.php:105
288
  msgid "http://contactform7.com/support/"
289
  msgstr ""
290
 
291
- #: contact-form-7/admin/edit-contact-form.php:161
292
  #: contact-form-7/admin/includes/help-tabs.php:105
293
  msgid "Support"
294
  msgstr ""
295
 
296
- #: contact-form-7/admin/edit-contact-form.php:170
297
  #, php-format
298
  msgid "%s keys switch panels"
299
  msgstr ""
300
 
301
- #: contact-form-7/admin/edit-contact-form.php:180
302
  #: contact-form-7/admin/includes/editor.php:45
303
  msgid "Form"
304
  msgstr ""
305
 
306
- #: contact-form-7/admin/edit-contact-form.php:183
307
  #: contact-form-7/admin/includes/editor.php:72
308
  msgid "Mail"
309
  msgstr ""
310
 
311
- #: contact-form-7/admin/edit-contact-form.php:186
312
  #: contact-form-7/admin/includes/editor.php:167
313
  msgid "Messages"
314
  msgstr ""
315
 
316
- #: contact-form-7/admin/edit-contact-form.php:197
317
  #, php-format
318
  msgid "Additional Settings (%d)"
319
  msgstr ""
320
 
321
- #: contact-form-7/admin/edit-contact-form.php:199
322
  #: contact-form-7/admin/includes/editor.php:190
323
  #: contact-form-7/admin/includes/editor.php:195
324
  msgid "Additional Settings"
@@ -718,462 +718,409 @@ msgstr ""
718
  msgid "Sending ..."
719
  msgstr ""
720
 
721
- #: contact-form-7/includes/functions.php:40
722
  msgid "Afrikaans"
723
  msgstr ""
724
 
725
- #: contact-form-7/includes/functions.php:41
726
  msgid "Albanian"
727
  msgstr ""
728
 
729
- #: contact-form-7/includes/functions.php:42
730
  msgid "Arabic"
731
  msgstr ""
732
 
733
- #: contact-form-7/includes/functions.php:43
734
  msgid "Armenian"
735
  msgstr ""
736
 
737
- #: contact-form-7/includes/functions.php:44
738
  msgid "Azerbaijani"
739
  msgstr ""
740
 
741
- #: contact-form-7/includes/functions.php:45
742
  msgid "Bangla"
743
  msgstr ""
744
 
745
- #: contact-form-7/includes/functions.php:46
746
  msgid "Basque"
747
  msgstr ""
748
 
749
- #: contact-form-7/includes/functions.php:47
750
  msgid "Belarusian"
751
  msgstr ""
752
 
753
- #: contact-form-7/includes/functions.php:48
754
  msgid "Bosnian"
755
  msgstr ""
756
 
757
- #: contact-form-7/includes/functions.php:49
758
  msgid "Bulgarian"
759
  msgstr ""
760
 
761
- #: contact-form-7/includes/functions.php:50
762
  msgid "Catalan"
763
  msgstr ""
764
 
765
- #: contact-form-7/includes/functions.php:51
766
  msgid "Central Kurdish"
767
  msgstr ""
768
 
769
- #: contact-form-7/includes/functions.php:52
770
  msgid "Chinese (China)"
771
  msgstr ""
772
 
773
- #: contact-form-7/includes/functions.php:53
774
  msgid "Chinese (Taiwan)"
775
  msgstr ""
776
 
777
- #: contact-form-7/includes/functions.php:54
778
  msgid "Croatian"
779
  msgstr ""
780
 
781
- #: contact-form-7/includes/functions.php:55
782
  msgid "Czech"
783
  msgstr ""
784
 
785
- #: contact-form-7/includes/functions.php:56
786
  msgid "Danish"
787
  msgstr ""
788
 
789
- #: contact-form-7/includes/functions.php:57
790
  msgid "Dutch"
791
  msgstr ""
792
 
793
- #: contact-form-7/includes/functions.php:58
794
  msgid "English (United States)"
795
  msgstr ""
796
 
797
- #: contact-form-7/includes/functions.php:59
798
  msgid "Esperanto"
799
  msgstr ""
800
 
801
- #: contact-form-7/includes/functions.php:60
802
  msgid "Estonian"
803
  msgstr ""
804
 
805
- #: contact-form-7/includes/functions.php:61
806
  msgid "Finnish"
807
  msgstr ""
808
 
809
- #: contact-form-7/includes/functions.php:62
810
  msgid "French (France)"
811
  msgstr ""
812
 
813
- #: contact-form-7/includes/functions.php:63
814
  msgid "Galician"
815
  msgstr ""
816
 
817
- #: contact-form-7/includes/functions.php:64
818
  msgid "Gujarati"
819
  msgstr ""
820
 
821
- #: contact-form-7/includes/functions.php:65
822
  msgid "Georgian"
823
  msgstr ""
824
 
825
- #: contact-form-7/includes/functions.php:66
826
  msgid "German"
827
  msgstr ""
828
 
829
- #: contact-form-7/includes/functions.php:67
830
  msgid "Greek"
831
  msgstr ""
832
 
833
- #: contact-form-7/includes/functions.php:68
834
  msgid "Haitian"
835
  msgstr ""
836
 
837
- #: contact-form-7/includes/functions.php:69
838
  msgid "Hebrew"
839
  msgstr ""
840
 
841
- #: contact-form-7/includes/functions.php:70
842
  msgid "Hindi"
843
  msgstr ""
844
 
845
- #: contact-form-7/includes/functions.php:71
846
  msgid "Hungarian"
847
  msgstr ""
848
 
849
- #: contact-form-7/includes/functions.php:72
850
  msgid "Indian Bengali"
851
  msgstr ""
852
 
853
- #: contact-form-7/includes/functions.php:73
854
  msgid "Indonesian"
855
  msgstr ""
856
 
857
- #: contact-form-7/includes/functions.php:74
858
  msgid "Irish"
859
  msgstr ""
860
 
861
- #: contact-form-7/includes/functions.php:75
862
  msgid "Italian"
863
  msgstr ""
864
 
865
- #: contact-form-7/includes/functions.php:76
866
  msgid "Japanese"
867
  msgstr ""
868
 
869
- #: contact-form-7/includes/functions.php:77
870
  msgid "Korean"
871
  msgstr ""
872
 
873
- #: contact-form-7/includes/functions.php:78
874
  msgid "Latvian"
875
  msgstr ""
876
 
877
- #: contact-form-7/includes/functions.php:79
878
  msgid "Lithuanian"
879
  msgstr ""
880
 
881
- #: contact-form-7/includes/functions.php:80
882
  msgid "Macedonian"
883
  msgstr ""
884
 
885
- #: contact-form-7/includes/functions.php:81
886
  msgid "Malay"
887
  msgstr ""
888
 
889
- #: contact-form-7/includes/functions.php:82
890
  msgid "Malayalam"
891
  msgstr ""
892
 
893
- #: contact-form-7/includes/functions.php:83
894
  msgid "Maltese"
895
  msgstr ""
896
 
897
- #: contact-form-7/includes/functions.php:84
898
  msgid "Norwegian (Bokmål)"
899
  msgstr ""
900
 
901
- #: contact-form-7/includes/functions.php:85
902
  msgid "Persian"
903
  msgstr ""
904
 
905
- #: contact-form-7/includes/functions.php:86
906
  msgid "Polish"
907
  msgstr ""
908
 
909
- #: contact-form-7/includes/functions.php:87
910
  msgid "Portuguese (Brazil)"
911
  msgstr ""
912
 
913
- #: contact-form-7/includes/functions.php:88
914
  msgid "Portuguese (Portugal)"
915
  msgstr ""
916
 
917
- #: contact-form-7/includes/functions.php:89
918
  msgid "Punjabi"
919
  msgstr ""
920
 
921
- #: contact-form-7/includes/functions.php:90
922
  msgid "Russian"
923
  msgstr ""
924
 
925
- #: contact-form-7/includes/functions.php:91
926
  msgid "Romanian"
927
  msgstr ""
928
 
929
- #: contact-form-7/includes/functions.php:92
930
  msgid "Serbian"
931
  msgstr ""
932
 
933
- #: contact-form-7/includes/functions.php:93
934
  msgid "Sinhala"
935
  msgstr ""
936
 
937
- #: contact-form-7/includes/functions.php:94
938
  msgid "Slovak"
939
  msgstr ""
940
 
941
- #: contact-form-7/includes/functions.php:95
942
  msgid "Slovene"
943
  msgstr ""
944
 
945
- #: contact-form-7/includes/functions.php:96
946
  msgid "Spanish (Spain)"
947
  msgstr ""
948
 
949
- #: contact-form-7/includes/functions.php:97
950
  msgid "Swedish"
951
  msgstr ""
952
 
953
- #: contact-form-7/includes/functions.php:98
954
  msgid "Tamil"
955
  msgstr ""
956
 
957
- #: contact-form-7/includes/functions.php:99
958
  msgid "Thai"
959
  msgstr ""
960
 
961
- #: contact-form-7/includes/functions.php:100
962
  msgid "Tagalog"
963
  msgstr ""
964
 
965
- #: contact-form-7/includes/functions.php:101
966
  msgid "Turkish"
967
  msgstr ""
968
 
969
- #: contact-form-7/includes/functions.php:102
970
  msgid "Ukrainian"
971
  msgstr ""
972
 
973
- #: contact-form-7/includes/functions.php:103
974
  msgid "Vietnamese"
975
  msgstr ""
976
 
977
- #: contact-form-7/modules/acceptance.php:132
978
  msgid "acceptance"
979
  msgstr ""
980
 
981
- #: contact-form-7/modules/acceptance.php:140
982
  #, php-format
983
  msgid ""
984
  "Generate a form-tag for an acceptance checkbox. For more details, see %s."
985
  msgstr ""
986
 
987
- #: contact-form-7/modules/acceptance.php:142
988
  msgid "http://contactform7.com/acceptance-checkbox/"
989
  msgstr ""
990
 
991
- #: contact-form-7/modules/acceptance.php:142
992
  msgid "Acceptance Checkbox"
993
  msgstr ""
994
 
995
- #: contact-form-7/modules/acceptance.php:152
996
- #: contact-form-7/modules/captcha.php:230
997
- #: contact-form-7/modules/checkbox.php:310 contact-form-7/modules/date.php:171
998
- #: contact-form-7/modules/file.php:253 contact-form-7/modules/number.php:179
999
- #: contact-form-7/modules/quiz.php:183 contact-form-7/modules/select.php:190
1000
- #: contact-form-7/modules/text.php:241 contact-form-7/modules/textarea.php:157
 
1001
  msgid "Name"
1002
  msgstr ""
1003
 
1004
- #: contact-form-7/modules/acceptance.php:157
1005
- #: contact-form-7/modules/acceptance.php:160
1006
- #: contact-form-7/modules/checkbox.php:315
1007
- #: contact-form-7/modules/checkbox.php:318
1008
- #: contact-form-7/modules/select.php:195 contact-form-7/modules/select.php:198
1009
  msgid "Options"
1010
  msgstr ""
1011
 
1012
- #: contact-form-7/modules/acceptance.php:161
1013
  msgid "Make this checkbox checked by default"
1014
  msgstr ""
1015
 
1016
- #: contact-form-7/modules/acceptance.php:162
1017
  msgid "Make this work inversely"
1018
  msgstr ""
1019
 
1020
- #: contact-form-7/modules/acceptance.php:168
1021
- #: contact-form-7/modules/captcha.php:240
1022
- #: contact-form-7/modules/captcha.php:255
1023
- #: contact-form-7/modules/checkbox.php:331 contact-form-7/modules/date.php:200
1024
- #: contact-form-7/modules/file.php:268 contact-form-7/modules/number.php:208
1025
- #: contact-form-7/modules/quiz.php:199 contact-form-7/modules/select.php:208
1026
- #: contact-form-7/modules/submit.php:73 contact-form-7/modules/text.php:281
1027
- #: contact-form-7/modules/textarea.php:168
 
1028
  msgid "Id attribute"
1029
  msgstr ""
1030
 
1031
- #: contact-form-7/modules/acceptance.php:173
1032
- #: contact-form-7/modules/captcha.php:245
1033
- #: contact-form-7/modules/captcha.php:260
1034
- #: contact-form-7/modules/checkbox.php:336 contact-form-7/modules/date.php:205
1035
- #: contact-form-7/modules/file.php:273 contact-form-7/modules/number.php:213
1036
- #: contact-form-7/modules/quiz.php:204 contact-form-7/modules/select.php:213
1037
- #: contact-form-7/modules/submit.php:78 contact-form-7/modules/text.php:286
1038
- #: contact-form-7/modules/textarea.php:173
 
1039
  msgid "Class attribute"
1040
  msgstr ""
1041
 
1042
- #: contact-form-7/modules/acceptance.php:186
1043
- #: contact-form-7/modules/captcha.php:272
1044
- #: contact-form-7/modules/checkbox.php:349 contact-form-7/modules/date.php:217
1045
- #: contact-form-7/modules/file.php:286 contact-form-7/modules/number.php:225
1046
- #: contact-form-7/modules/quiz.php:217 contact-form-7/modules/select.php:226
1047
- #: contact-form-7/modules/submit.php:91 contact-form-7/modules/text.php:299
1048
- #: contact-form-7/modules/textarea.php:186
 
1049
  msgid "Insert Tag"
1050
  msgstr ""
1051
 
1052
- #: contact-form-7/modules/captcha.php:19
1053
- msgid ""
1054
- "To use CAPTCHA, you need <a href=\"http://wordpress.org/extend/plugins/"
1055
- "really-simple-captcha/\">Really Simple CAPTCHA</a> plugin installed."
1056
- msgstr ""
1057
-
1058
- #: contact-form-7/modules/captcha.php:185
1059
- msgid "The code that sender entered does not match the CAPTCHA"
1060
- msgstr ""
1061
-
1062
- #: contact-form-7/modules/captcha.php:186
1063
- msgid "Your entered code is incorrect."
1064
- msgstr ""
1065
-
1066
- #: contact-form-7/modules/captcha.php:199
1067
- #: contact-form-7/modules/captcha.php:220
1068
- msgid "CAPTCHA"
1069
- msgstr ""
1070
-
1071
- #: contact-form-7/modules/captcha.php:210
1072
- #, php-format
1073
- msgid "To use CAPTCHA, you first need to install and activate %s plugin."
1074
- msgstr ""
1075
-
1076
- #: contact-form-7/modules/captcha.php:218
1077
- #, php-format
1078
- msgid ""
1079
- "Generate form-tags for a CAPTCHA image and corresponding response input "
1080
- "field. For more details, see %s."
1081
- msgstr ""
1082
-
1083
- #: contact-form-7/modules/captcha.php:220
1084
- msgid "http://contactform7.com/captcha/"
1085
- msgstr ""
1086
-
1087
- #: contact-form-7/modules/captcha.php:237
1088
- msgid "Image settings"
1089
- msgstr ""
1090
-
1091
- #: contact-form-7/modules/captcha.php:252
1092
- msgid "Input field settings"
1093
- msgstr ""
1094
-
1095
- #: contact-form-7/modules/captcha.php:301
1096
- #, php-format
1097
- msgid ""
1098
- "This contact form contains CAPTCHA fields, but the temporary folder for the "
1099
- "files (%s) does not exist or is not writable. You can create the folder or "
1100
- "change its permission manually."
1101
- msgstr ""
1102
-
1103
- #: contact-form-7/modules/captcha.php:307
1104
- msgid ""
1105
- "This contact form contains CAPTCHA fields, but the necessary libraries (GD "
1106
- "and FreeType) are not available on your server."
1107
- msgstr ""
1108
-
1109
- #: contact-form-7/modules/checkbox.php:268
1110
  msgid "checkboxes"
1111
  msgstr ""
1112
 
1113
- #: contact-form-7/modules/checkbox.php:270
1114
  msgid "radio buttons"
1115
  msgstr ""
1116
 
1117
- #: contact-form-7/modules/checkbox.php:283
1118
  #, php-format
1119
  msgid ""
1120
  "Generate a form-tag for a group of checkboxes. For more details, see %s."
1121
  msgstr ""
1122
 
1123
- #: contact-form-7/modules/checkbox.php:285
1124
  #, php-format
1125
  msgid ""
1126
  "Generate a form-tag for a group of radio buttons. For more details, see %s."
1127
  msgstr ""
1128
 
1129
- #: contact-form-7/modules/checkbox.php:288
1130
- #: contact-form-7/modules/select.php:170
1131
  msgid "http://contactform7.com/checkboxes-radio-buttons-and-menus/"
1132
  msgstr ""
1133
 
1134
- #: contact-form-7/modules/checkbox.php:288
1135
- #: contact-form-7/modules/select.php:170
1136
  msgid "Checkboxes, Radio Buttons and Menus"
1137
  msgstr ""
1138
 
1139
- #: contact-form-7/modules/checkbox.php:299
1140
- #: contact-form-7/modules/checkbox.php:302 contact-form-7/modules/date.php:161
1141
- #: contact-form-7/modules/date.php:164 contact-form-7/modules/file.php:243
1142
- #: contact-form-7/modules/file.php:246 contact-form-7/modules/number.php:164
1143
- #: contact-form-7/modules/number.php:167 contact-form-7/modules/select.php:180
1144
- #: contact-form-7/modules/select.php:183 contact-form-7/modules/text.php:231
1145
- #: contact-form-7/modules/text.php:234 contact-form-7/modules/textarea.php:147
1146
- #: contact-form-7/modules/textarea.php:150
1147
  msgid "Field type"
1148
  msgstr ""
1149
 
1150
- #: contact-form-7/modules/checkbox.php:303 contact-form-7/modules/date.php:165
1151
- #: contact-form-7/modules/file.php:247 contact-form-7/modules/number.php:173
1152
- #: contact-form-7/modules/select.php:184 contact-form-7/modules/text.php:235
1153
- #: contact-form-7/modules/textarea.php:151
1154
  msgid "Required field"
1155
  msgstr ""
1156
 
1157
- #: contact-form-7/modules/checkbox.php:320
1158
- #: contact-form-7/modules/select.php:200
1159
  msgid "One option per line."
1160
  msgstr ""
1161
 
1162
- #: contact-form-7/modules/checkbox.php:321
1163
  msgid "Put a label first, a checkbox last"
1164
  msgstr ""
1165
 
1166
- #: contact-form-7/modules/checkbox.php:322
1167
  msgid "Wrap each item with label element"
1168
  msgstr ""
1169
 
1170
- #: contact-form-7/modules/checkbox.php:324
1171
  msgid "Make checkboxes exclusive"
1172
  msgstr ""
1173
 
1174
- #: contact-form-7/modules/checkbox.php:354 contact-form-7/modules/date.php:222
1175
- #: contact-form-7/modules/number.php:230 contact-form-7/modules/select.php:231
1176
- #: contact-form-7/modules/text.php:304 contact-form-7/modules/textarea.php:191
1177
  #, php-format
1178
  msgid ""
1179
  "To use the value input through this field in a mail field, you need to "
@@ -1204,75 +1151,75 @@ msgstr ""
1204
  msgid "This date is too late."
1205
  msgstr ""
1206
 
1207
- #: contact-form-7/modules/date.php:141
1208
  msgid "date"
1209
  msgstr ""
1210
 
1211
- #: contact-form-7/modules/date.php:149
1212
  #, php-format
1213
  msgid "Generate a form-tag for a date input field. For more details, see %s."
1214
  msgstr ""
1215
 
1216
- #: contact-form-7/modules/date.php:151
1217
  msgid "http://contactform7.com/date-field/"
1218
  msgstr ""
1219
 
1220
- #: contact-form-7/modules/date.php:151
1221
  msgid "Date Field"
1222
  msgstr ""
1223
 
1224
- #: contact-form-7/modules/date.php:176 contact-form-7/modules/number.php:184
1225
- #: contact-form-7/modules/text.php:246 contact-form-7/modules/textarea.php:162
1226
  msgid "Default value"
1227
  msgstr ""
1228
 
1229
- #: contact-form-7/modules/date.php:178 contact-form-7/modules/number.php:186
1230
- #: contact-form-7/modules/text.php:248 contact-form-7/modules/textarea.php:164
1231
  msgid "Use this text as the placeholder of the field"
1232
  msgstr ""
1233
 
1234
- #: contact-form-7/modules/date.php:182 contact-form-7/modules/date.php:185
1235
- #: contact-form-7/modules/number.php:190 contact-form-7/modules/number.php:193
1236
  msgid "Range"
1237
  msgstr ""
1238
 
1239
- #: contact-form-7/modules/date.php:187 contact-form-7/modules/number.php:195
1240
  msgid "Min"
1241
  msgstr ""
1242
 
1243
- #: contact-form-7/modules/date.php:192 contact-form-7/modules/number.php:200
1244
  msgid "Max"
1245
  msgstr ""
1246
 
1247
- #: contact-form-7/modules/file.php:193
1248
  msgid "Uploading a file fails for any reason"
1249
  msgstr ""
1250
 
1251
- #: contact-form-7/modules/file.php:194
1252
  msgid "Failed to upload file."
1253
  msgstr ""
1254
 
1255
- #: contact-form-7/modules/file.php:198
1256
  msgid "Uploaded file is not allowed file type"
1257
  msgstr ""
1258
 
1259
- #: contact-form-7/modules/file.php:199
1260
  msgid "This file type is not allowed."
1261
  msgstr ""
1262
 
1263
- #: contact-form-7/modules/file.php:203
1264
  msgid "Uploaded file is too large"
1265
  msgstr ""
1266
 
1267
- #: contact-form-7/modules/file.php:204
1268
  msgid "This file is too large."
1269
  msgstr ""
1270
 
1271
- #: contact-form-7/modules/file.php:208
1272
  msgid "Uploading a file fails for PHP error"
1273
  msgstr ""
1274
 
1275
- #: contact-form-7/modules/file.php:209
1276
  msgid "Failed to upload file. Error occurred."
1277
  msgstr ""
1278
 
@@ -1310,7 +1257,7 @@ msgid ""
1310
  "tab."
1311
  msgstr ""
1312
 
1313
- #: contact-form-7/modules/file.php:316
1314
  #, php-format
1315
  msgid ""
1316
  "This contact form contains file uploading fields, but the temporary folder "
@@ -1357,30 +1304,30 @@ msgstr ""
1357
  msgid "This number is too large."
1358
  msgstr ""
1359
 
1360
- #: contact-form-7/modules/number.php:144
1361
  msgid "number"
1362
  msgstr ""
1363
 
1364
- #: contact-form-7/modules/number.php:152
1365
  #, php-format
1366
  msgid ""
1367
  "Generate a form-tag for a field for numeric value input. For more details, "
1368
  "see %s."
1369
  msgstr ""
1370
 
1371
- #: contact-form-7/modules/number.php:154
1372
  msgid "http://contactform7.com/number-fields/"
1373
  msgstr ""
1374
 
1375
- #: contact-form-7/modules/number.php:154
1376
  msgid "Number Fields"
1377
  msgstr ""
1378
 
1379
- #: contact-form-7/modules/number.php:169
1380
  msgid "Spinbox"
1381
  msgstr ""
1382
 
1383
- #: contact-form-7/modules/number.php:170
1384
  msgid "Slider"
1385
  msgstr ""
1386
 
@@ -1392,69 +1339,230 @@ msgstr ""
1392
  msgid "Your answer is not correct."
1393
  msgstr ""
1394
 
1395
- #: contact-form-7/modules/quiz.php:163
1396
  msgid "quiz"
1397
  msgstr ""
1398
 
1399
- #: contact-form-7/modules/quiz.php:171
1400
  #, php-format
1401
  msgid ""
1402
  "Generate a form-tag for a question-answer pair. For more details, see %s."
1403
  msgstr ""
1404
 
1405
- #: contact-form-7/modules/quiz.php:173
1406
  msgid "http://contactform7.com/quiz/"
1407
  msgstr ""
1408
 
1409
- #: contact-form-7/modules/quiz.php:173
1410
  msgid "Quiz"
1411
  msgstr ""
1412
 
1413
- #: contact-form-7/modules/quiz.php:188 contact-form-7/modules/quiz.php:191
1414
  msgid "Questions and answers"
1415
  msgstr ""
1416
 
1417
- #: contact-form-7/modules/quiz.php:193
1418
  msgid ""
1419
  "One pipe-separated question-answer pair (e.g. The capital of Brazil?|Rio) "
1420
  "per line."
1421
  msgstr ""
1422
 
1423
- #: contact-form-7/modules/select.php:161
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1424
  msgid "drop-down menu"
1425
  msgstr ""
1426
 
1427
- #: contact-form-7/modules/select.php:168
1428
  #, php-format
1429
  msgid "Generate a form-tag for a drop-down menu. For more details, see %s."
1430
  msgstr ""
1431
 
1432
- #: contact-form-7/modules/select.php:201
1433
  msgid "Allow multiple selections"
1434
  msgstr ""
1435
 
1436
- #: contact-form-7/modules/select.php:202
1437
  msgid "Insert a blank item as the first option"
1438
  msgstr ""
1439
 
1440
- #: contact-form-7/modules/submit.php:49
1441
  msgid "submit"
1442
  msgstr ""
1443
 
1444
- #: contact-form-7/modules/submit.php:56
1445
  #, php-format
1446
  msgid "Generate a form-tag for a submit button. For more details, see %s."
1447
  msgstr ""
1448
 
1449
- #: contact-form-7/modules/submit.php:58
1450
  msgid "http://contactform7.com/submit-button/"
1451
  msgstr ""
1452
 
1453
- #: contact-form-7/modules/submit.php:58
1454
  msgid "Submit Button"
1455
  msgstr ""
1456
 
1457
- #: contact-form-7/modules/submit.php:68
1458
  msgid "Label"
1459
  msgstr ""
1460
 
@@ -1482,86 +1590,86 @@ msgstr ""
1482
  msgid "Telephone number seems invalid."
1483
  msgstr ""
1484
 
1485
- #: contact-form-7/modules/text.php:193
1486
  msgid "text"
1487
  msgstr ""
1488
 
1489
- #: contact-form-7/modules/text.php:195
1490
  msgid "email"
1491
  msgstr ""
1492
 
1493
- #: contact-form-7/modules/text.php:197
1494
  msgid "URL"
1495
  msgstr ""
1496
 
1497
- #: contact-form-7/modules/text.php:199
1498
  msgid "tel"
1499
  msgstr ""
1500
 
1501
- #: contact-form-7/modules/text.php:212
1502
  #, php-format
1503
  msgid ""
1504
  "Generate a form-tag for a single-line plain text input field. For more "
1505
  "details, see %s."
1506
  msgstr ""
1507
 
1508
- #: contact-form-7/modules/text.php:214
1509
  #, php-format
1510
  msgid ""
1511
  "Generate a form-tag for a single-line email address input field. For more "
1512
  "details, see %s."
1513
  msgstr ""
1514
 
1515
- #: contact-form-7/modules/text.php:216
1516
  #, php-format
1517
  msgid ""
1518
  "Generate a form-tag for a single-line URL input field. For more details, see "
1519
  "%s."
1520
  msgstr ""
1521
 
1522
- #: contact-form-7/modules/text.php:218
1523
  #, php-format
1524
  msgid ""
1525
  "Generate a form-tag for a single-line telephone number input field. For more "
1526
  "details, see %s."
1527
  msgstr ""
1528
 
1529
- #: contact-form-7/modules/text.php:221 contact-form-7/modules/textarea.php:137
1530
  msgid "http://contactform7.com/text-fields/"
1531
  msgstr ""
1532
 
1533
- #: contact-form-7/modules/text.php:221 contact-form-7/modules/textarea.php:137
1534
  msgid "Text Fields"
1535
  msgstr ""
1536
 
1537
- #: contact-form-7/modules/text.php:253 contact-form-7/modules/text.php:256
1538
  msgid "Akismet"
1539
  msgstr ""
1540
 
1541
- #: contact-form-7/modules/text.php:261
1542
  msgid "This field requires author's name"
1543
  msgstr ""
1544
 
1545
- #: contact-form-7/modules/text.php:266
1546
  msgid "This field requires author's email address"
1547
  msgstr ""
1548
 
1549
- #: contact-form-7/modules/text.php:271
1550
  msgid "This field requires author's URL"
1551
  msgstr ""
1552
 
1553
- #: contact-form-7/modules/textarea.php:127
1554
  msgid "text area"
1555
  msgstr ""
1556
 
1557
- #: contact-form-7/modules/textarea.php:135
1558
  #, php-format
1559
  msgid ""
1560
  "Generate a form-tag for a multi-line text input field. For more details, see "
1561
  "%s."
1562
  msgstr ""
1563
 
1564
- #: contact-form-7/settings.php:78
1565
  #, php-format
1566
  msgid "Contact form %d"
1567
  msgstr ""
3
  msgstr ""
4
  "Project-Id-Version: Contact Form 7\n"
5
  "Report-Msgid-Bugs-To: \n"
6
+ "POT-Creation-Date: 2015-09-16 22:18+0900\n"
7
  "PO-Revision-Date: 2015-05-18 21:49+0900\n"
8
  "Last-Translator: Takayuki Miyoshi <takayukister@gmail.com>\n"
9
  "Language-Team: \n"
21
  msgid "Just another contact form plugin. Simple but flexible."
22
  msgstr ""
23
 
24
+ #: contact-form-7/admin/admin.php:16 contact-form-7/modules/flamingo.php:134
25
  msgid "Contact Form 7"
26
  msgstr ""
27
 
28
+ #: contact-form-7/admin/admin.php:17
29
  msgid "Contact"
30
  msgstr ""
31
 
32
+ #: contact-form-7/admin/admin.php:22
33
  #: contact-form-7/admin/edit-contact-form.php:38
34
  msgid "Edit Contact Form"
35
  msgstr ""
36
 
37
+ #: contact-form-7/admin/admin.php:23 contact-form-7/admin/admin.php:239
 
38
  #: contact-form-7/includes/contact-form.php:29
39
  msgid "Contact Forms"
40
  msgstr ""
41
 
42
+ #: contact-form-7/admin/admin.php:30 contact-form-7/admin/admin.php:283
43
  #: contact-form-7/admin/edit-contact-form.php:36
44
  msgid "Add New Contact Form"
45
  msgstr ""
46
 
47
+ #: contact-form-7/admin/admin.php:31 contact-form-7/admin/admin.php:242
48
+ #: contact-form-7/admin/admin.php:288 contact-form-7/admin/admin.php:300
49
  #: contact-form-7/admin/edit-contact-form.php:41
50
  msgid "Add New"
51
  msgstr ""
52
 
53
+ #: contact-form-7/admin/admin.php:41 contact-form-7/admin/admin.php:325
54
  msgid "Integration with Other Services"
55
  msgstr ""
56
 
57
+ #: contact-form-7/admin/admin.php:42
58
  msgid "Integration"
59
  msgstr ""
60
 
61
+ #: contact-form-7/admin/admin.php:72 contact-form-7/admin/admin.php:94
62
  msgid "You are not allowed to edit this item."
63
  msgstr ""
64
 
65
+ #: contact-form-7/admin/admin.php:133
66
  msgid "You are not allowed to delete this item."
67
  msgstr ""
68
 
69
+ #: contact-form-7/admin/admin.php:136
70
  msgid "Error in deleting."
71
  msgstr ""
72