PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.6.5
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.6.5
1.6.5 1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.4 1.5.5 1.5.3 1.5.2 1.5.1 1.5.0 1.4.2 1.4.1 1.4.0 1.3.28 1.3.27 1.3.26 1.3.25 1.3.23 1.3.22 1.3.21 1.3.20 1.3.19 trunk All 48 releases
← All changes | app/Services/FileSystem/Drivers/S3/S3ConnectionVerify.php +6 -4 1.3.21 → 1.6.5 View file →
@@ -388,9 +388,9 @@
388 388 // 404 on ?publicAccessBlock means no configuration exists, so it's disabled.
389 389 return false;
390 390 }
391 391
392 - return new \WP_Error('public_access_check_failed', 'Could not check public access settings');
392 + return new \WP_Error('public_access_check_failed', __('Could not check public access settings', 'fluent-cart'));
393 393 }
394 394
395 395 public function setPublicAccessBlock(bool $enable)
396 396 {
@@ -438,9 +438,10 @@
438 438
439 439 $body = wp_remote_retrieve_body($response);
440 440 $xml = simplexml_load_string($body);
441 441 $errorMsg = $xml && isset($xml->Message) ? (string)$xml->Message : $body;
442 - return new \WP_Error('s3_update_failed', 'Failed to update S3 Public Access Block: ' . $errorMsg);
442 + /* translators: %1$s: error message from S3 API */
443 + return new \WP_Error('s3_update_failed', sprintf(__('Failed to update S3 Public Access Block: %1$s', 'fluent-cart'), $errorMsg));
443 444 }
444 445
445 446 public function checkObjectOwnership()
446 447 {
@@ -487,9 +488,9 @@
487 488 // If ownership controls are not found, it implies legacy behavior (ObjectWriter), which means ACLs are enabled (Not Enforced).
488 489 return false;
489 490 }
490 491
491 - return new \WP_Error('ownership_check_failed', 'Could not check object ownership settings');
492 + return new \WP_Error('ownership_check_failed', __('Could not check object ownership settings', 'fluent-cart'));
492 493 }
493 494
494 495 public function getBucketLocation()
495 496 {
@@ -580,9 +581,10 @@
580 581
581 582 $body = wp_remote_retrieve_body($response);
582 583 $xml = simplexml_load_string($body);
583 584 $errorMsg = $xml && isset($xml->Message) ? (string)$xml->Message : $body;
584 - return new \WP_Error('s3_update_failed_ownership', 'Failed to update S3 Object Ownership: ' . $errorMsg);
585 + /* translators: %1$s: error message from S3 API */
586 + return new \WP_Error('s3_update_failed_ownership', sprintf(__('Failed to update S3 Object Ownership: %1$s', 'fluent-cart'), $errorMsg));
585 587 }
586 588
587 589 private static function validateRequestInputs(string $region, string $bucket = '')
588 590 {