Skip to content

Commit 1bdf755

Browse files
committed
fixed bug implementing #25
1 parent c8cd513 commit 1bdf755

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Gettext/Extractors/Mo.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ public static function parse($file, Entries $entries)
6161
$plural = isset($original[1]) ? $original[1] : '';
6262
$pluralTranslation = isset($translated[1]) ? $translated[1] : '';
6363

64-
$translation = $entries->insert(null, $original[0], $plural)->setTranslation($translated[0]);
64+
$translation = $entries->insert(null, $original[0], $plural);
65+
$translation->setTranslation($translated[0]);
6566

6667
if ($plural && $pluralTranslation) {
6768
$translation->setPluralTranslation($pluralTranslation);

0 commit comments

Comments
 (0)