From f0f7cbb079e2fd76ef7392e25203a98303573799 Mon Sep 17 00:00:00 2001 From: Martina Lindenhofer <68067510+MLindenhofer@users.noreply.github.com> Date: Fri, 20 Oct 2023 13:57:26 +0200 Subject: [PATCH] Update AddressBook.php SS4 (#796) Update AddressBook translation string by adding the addresstype - for SS4 version --- src/Checkout/Component/AddressBook.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Checkout/Component/AddressBook.php b/src/Checkout/Component/AddressBook.php index 90b76b5a..3915f774 100644 --- a/src/Checkout/Component/AddressBook.php +++ b/src/Checkout/Component/AddressBook.php @@ -72,7 +72,7 @@ public function getExistingAddressFields() $member = Security::getCurrentUser(); if ($member && $member->AddressBook()->exists()) { $addressoptions = $member->AddressBook()->sort('Created', 'DESC')->map('ID', 'toString')->toArray(); - $addressoptions['newaddress'] = _t('SilverShop\Model\Address.CreateNewAddress', 'Create new address'); + $addressoptions['newaddress'] = _t('SilverShop\Model\Address.CreateNewAddress', 'Create new {AddressType} address', '', ["AddressType" => $this->addresstype]); $fieldtype = count($addressoptions) > 3 ? DropdownField::class : OptionsetField::class; $label = _t("SilverShop\Model\Address.Existing{$this->addresstype}Address", "Existing {$this->addresstype} Address");