mirror of
https://github.com/itflow-org/itflow
synced 2026-09-21 22:21:15 +00:00
Bump imapengine from 1.25.4 to 1.25.6 and dependencies
This commit is contained in:
@@ -30,6 +30,8 @@ class PoFileDumper extends FileDumper
|
||||
$output .= "\n";
|
||||
|
||||
$newLine = false;
|
||||
$isIntlDomain = str_ends_with($domain, MessageCatalogue::INTL_DOMAIN_SUFFIX);
|
||||
|
||||
foreach ($messages->all($domain) as $source => $target) {
|
||||
if ($newLine) {
|
||||
$output .= "\n";
|
||||
@@ -48,9 +50,10 @@ class PoFileDumper extends FileDumper
|
||||
$output .= $this->formatComments(implode(' ', (array) $metadata['sources']), ':');
|
||||
}
|
||||
|
||||
$sourceRules = $this->getStandardRules($source);
|
||||
$targetRules = $this->getStandardRules($target);
|
||||
if (2 == \count($sourceRules) && [] !== $targetRules) {
|
||||
// in an ICU domain the pipe is an ordinary character, pluralization is expressed by the message itself
|
||||
$sourceRules = $isIntlDomain ? [] : $this->getStandardRules($source);
|
||||
$targetRules = $isIntlDomain ? [] : $this->getStandardRules($target);
|
||||
if (2 == \count($sourceRules) && $targetRules) {
|
||||
$output .= \sprintf('msgid "%s"'."\n", $this->escape($sourceRules[0]));
|
||||
$output .= \sprintf('msgid_plural "%s"'."\n", $this->escape($sourceRules[1]));
|
||||
foreach ($targetRules as $i => $targetRule) {
|
||||
|
||||
Reference in New Issue
Block a user