| @@ -222,8 +222,15 @@ | ||
| 222 | 222 | '</a>' |
| 223 | 223 | ), |
| 224 | 224 | 'Your image is too big to be uploaded on our server' => __( 'Your file is too big to be uploaded on our server.', 'imagify' ), |
| 225 | 225 | 'Webp is less performant than original' => __( 'WebP file is larger than the original image', 'imagify' ), |
| 226 | + | |
| 227 | + /* | |
| 228 | + * The AVIF wording below has not been confirmed against a live API response: it mirrors the WebP | |
| 229 | + * pattern. Both casings are mapped so the message is translated whichever one the API returns. | |
| 230 | + */ | |
| 231 | + 'Avif is less performant than original' => __( 'AVIF file is larger than the original image', 'imagify' ), | |
| 232 | + 'AVIF is less performant than original' => __( 'AVIF file is larger than the original image', 'imagify' ), | |
| 226 | 233 | 'Our server returned an invalid response' => __( 'Our server returned an invalid response.', 'imagify' ), |
| 227 | 234 | 'cURL isn\'t installed on the server' => __( 'cURL is not available on the server.', 'imagify' ), |
| 228 | 235 | // API messages. |
| 229 | 236 | 'Authentification not provided' => __( 'Authentication not provided.', 'imagify' ), |
| @@ -306,9 +313,9 @@ | ||
| 306 | 313 | * |
| 307 | 314 | * @return void |
| 308 | 315 | */ |
| 309 | 316 | function imagify_generate_nextgen( $contexts ) { |
| 310 | - Imagify\Bulk\Bulk::get_instance()->run_generate_nextgen( $contexts ); | |
| 317 | + Imagify\Bulk\Bulk::get_instance()->run_generate_nextgen( $contexts, imagify_nextgen_images_formats() ); | |
| 311 | 318 | } |
| 312 | 319 | |
| 313 | 320 | /** |
| 314 | 321 | * Add command to WP CLI |