diff --git a/controllers/admin/AdminTaxRulesGroupController.php b/controllers/admin/AdminTaxRulesGroupController.php index c7621c90f..c7aa929bc 100644 --- a/controllers/admin/AdminTaxRulesGroupController.php +++ b/controllers/admin/AdminTaxRulesGroupController.php @@ -416,7 +416,7 @@ class AdminTaxRulesGroupControllerCore extends AdminController list($tr->zipcode_from, $tr->zipcode_to) = $tr->breakDownZipCode($zip_code); // Construct Object Country - $country = new Country((int)$id_country); + $country = new Country((int)$id_country, (int)$this->context->language->id); if ($zip_code && $country->need_zip_code) { @@ -427,8 +427,8 @@ class AdminTaxRulesGroupControllerCore extends AdminController if (!$country->checkZipCode($zip_code)) { $this->errors[] = sprintf( - Tools::displayError('Zip/Postal code is invalid. Must be typed as follows: %s'), - str_replace('C', $country->iso_code, str_replace('N', '0', str_replace('L', 'A', $country->zip_code_format))) + Tools::displayError('Zip/Postal code is invalid. Must be typed as follows: %s for %s'), + str_replace('C', $country->iso_code, str_replace('N', '0', str_replace('L', 'A', $country->zip_code_format))), $country->name ); } }