PluginProbe
Stream – Activity Log & Audit Trail / 3.4.2
Stream – Activity Log & Audit Trail v3.4.2
4.4.0 4.3.0 4.2.2 4.2.1 trunk 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.1 3.1.1 3.10.0 3.2.0 3.2.1 3.2.2 3.2.3 All 50 releases
← All changes | connectors/class-connector-gravityforms.php +34 -16 3.2.23.4.2 View file →
@@ -139,9 +139,9 @@
139 139 if ( 'forms' === $record->context ) {
140 140 $links[ esc_html__( 'Edit', 'stream' ) ] = add_query_arg(
141 141 array(
142 142 'page' => 'gf_edit_forms',
143 - 'id' => $record->object_id,
143 + 'id' => $record->object_id,
144 144 ),
145 145 admin_url( 'admin.php' )
146 146 );
147 147 } elseif ( 'entries' === $record->context ) {
@@ -179,18 +179,18 @@
179 179 public function register() {
180 180 parent::register();
181 181
182 182 $this->options = array(
183 - 'rg_gforms_disable_css' => array(
183 + 'rg_gforms_disable_css' => array(
184 184 'label' => esc_html_x( 'Output CSS', 'gravityforms', 'stream' ),
185 185 ),
186 - 'rg_gforms_enable_html5' => array(
186 + 'rg_gforms_enable_html5' => array(
187 187 'label' => esc_html_x( 'Output HTML5', 'gravityforms', 'stream' ),
188 188 ),
189 - 'gform_enable_noconflict' => array(
189 + 'gform_enable_noconflict' => array(
190 190 'label' => esc_html_x( 'No-Conflict Mode', 'gravityforms', 'stream' ),
191 191 ),
192 - 'rg_gforms_currency' => array(
192 + 'rg_gforms_currency' => array(
193 193 'label' => esc_html_x( 'Currency', 'gravityforms', 'stream' ),
194 194 ),
195 195 'rg_gforms_captcha_public_key' => array(
196 196 'label' => esc_html_x( 'reCAPTCHA Public Key', 'gravityforms', 'stream' ),
@@ -205,9 +205,9 @@
205 205 /**
206 206 * Track Create/Update actions on Forms
207 207 *
208 208 * @param array $form
209 - * @param bool $is_new
209 + * @param bool $is_new
210 210 * @return void
211 211 */
212 212 public function callback_gform_after_save_form( $form, $is_new ) {
213 213 $title = $form['title'];
@@ -214,8 +214,9 @@
214 214 $id = $form['id'];
215 215
216 216 $this->log(
217 217 sprintf(
218 + // translators: Placeholders refer to a form title, and a status (e.g. "Contact Form", "created")
218 219 __( '"%1$s" form %2$s', 'stream' ),
219 220 $title,
220 221 $is_new ? esc_html__( 'created', 'stream' ) : esc_html__( 'updated', 'stream' )
221 222 ),
@@ -234,9 +235,9 @@
234 235 * Track saving form confirmations
235 236 *
236 237 * @param array $confirmation
237 238 * @param array $form
238 - * @param bool $is_new
239 + * @param bool $is_new
239 240 * @return array
240 241 */
241 242 public function callback_gform_pre_confirmation_save( $confirmation, $form, $is_new = true ) {
242 243 if ( ! isset( $is_new ) ) {
@@ -244,8 +245,9 @@
244 245 }
245 246
246 247 $this->log(
247 248 sprintf(
249 + // translators: Placeholders refer to a confirmation name, a status, and a form title (e.g. "Email", "created", "Contact Form")
248 250 __( '"%1$s" confirmation %2$s for "%3$s"', 'stream' ),
249 251 $confirmation['name'],
250 252 $is_new ? esc_html__( 'created', 'stream' ) : esc_html__( 'updated', 'stream' ),
251 253 $form['title']
@@ -266,9 +268,9 @@
266 268 * Track saving form notifications
267 269 *
268 270 * @param array $notification
269 271 * @param array $form
270 - * @param bool $is_new
272 + * @param bool $is_new
271 273 * @return array
272 274 */
273 275 public function callback_gform_pre_notification_save( $notification, $form, $is_new = true ) {
274 276 if ( ! isset( $is_new ) ) {
@@ -276,8 +278,9 @@
276 278 }
277 279
278 280 $this->log(
279 281 sprintf(
282 + // translators: Placeholders refer to a notification name, a status, and a form title (e.g. "Email", "created", "Contact Form")
280 283 __( '"%1$s" notification %2$s for "%3$s"', 'stream' ),
281 284 $notification['name'],
282 285 $is_new ? esc_html__( 'created', 'stream' ) : esc_html__( 'updated', 'stream' ),
283 286 $form['title']
@@ -303,8 +306,9 @@
303 306 */
304 307 public function callback_gform_pre_notification_deleted( $notification, $form ) {
305 308 $this->log(
306 309 sprintf(
310 + // translators: Placeholders refer to a notification name, and a form title (e.g. "Email", "Contact Form")
307 311 __( '"%1$s" notification deleted from "%2$s"', 'stream' ),
308 312 $notification['name'],
309 313 $form['title']
310 314 ),
@@ -327,8 +331,9 @@
327 331 */
328 332 public function callback_gform_pre_confirmation_deleted( $confirmation, $form ) {
329 333 $this->log(
330 334 sprintf(
335 + // translators: Placeholders refer to a confirmation name, and a form title (e.g. "Email", "Contact Form")
331 336 __( '"%1$s" confirmation deleted from "%2$s"', 'stream' ),
332 337 $confirmation['name'],
333 338 $form['title']
334 339 ),
@@ -346,14 +351,15 @@
346 351 * Track status change of confirmations
347 352 *
348 353 * @param array $confirmation
349 354 * @param array $form
350 - * @param bool $is_active
355 + * @param bool $is_active
351 356 * @return void
352 357 */
353 358 public function callback_gform_confirmation_status( $confirmation, $form, $is_active ) {
354 359 $this->log(
355 360 sprintf(
361 + // translators: Placeholders refer to a confirmation name, a status, and a form title (e.g. "Email", "activated", "Contact Form")
356 362 __( '"%1$s" confirmation %2$s from "%3$s"', 'stream' ),
357 363 $confirmation['name'],
358 364 $is_active ? esc_html__( 'activated', 'stream' ) : esc_html__( 'deactivated', 'stream' ),
359 365 $form['title']
@@ -373,14 +379,15 @@
373 379 * Track status change of notifications
374 380 *
375 381 * @param array $notification
376 382 * @param array $form
377 - * @param bool $is_active
383 + * @param bool $is_active
378 384 * @return void
379 385 */
380 386 public function callback_gform_notification_status( $notification, $form, $is_active ) {
381 387 $this->log(
382 388 sprintf(
389 + // translators: Placeholders refer to a notification name, a status, and a form title (e.g. "Email", "activated", "Contact Form")
383 390 __( '"%1$s" notification %2$s from "%3$s"', 'stream' ),
384 391 $notification['name'],
385 392 $is_active ? esc_html__( 'activated', 'stream' ) : esc_html__( 'deactivated', 'stream' ),
386 393 $form['title']
@@ -432,8 +439,9 @@
432 439 $option_title = $data['label'];
433 440 $context = isset( $data['context'] ) ? $data['context'] : 'settings';
434 441
435 442 $this->log(
443 + // translators: Placeholder refers to a setting title (e.g. "Language")
436 444 __( '"%s" setting updated', 'stream' ),
437 445 compact( 'option_title', 'option', 'old_value', 'new_value' ),
438 446 null,
439 447 $context,
@@ -447,8 +455,9 @@
447 455 $option = 'rg_gforms_key';
448 456
449 457 $this->log(
450 458 sprintf(
459 + // translators: Placeholder refers to a status (e.g. "updated")
451 460 __( 'Gravity Forms license key %s', 'stream' ),
452 461 $is_update ? esc_html__( 'updated', 'stream' ) : esc_html__( 'deleted', 'stream' )
453 462 ),
454 463 compact( 'option', 'old_value', 'new_value' ),
@@ -460,14 +469,15 @@
460 469
461 470 public function callback_gform_post_export_entries( $form, $start_date, $end_date, $fields ) {
462 471 unset( $fields );
463 472 $this->log(
473 + // translators: Placeholder refers to a form title (e.g. "Contact Form")
464 474 __( '"%s" form entries exported', 'stream' ),
465 475 array(
466 476 'form_title' => $form['title'],
467 477 'form_id' => $form['id'],
468 478 'start_date' => empty( $start_date ) ? null : $start_date,
469 - 'end_date' => empty( $end_date ) ? null : $end_date,
479 + 'end_date' => empty( $end_date ) ? null : $end_date,
470 480 ),
471 481 $form['id'],
472 482 'export',
473 483 'exported'
@@ -475,17 +485,16 @@
475 485 }
476 486
477 487 public function callback_gform_forms_post_import( $forms ) {
478 488 $forms_total = count( $forms );
479 - $forms_label = ( 1 === $forms_total ) ? 'form' : 'forms';
480 489 $forms_ids = wp_list_pluck( $forms, 'id' );
481 490 $forms_titles = wp_list_pluck( $forms, 'title' );
482 491
483 492 $this->log(
484 - __( '%1$d %2$s imported', 'stream' ),
493 + // translators: Placeholder refers to a number of forms (e.g. "42")
494 + _n( '%d form imported', '%d forms imported', $forms_total, 'stream' ),
485 495 array(
486 496 'count' => $forms_total,
487 - 'label' => $forms_label,
488 497 'ids' => $forms_ids,
489 498 'titles' => $forms_titles,
490 499 ),
491 500 null,
@@ -497,8 +506,9 @@
497 506 public function callback_gform_export_separator( $dummy, $form_id ) {
498 507 $form = $this->get_form( $form_id );
499 508
500 509 $this->log(
510 + // translators: Placeholder refers to a form title (e.g. "Contact Form")
501 511 __( '"%s" form exported', 'stream' ),
502 512 array(
503 513 'form_title' => $form['title'],
504 514 'form_id' => $form_id,
@@ -515,9 +525,10 @@
515 525 $ids = wp_list_pluck( $forms, 'id' );
516 526 $titles = wp_list_pluck( $forms, 'title' );
517 527
518 528 $this->log(
519 - __( 'Export process started for %d forms', 'stream' ),
529 + // translators: Placeholder refers to a number of forms (e.g. "42")
530 + _n( 'Export process started for %d form', 'Export process started for %d forms', count( $forms ), 'stream' ),
520 531 array(
521 532 'count' => count( $forms ),
522 533 'ids' => $ids,
523 534 'titles' => $titles,
@@ -534,8 +545,9 @@
534 545 $lead = $this->get_lead( $lead_id );
535 546 $form = $this->get_form( $lead['form_id'] );
536 547
537 548 $this->log(
549 + // translators: Placeholders refer to an ID, and a form title (e.g. "42", "Contact Form")
538 550 __( 'Lead #%1$d from "%2$s" deleted', 'stream' ),
539 551 array(
540 552 'lead_id' => $lead_id,
541 553 'form_title' => $form['title'],
@@ -556,8 +568,9 @@
556 568 $lead = \GFFormsModel::get_lead( $lead_id );
557 569 $form = $this->get_form( $lead['form_id'] );
558 570
559 571 $this->log(
572 + // translators: Placeholders refer to an ID, another ID, and a form title (e.g. "42", "7", "Contact Form")
560 573 __( 'Note #%1$d added to lead #%2$d on "%3$s" form', 'stream' ),
561 574 array(
562 575 'note_id' => $note_id,
563 576 'lead_id' => $lead_id,
@@ -574,8 +587,9 @@
574 587 $lead = $this->get_lead( $lead_id );
575 588 $form = $this->get_form( $lead['form_id'] );
576 589
577 590 $this->log(
591 + // translators: Placeholders refer to an ID, another ID, and a form title (e.g. "42", "7", "Contact Form")
578 592 __( 'Note #%1$d deleted from lead #%2$d on "%3$s" form', 'stream' ),
579 593 array(
580 594 'note_id' => $note_id,
581 595 'lead_id' => $lead_id,
@@ -608,8 +622,9 @@
608 622 }
609 623
610 624 $this->log(
611 625 sprintf(
626 + // translators: Placeholders refer to an ID, a status, and a form title (e.g. "42", "activated", "Contact Form")
612 627 __( 'Lead #%1$d %2$s on "%3$s" form', 'stream' ),
613 628 $lead_id,
614 629 $actions[ $status ],
615 630 $form['title']
@@ -640,8 +655,9 @@
640 655 $status = ( ! empty( $status ) ) ? esc_html__( 'read', 'stream' ) : esc_html__( 'unread', 'stream' );
641 656
642 657 $this->log(
643 658 sprintf(
659 + // translators: Placeholders refer to an ID, a status, and a form title (e.g. "42", "unread", "Contact Form")
644 660 __( 'Entry #%1$d marked as %2$s on form #%3$d ("%4$s")', 'stream' ),
645 661 $lead_id,
646 662 $status,
647 663 $form['id'],
@@ -673,8 +689,9 @@
673 689 $action = $status;
674 690
675 691 $this->log(
676 692 sprintf(
693 + // translators: Placeholders refer to an ID, a status, and a form title (e.g. "42", "starred", "Contact Form")
677 694 __( 'Entry #%1$d %2$s on form #%3$d ("%4$s")', 'stream' ),
678 695 $lead_id,
679 696 $status,
680 697 $form['id'],
@@ -764,9 +781,9 @@
764 781
765 782 /**
766 783 * Track status change of forms
767 784 *
768 - * @param int $form_id
785 + * @param int $form_id
769 786 * @param string $action
770 787 * @return void
771 788 */
772 789 public function log_form_action( $form_id, $action ) {
@@ -787,8 +804,9 @@
787 804 );
788 805
789 806 $this->log(
790 807 sprintf(
808 + // translators: Placeholders refer to an ID, a form title, and a status (e.g. "42", "Contact Form", "Activated")
791 809 __( 'Form #%1$d ("%2$s") %3$s', 'stream' ),
792 810 $form_id,
793 811 $form['title'],
794 812 strtolower( $actions[ $action ] )