Skip to content

Commit

Permalink
fix: error translation why an order cannot be exported.
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardPerdaan committed Jul 2, 2021
1 parent cd859e8 commit 12670c5
Show file tree
Hide file tree
Showing 8 changed files with 2,343 additions and 1,995 deletions.
4 changes: 2 additions & 2 deletions includes/admin/class-wcmp-export.php
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ public function add_shipments(array $order_ids, bool $process)
$consignment = $exportConsignments->getConsignment();
} catch (Exception $ex) {
$errorMessage = sprintf(
__('export_orderid_%1$s_failed_because_%2$s', 'woocommerce-myparcel'),
__('error_export_order_id_failed_because', 'woocommerce-myparcel'),
$order_id, __($ex->getMessage(), 'woocommerce-myparcel')
);
$this->errors[$order_id] = $errorMessage;
Expand Down Expand Up @@ -1156,7 +1156,7 @@ public function getShipmentData(array $ids, WC_Order $order): array
if (empty($ids)) {
return [];
}

$data = [];
$api = $this->init_api();
$response = $api->get_shipments($ids);
Expand Down
Loading

0 comments on commit 12670c5

Please sign in to comment.