-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
[Translation] merge all fallback catalogues messages into current catalo... #13981
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
d201dce
to
2c8aeef
Compare
} | ||
} else { | ||
$current = ''; | ||
$fallbackContent = ''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fallbackContent is already ''
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
b1a60e9
to
9de6fed
Compare
} | ||
foreach ($messages as $domain => $domainMessages) { | ||
$catalogue->add($domainMessages, $domain); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would add return '';
here and remove the else
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
9de6fed
to
6eb5e73
Compare
Thank you @aitboudad. |
…nto current catalo... (aitboudad) This PR was merged into the 2.7 branch. Discussion ---------- [Translation] merge all fallback catalogues messages into current catalo... | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Fixed tickets | ~ | Tests pass? | yes | License | MIT The amount of reduced memory depend on number of defined fallbacks and the size of messages. For example if we defined 2 fallbacks and we have a large file like ~20 mb we save (~40 mb)  Commits ------- 6eb5e73 [Translation] merge all fallback catalogues messages into current catalogue.
The amount of reduced memory depend on number of defined fallbacks and the size of messages.

For example if we defined 2 fallbacks and we have a large file like ~20 mb we save (~40 mb)