Skip to content

Commit

Permalink
fix: add correct translations for delivery options (#858)
Browse files Browse the repository at this point in the history
  • Loading branch information
GravendeelJochem authored Jul 25, 2024
1 parent 25082b4 commit 2df7796
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 16 deletions.
32 changes: 16 additions & 16 deletions Model/Quote/Checkout.php
Original file line number Diff line number Diff line change
Expand Up @@ -305,22 +305,22 @@ private function getDropOffDays(string $carrierPath): array {
private function getDeliveryOptionsStrings(): array
{
return [
'deliveryTitle' => $this->helper->getGeneralConfig('delivery_titles/delivery_title'),
'deliveryStandardTitle' => $this->helper->getGeneralConfig('delivery_titles/standard_delivery_title'),
'deliveryMorningTitle' => $this->helper->getGeneralConfig('delivery_titles/morning_title'),
'deliveryEveningTitle' => $this->helper->getGeneralConfig('delivery_titles/evening_title'),
'deliveryPickupTitle' => $this->helper->getGeneralConfig('delivery_titles/pickup_title'),
'pickupTitle' => $this->helper->getGeneralConfig('delivery_titles/pickup_title'),
'deliverySameDayTitle' => $this->helper->getGeneralConfig('delivery_titles/same_day_title') ?: __('Same day delivery'),
'hideSenderTitle' => $this->helper->getGeneralConfig('delivery_titles/hide_sender_title') ?: __('Hide sender'),
'list' => $this->helper->getGeneralConfig('delivery_titles/pickup_list_button_title'),
'map' => $this->helper->getGeneralConfig('delivery_titles/pickup_map_button_title'),
'packageTypeMailbox' => $this->helper->getGeneralConfig('delivery_titles/mailbox_title'),
'packageTypeDigitalStamp' => $this->helper->getGeneralConfig('delivery_titles/digital_stamp_title'),
'packageTypePackageSmall' => $this->helper->getGeneralConfig('delivery_titles/package_small_title') ?: __('Packet'),
'signatureTitle' => $this->helper->getGeneralConfig('delivery_titles/signature_title'),
'onlyRecipientTitle' => $this->helper->getGeneralConfig('delivery_titles/only_recipient_title'),
'saturdayDeliveryTitle' => $this->helper->getGeneralConfig('delivery_titles/saturday_title'),
'deliveryTitle' => $this->helper->getGeneralConfig('delivery_titles/delivery_title') ?: __('delivery_title'),
'deliveryStandardTitle' => $this->helper->getGeneralConfig('delivery_titles/standard_delivery_title') ?: __('standard_delivery'),
'deliveryMorningTitle' => $this->helper->getGeneralConfig('delivery_titles/morning_title') ?: __('morning_title'),
'deliveryEveningTitle' => $this->helper->getGeneralConfig('delivery_titles/evening_title') ?: __('evening_title'),
'deliveryPickupTitle' => $this->helper->getGeneralConfig('delivery_titles/pickup_title') ?: __('pickup_title'),
'pickupTitle' => $this->helper->getGeneralConfig('delivery_titles/pickup_title') ?: __('pickup_title'),
'deliverySameDayTitle' => $this->helper->getGeneralConfig('delivery_titles/same_day_title') ?: __('same_day_title'),
'hideSenderTitle' => $this->helper->getGeneralConfig('delivery_titles/hide_sender_title') ?: __('hide_sender_title'),
'list' => $this->helper->getGeneralConfig('delivery_titles/pickup_list_button_title') ?: __('list_title'),
'map' => $this->helper->getGeneralConfig('delivery_titles/pickup_map_button_title') ?: __('map_title'),
'packageTypeMailbox' => $this->helper->getGeneralConfig('delivery_titles/mailbox_title') ?: __('mailbox_title'),
'packageTypeDigitalStamp' => $this->helper->getGeneralConfig('delivery_titles/digital_stamp_title') ?: __('digital_stamp_title'),
'packageTypePackageSmall' => $this->helper->getGeneralConfig('delivery_titles/package_small_title') ?: __('packet_title'),
'signatureTitle' => $this->helper->getGeneralConfig('delivery_titles/signature_title') ?: __('signature_title'),
'onlyRecipientTitle' => $this->helper->getGeneralConfig('delivery_titles/only_recipient_title') ?: __('only_recipient_title'),
'saturdayDeliveryTitle' => $this->helper->getGeneralConfig('delivery_titles/saturday_title') ?: __('saturday_delivery_title'),

'wrongPostalCodeCity' => __('Postcode/city combination unknown'),
'addressNotFound' => __('Address details are not entered'),
Expand Down
16 changes: 16 additions & 0 deletions i18n/en_US.csv
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,19 @@ show_surcharge_price, Show surcharge
Automate 'Large format',Automate 'Larger than 100 x 70 x 58 cm or heavier than 23 kg'
Large package,Larger than 100 x 70 x 58 cm or heavier than 23 kg

delivery_title, Delivery Options
standard_title, Standard Delivery
morning_title, Morning Delivery
evening_title, Evening Delivery
pickup_title, Pickup locations
same_day_title, Same day Delivery
hide_sender_title, Hide Sender
list_title, List
map_title, Map
mailbox_title, Mailbox
digital_stamp_title, Digital Stamp
packet_title, Packet
signature_title, Signature
only_recipient_title, Only Recipient
saturday_delivery, Saturday Delivery

16 changes: 16 additions & 0 deletions i18n/fr_FR.csv
Original file line number Diff line number Diff line change
Expand Up @@ -206,3 +206,19 @@ Large package,Plus grand que 100 x 70 x 58 cm ou plus lourd que 23 kg
{field} is required.,{field} est requis.
Address not found.,Adresse introuvable.
Postal code is invalid for the current country.,Le code postal n’est pas valide pour le pays actuel.

delivery_title, Options de livraison
standard_title, Livraison standard
morning_title, Livraison du lundi
evening_title, Livraison en soirée
pickup_title, Points de collecte
same_day_title, Livraison le jour même
hide_sender_title, Masquer l'expéditeur
list_title, Liste
map_title, Carte
mailbox_title, Colis boîte aux lettres
digital_stamp_title, Timbre digital
packet_title, Colis
signature_title, Signature à réception
only_recipient_title, Adresse de résidence uniquement
saturday_delivery, Livraison le samedi
16 changes: 16 additions & 0 deletions i18n/nl_NL.csv
Original file line number Diff line number Diff line change
Expand Up @@ -298,3 +298,19 @@ Options equal to shipment,Opties overnemen van heenzending
Export to MyParcel, Exporteer naar MyParcel
Already exported, Reeds geëxporteerd
"Enabling this setting automatically creates a related return shipment for any shipment you export. When downloading the shipment labels the corresponding return shipment labels will be included.","Na het activeren van deze instelling wordt er bij het exporteren van elke zending automatisch een retour zending aangemaakt. Als je het label print wordt ook meteen het retour label geprint."

delivery_title, Bezorgopties
standard_title, Standaard bezorging
morning_title, Maandag levering
evening_title, Avond levering
pickup_title, Afhaal locaties
same_day_title, Zelfde dag levering
hide_sender_title, Afzender verbergen
list_title, Lijst
map_title, Kaart
mailbox_title, Brievenbuspakje
digital_stamp_title, Digitale postzegel
packet_title, Pakket
signature_title, Handtekening voor ontvangst
only_recipient_title, Alleen huisadres
saturday_delivery, Zaterdag levering

0 comments on commit 2df7796

Please sign in to comment.