Commit db21494
committed
minor #62790 [Translation] Perf: Keep catalogues if fallback locales have no change (rr-it)
This PR was merged into the 8.1 branch.
Discussion
----------
[Translation] Perf: Keep catalogues if fallback locales have no change
| Q | A
| ------------- | ---
| Branch? | 8.1
| Bug fix? | no
| New feature? | no <!-- if yes, also update src/**/CHANGELOG.md -->
| Deprecations? | no <!-- if yes, also update UPGRADE-*.md and src/**/CHANGELOG.md -->
| Issues | Fix #... <!-- prefix each issue number with "Fix #"; no need to create an issue if none exists, explain below -->
| License | MIT
With this change a call to `Translator::setFallbackLocales()` will not clear the catalogues in case the current fallback locales are already equal to the newly to be set fallback locales.
Any regeneration of catalogues is computational expensive.
<!--
🛠️ Replace this text with a concise explanation of your change:
- What it does and why it's needed
- A simple example of how it works (include PHP, YAML, etc.)
- If it modifies existing behavior, include a before/after comparison
Contributor guidelines:
- ✅ Add tests and ensure they pass
- 🐞 Bug fixes must target the **lowest maintained** branch where they apply
https://symfony.com/releases#maintained-symfony-branches
- ✨ New features and deprecations must target the **feature** branch
and must add an entry to the changelog file of the patched component:
https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry
- 🔒 Do not break backward compatibility:
https://symfony.com/bc
-->
Commits
-------
c216bb4 Perf: Keep catalogues if fallback locales have no change1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
148 | 154 | | |
149 | 155 | | |
150 | 156 | | |
| |||
0 commit comments