diff --git a/Gettext/Extractors/Po.php b/Gettext/Extractors/Po.php index 1e85af53..df4e87e7 100644 --- a/Gettext/Extractors/Po.php +++ b/Gettext/Extractors/Po.php @@ -27,10 +27,11 @@ static public function parse ($file, Entries $entries) { $line = self::fixMultiLines($line,$lines,$i); - if ($line === '' && $translation->hasOriginal()) { - $entries[] = $translation; - - $translation = new Translation; + if ($line === '') { + if($translation->hasOriginal()) { + $entries[] = $translation; + $translation = new Translation; + } continue; } list($key, $data) = preg_split('/\s/', $line, 2); @@ -126,4 +127,4 @@ static private function fixMultiLines ($line, Array $lines, &$i) { } return $line; } -} \ No newline at end of file +}