-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[symfony/translation] Error in readLocalTranslations() #44185
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
Labels
Comments
Any news? I think that this error is very obvious :) |
Would you like to submit a PR? |
Sure |
@fabpot As I see now it's fixed in 5.4. I'm not sure about versions maintenance policy... Submit PR for 5.3? |
Yes please, 5.3 is still maintained. |
tomasz-kusy
added a commit
to tomasz-kusy/symfony
that referenced
this issue
Nov 30, 2021
tomasz-kusy
added a commit
to tomasz-kusy/symfony
that referenced
this issue
Dec 5, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Symfony version(s) affected
5.3
Description
Method readLocalTranslations has wrongly implemented
filterCatalogue
method;In TranslationTrait
near line 35
we have:
The problem is:
If there are more than one domain, after the first run of the loop we got filtered $catalogue. So we can't find second domain.
How to reproduce
try to to use readLocalTranslations() with more than one $domain
Possible Solution
change to:
Additional Context
No response
The text was updated successfully, but these errors were encountered: