Skip to content
Permalink
Browse files

Allow context to be multiple lines in po files

  • Loading branch information...
Wouter0100 committed Mar 22, 2018
1 parent 6735914 commit a691b4baf36f6d3b8262aa3e52d9cd32b91ffe45
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/I18n/Parser/PoFileParser.php
@@ -98,7 +98,7 @@ public function parse($resource)
} elseif (substr($line, 0, 9) === 'msgctxt "') {
$item['context'] = substr($line, 9, -1);
} elseif ($line[0] === '"') {
$continues = isset($item['translated']) ? 'translated' : 'ids';
$continues = isset($item['context']) ? 'context' : (isset($item['translated']) ? 'translated' : 'ids');
if (is_array($item[$continues])) {
end($item[$continues]);

0 comments on commit a691b4b

Please sign in to comment.
You can’t perform that action at this time.