Fixed issue #5427
This commit is contained in:
parent
c18bf19016
commit
f308f521a6
@ -157,7 +157,7 @@ class PoFileLoader extends ArrayLoader implements LoaderInterface
|
|||||||
private function addMessage(array &$messages, array $item)
|
private function addMessage(array &$messages, array $item)
|
||||||
{
|
{
|
||||||
if (is_array($item['translated'])) {
|
if (is_array($item['translated'])) {
|
||||||
$messages[$item['ids']['singular']] = stripslashes($item['translated'][0]);
|
$messages[$item['ids']['singular']] = stripcslashes($item['translated'][0]);
|
||||||
if (isset($item['ids']['plural'])) {
|
if (isset($item['ids']['plural'])) {
|
||||||
$plurals = $item['translated'];
|
$plurals = $item['translated'];
|
||||||
// PO are by definition indexed so sort by index.
|
// PO are by definition indexed so sort by index.
|
||||||
@ -172,7 +172,7 @@ class PoFileLoader extends ArrayLoader implements LoaderInterface
|
|||||||
$messages[$item['ids']['plural']] = stripcslashes(implode('|', $plurals));
|
$messages[$item['ids']['plural']] = stripcslashes(implode('|', $plurals));
|
||||||
}
|
}
|
||||||
} elseif (!empty($item['ids']['singular'])) {
|
} elseif (!empty($item['ids']['singular'])) {
|
||||||
$messages[$item['ids']['singular']] = stripslashes($item['translated']);
|
$messages[$item['ids']['singular']] = stripcslashes($item['translated']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user