From 5a0a1ed4a13e1fab9af4d99fa93aae92ff59300a Mon Sep 17 00:00:00 2001 From: Jacqueline Rinnhofer Date: Fri, 4 Aug 2017 11:46:09 +0200 Subject: [PATCH] Update checkoutportal link --- .../WirecardCheckoutSeamless/Bootstrap.php | 23 +++++++++++++------ 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/Frontend/WirecardCheckoutSeamless/Bootstrap.php b/Frontend/WirecardCheckoutSeamless/Bootstrap.php index d961974..2111894 100644 --- a/Frontend/WirecardCheckoutSeamless/Bootstrap.php +++ b/Frontend/WirecardCheckoutSeamless/Bootstrap.php @@ -91,14 +91,23 @@ public function getInfo() $shopversion = '>5.2.21'; } - $copLink = 'Wirecard Checkout Portal'; - + $language = Shopware()->Locale()->getLanguage(); + switch ($language) { + case 'en': + $copLink = 'Wirecard Checkout Portal'; + break; + case 'it': + $copLink = 'Wirecard Checkout Portal'; + break; + case 'nl': + $copLink = 'Wirecard Checkout Portal'; + break; + case 'de': + default: + $copLink = 'Wirecard Checkout Portal'; + break; + } $image = dirname(__FILE__) . '/wirecard-logo.png'; $imageData = base64_encode(file_get_contents($image));