| @@ -241,8 +241,9 @@ | ||
| 241 | 241 | ], |
| 242 | 242 | 'waitImageUrl' => IMAGIFY_ASSETS_IMG_URL . 'popin-loader.svg', |
| 243 | 243 | 'ajaxActions' => [ |
| 244 | 244 | 'bulkProcess' => 'imagify_bulk_optimize', |
| 245 | + 'bulkStop' => 'imagify_bulk_stop', | |
| 245 | 246 | 'getFolderData' => 'imagify_get_folder_type_data', |
| 246 | 247 | 'bulkInfoSeen' => 'imagify_bulk_info_seen', |
| 247 | 248 | ], |
| 248 | 249 | 'ajaxNonce' => wp_create_nonce( 'imagify-bulk-optimize' ), |
| @@ -292,8 +293,17 @@ | ||
| 292 | 293 | /* translators: %s is a formatted number, dont use %d. */ |
| 293 | 294 | 'imagesErrorText' => __( '%s Error(s)', 'imagify' ), |
| 294 | 295 | 'bulkInfoTitle' => __( 'Information', 'imagify' ), |
| 295 | 296 | 'confirmBulk' => __( 'Start the optimization', 'imagify' ), |
| 297 | + 'stopTitle' => __( 'Stop the optimization?', 'imagify' ), | |
| 298 | + 'stopText' => __( 'Media files still waiting in the queue will not be optimized. The media file currently being processed cannot be interrupted. You can restart the optimization at any time.', 'imagify' ), | |
| 299 | + 'confirmStop' => __( 'Stop the optimization', 'imagify' ), | |
| 300 | + 'cancelStop' => __( 'Continue the optimization', 'imagify' ), | |
| 301 | + 'stoppedTitle' => __( 'Optimization stopped', 'imagify' ), | |
| 302 | + /* translators: %s is a number. Don't use %d. */ | |
| 303 | + 'stoppedText' => __( '%s media file(s) were removed from the queue.', 'imagify' ), | |
| 304 | + 'stoppedNothingQueuedText' => __( 'The optimization was stopped. No media file was left in the queue.', 'imagify' ), | |
| 305 | + 'stopErrorText' => __( 'The optimization could not be stopped. Please reload the page and try again.', 'imagify' ), | |
| 296 | 306 | ], |
| 297 | 307 | ]; |
| 298 | 308 | |
| 299 | 309 | if ( get_transient( 'imagify_large_library' ) ) { |