Commit 112fa8df authored by Kenny Hall's avatar Kenny Hall

Localized strings in the modal and reworded some of the text.

parent 7fb0abd0
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
......@@ -217,14 +217,14 @@ jQuery(document).ready(function($) {
} );
} );
jQuery( '#nfDeleteExpiredSubmissions' ).click( function( e ) {
jQuery( '#nfTrashExpiredSubmissions' ).click( function( e ) {
var that = this;
var data = {
closeOnClick: false,
closeOnEsc: true,
content: '<p>Are you sure want to delete this?</p>',
content: '<p>' + nf_settings.i18n.trashExpiredSubsMessage + '<p>',
btnPrimary: {
text: 'Delete',
text: nf_settings.i18n.trashExpiredSubsButtonPrimary,
callback: function( e ) {
// Hide the buttons.
deleteModal.maybeShowActions( false );
......@@ -236,7 +236,7 @@ jQuery(document).ready(function($) {
}
},
btnSecondary: {
text: 'Cancel',
text: nf_settings.i18n.trashExpiredSubsButtonSecondary,
callback: function( e ) {
deleteModal.toggleModal( false );
}
......
......@@ -163,7 +163,10 @@ final class NF_Admin_Menus_Settings extends NF_Abstracts_Submenu
'nonce' => wp_create_nonce( "ninja_forms_settings_nonce" ),
'batch_nonce' => wp_create_nonce( 'ninja_forms_batch_nonce' ),
'i18n' => array(
'rollbackConfirm' => __( 'Are you sure you want to rollback?', 'ninja-forms' )
'rollbackConfirm' => __( 'Are you sure you want to rollback?', 'ninja-forms' ),
'trashExpiredSubsMessage' => __( 'Are you sure you want to trash all expired submissions?', 'ninja-forms' ),
'trashExpiredSubsButtonPrimary' => __( 'Trash', 'ninja-forms' ),
'trashExpiredSubsButtonSecondary' => __( 'Cancel', 'ninja-forms' ),
),
'allow_telemetry' => $allow_tel,
));
......
......@@ -105,12 +105,12 @@ return apply_filters( 'ninja_forms_plugin_settings_advanced', array(
'desc' => __( 'Rollback to the most recent 2.9.x release.', 'ninja-forms' ) . '<br /><div style="color: red">' . __( 'IMPORTANT: All 3.0 data will be removed.', 'ninja-forms' ) . '<br />' . __( 'Please export any forms or submissions you do not want to be lost during this process.', 'ninja-forms' ) . '</div>',
),
'delete_expired_submissions' => array(
'id' => 'delete_expired_submissions',
'trash_expired_submissions' => array(
'id' => 'trash_expired_submissions',
'type' => 'html',
'html' => '<div id="nfDeleteExpiredSubmissions" class="button">' . __( 'Delete', 'ninja-forms' ) . '</div>',
'label' => __( 'Delete Expired Submissions', 'ninja-forms' ),
'desc' => __( 'Delete all submissions that are marked as expired.', 'ninja-forms' ),
'html' => '<div id="nfTrashExpiredSubmissions" class="button">' . __( 'Move To Trash', 'ninja-forms' ) . '</div>',
'label' => __( 'Trash Expired Submissions', 'ninja-forms' ),
'desc' => __( 'This setting maybe helpful if your WordPress installation is not moving expired submissions to the trash properly.', 'ninja-forms' ),
),
));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment