fixed CS
This commit is contained in:
parent
63c76c421e
commit
ea2dd12a4f
@ -26,16 +26,14 @@ class PoFileDumper extends FileDumper
|
||||
public function format(MessageCatalogue $messages, $domain = 'messages')
|
||||
{
|
||||
$output = '';
|
||||
|
||||
$newLine = FALSE;
|
||||
$newLine = false;
|
||||
foreach ($messages->all($domain) as $source => $target) {
|
||||
if ($newLine) {
|
||||
$output .= "\n";
|
||||
} else {
|
||||
$newLine = true;
|
||||
}
|
||||
else {
|
||||
$newLine = TRUE;
|
||||
}
|
||||
$output .= sprintf('msgid "%s"' . "\n", $this->escape($source));
|
||||
$output .= sprintf('msgid "%s"'."\n", $this->escape($source));
|
||||
$output .= sprintf('msgstr "%s"', $this->escape($target));
|
||||
}
|
||||
|
||||
|
@ -161,7 +161,7 @@ class PoFileLoader extends ArrayLoader implements LoaderInterface
|
||||
ksort($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']);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user