diff --git a/src/Model/Carrier/AbstractCarrier.php b/src/Model/Carrier/AbstractCarrier.php index 85e34a8..79a4cdf 100644 --- a/src/Model/Carrier/AbstractCarrier.php +++ b/src/Model/Carrier/AbstractCarrier.php @@ -191,28 +191,28 @@ public function getCode($type, $code = '') ), 'tracking_url' => array( - 'ddt' => __('http://www.DDT.com/portal/pw/track?trackNumber=#TRACKNUM#'), - 'post_danmark' => __('http://www.postdanmark.dk/tracktrace/TrackTrace.do?i_stregkode=#TRACKNUM#&i;_lang=IND'), - 'tnt' => __('https://securepostplaza.tntpost.nl/TPGApps/tracktrace/findByBarcodeServlet?BARCODE=#TRACKNUM#&ZIPCODE=#POSTCODE#'), - 'dpd_de' => __('http://extranet.dpd.de/cgi-bin/delistrack?pknr=#TRACKNUM#&typ=1&lang=de'), - 'dhl_de' => __('http://nolp.dhl.de/nextt-online-public/set_identcodes.do?lang=de&idc=#TRACKNUM#'), - 'gls' => __('http://www.gls-group.eu/276-I-PORTAL-WEB/content/GLS/DE03/DE/5001.htm?txtAction=71000&txtQuery=#TRACKNUM#&x=0&y=0'), - 'apc' => __('https://emea.netdespatch.com/mba/9116x0/track/?type=1&ref=#TRACKNUM#'), - 'dpd_uk' => __('http://www.dpd.co.uk/tracking/trackingSearch.do?search.searchType=0&search.parcelNumber=#TRACKNUM#'), - 'dhl_uk' => __('http://www.dhl.co.uk/content/gb/en/express/tracking.shtml?brand=DHL&AWB=#TRACKNUM#'), - 'fedex' => __('http://www.fedexuk.net/accounts/QuickTrack.aspx?consignment=#TRACKNUM#'), - 'fedex_us' => __('http://www.fedex.com/Tracking?language=english&cntry_code=us&tracknumbers=#TRACKNUM#'), - 'parcelforce' => __('http://www.parcelforce.com/portal/pw/track?trackNumber=#TRACKNUM#'), - 'royal_mail' => __('http://www.royalmail.com/track-trace/?trackNumber=#TRACKNUM#'), - 'uk_mail' => __('http://www.business-post.com/scripts/wsisa.dll/ws_quickpod.html?lc_SearchValue=#TRACKNUM#'), - 'tnt_uk' => __('http://www.kiosk.tnt.com/webshipper/doTrack.asp?C=#TRACKNUM#&L=EN'), - 'usps_usa' => __('https://tools.usps.com/go/TrackConfirmAction_input?qtc_tLabels1=#TRACKNUM#'), + 'ddt' => 'http://www.DDT.com/portal/pw/track?trackNumber=#TRACKNUM#', + 'post_danmark' => 'http://www.postdanmark.dk/tracktrace/TrackTrace.do?i_stregkode=#TRACKNUM#&i;_lang=IND', + 'tnt' => 'https://securepostplaza.tntpost.nl/TPGApps/tracktrace/findByBarcodeServlet?BARCODE=#TRACKNUM#&ZIPCODE=#POSTCODE#', + 'dpd_de' => 'http://extranet.dpd.de/cgi-bin/delistrack?pknr=#TRACKNUM#&typ=1&lang=de', + 'dhl_de' => 'http://nolp.dhl.de/nextt-online-public/set_identcodes.do?lang=de&idc=#TRACKNUM#', + 'gls' => 'http://www.gls-group.eu/276-I-PORTAL-WEB/content/GLS/DE03/DE/5001.htm?txtAction=71000&txtQuery=#TRACKNUM#&x=0&y=0', + 'apc' => 'https://emea.netdespatch.com/mba/9116x0/track/?type=1&ref=#TRACKNUM#', + 'dpd_uk' => 'http://www.dpd.co.uk/tracking/trackingSearch.do?search.searchType=0&search.parcelNumber=#TRACKNUM#', + 'dhl_uk' => 'http://www.dhl.co.uk/content/gb/en/express/tracking.shtml?brand=DHL&AWB=#TRACKNUM#', + 'fedex' => 'http://www.fedexuk.net/accounts/QuickTrack.aspx?consignment=#TRACKNUM#', + 'fedex_us' => 'http://www.fedex.com/Tracking?language=english&cntry_code=us&tracknumbers=#TRACKNUM#', + 'parcelforce' => 'http://www.parcelforce.com/portal/pw/track?trackNumber=#TRACKNUM#', + 'royal_mail' => 'http://www.royalmail.com/track-trace/?trackNumber=#TRACKNUM#', + 'uk_mail' => 'http://www.business-post.com/scripts/wsisa.dll/ws_quickpod.html?lc_SearchValue=#TRACKNUM#', + 'tnt_uk' => 'http://www.kiosk.tnt.com/webshipper/doTrack.asp?C=#TRACKNUM#&L=EN', + 'usps_usa' => 'https://tools.usps.com/go/TrackConfirmAction_input?qtc_tLabels1=#TRACKNUM#', ), ); if (!isset($codes[$type])) { - throw Mage::exception('Mage_Shipping', __('Invalid Tracking code type: %s', $type)); + throw new LocalizedException(__('Invalid Tracking code type: %1.', $type)); } if ('' === $code) { @@ -220,7 +220,7 @@ public function getCode($type, $code = '') } if (!isset($codes[$type][$code])) { - throw Mage::exception('Mage_Shipping', __('Invalid Tracking code for type %s: %s', $type, $code)); + throw new LocalizedException(__('Invalid Tracking code for type %1: %2.', $type, $code)); } return $codes[$type][$code]; diff --git a/src/i18n/en_US.csv b/src/i18n/en_US.csv index 94fb409..e69de29 100755 --- a/src/i18n/en_US.csv +++ b/src/i18n/en_US.csv @@ -1,26 +0,0 @@ -Country,Country -"Region/State","Region/State" -"Zip/Postal Code","Zip/Postal Code" -City,City -"Shipping Price","Shipping Price" -"Shipping Method","Shipping Method" -"Export CSV","Export CSV" -"Weight vs. Destination","Weight vs. Destination" -"Order Subtotal vs. Destination","Order Subtotal vs. Destination" -"# of Items vs. Destination","# of Items vs. Destination" -Weight,Weight -"Order Subtotal","Order Subtotal" -"# of Items","# of Items" -"Please correct Matrix Rate code type: %1.","Please correct Matrix Rate code type: %1." -"Please correct Matrix Rate code for type %1: %2.","Please correct Matrix Rate code for type %1: %2." -"Please correct Matrix Rates File Format.","Please correct Matrix Rates File Format." -"Something went wrong while importing matrix rates.","Something went wrong while importing matrix rates." -"We couldn\'t import this file because of these errors: %1","We couldn\'t import this file because of these errors: %1" -"Please correct Matrix Rates format in Row #%1. Invalid Number of Rows","Please correct Matrix Rates format in Row #%1. Invalid Number of Rows" -"Please correct Country "%1" in Row #%2.","Please correct Country "%1" in Row #%2." -"Please correct Region/State "%1" in Row #%2.","Please correct Region/State "%1" in Row #%2." -"Please correct %1 From "%2" in Row #%3.","Please correct %1 From "%2" in Row #%3." -"Please correct %1 To "%2" in Row #%3.","Please correct %1 To "%2" in Row #%3." -"Please correct Shipping Price "%1" in Row #%2.","Please correct Shipping Price "%1" in Row #%2." -"Please correct Shipping Method "%1" in Row #%2.","Please correct Shipping Method "%1" in Row #%2." -"Duplicate Row #%1 (Country "%2", Region/State "%3", City "%4", Zip from "%5", Zip to "%6", From Value "%7", To Value "%8", and Shipping Method "%9")","Duplicate Row #%1 (Country "%2", Region/State "%3", City "%4", Zip from "%5", Zip to "%6", From Value "%7", To Value "%8", and Shipping Method "%9")" diff --git a/src/view/frontend/layout/adminhtml_order_shipment_view.xml b/src/view/frontend/layout/adminhtml_order_shipment_view.xml deleted file mode 100644 index b4a111e..0000000 --- a/src/view/frontend/layout/adminhtml_order_shipment_view.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - Magento\Shipping::view/adminhtml/templates/order/tracking/view.phtml - - -