You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using en-us as fallback locale, on line 106 and 112 str_replace('-','') or something alike should be used. Else the generated file will contain something like
'$catalogueEn-Us = new MessageCatalogue .....'
Please fix!!
The text was updated successfully, but these errors were encountered:
This PR was submitted for the 2.3 branch but it was merged into the 2.2 branch instead (closes#8310).
Discussion
----------
[FrameworkBundle] Fixed variable name used in translation cache
This simply fixes the `$catalogueXXX` variable name used in the translation cache files in case the user use locales such as `en-US`, the generated variable's name was `$catalogueEn-Us`, with this fix it will be `$catalogueEnUs`.
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #7824
| License | MIT
| Doc PR | -
Commits
-------
e50399c [FrameworkBundle] Fixed variable name used in translation cache
File:
D:\Projects\ClimbCheck\climbing\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\Translation\Translator.php
When using en-us as fallback locale, on line 106 and 112 str_replace('-','') or something alike should be used. Else the generated file will contain something like
'$catalogueEn-Us = new MessageCatalogue .....'
Please fix!!
The text was updated successfully, but these errors were encountered: