Skip to content

Commit 22e65b3

Browse files
author
Cari Spruiell
committed
MAGETWO-43612: Untranslatable phrases in Magento 2
- support translations of arrays
1 parent 45ef4c4 commit 22e65b3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/code/Magento/Paypal/Model/Info.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,9 @@ protected function _getFullInfo(array $keys, \Magento\Payment\Model\InfoInterfac
568568
}
569569
if (!empty($this->_paymentMapFull[$key]['value'])) {
570570
if ($labelValuesOnly) {
571-
$result[$this->_paymentMapFull[$key]['label']] = __($this->_paymentMapFull[$key]['value']);
571+
$value = $this->_paymentMapFull[$key]['value'];
572+
$value = is_array($value) ? array_map('__', $value) : __($value);
573+
$result[$this->_paymentMapFull[$key]['label']] = $value;
572574
} else {
573575
$result[$key] = $this->_paymentMapFull[$key];
574576
}

0 commit comments

Comments
 (0)