Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #48833 [Translation] Handle the translation of empty strings (jav…
…iereguiluz) This PR was squashed before being merged into the 5.4 branch. Discussion ---------- [Translation] Handle the translation of empty strings | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - In some apps, you might use an expression as the value of some `TranslatableMessage` object. The result of this expression can result in using an empty string as the value of the that object: ```php new TranslatableMessage($someCondition ? $someObject->someMethod() : '') ``` The issue is that Symfony will report that empty string in the list of "missing translations" (like in the first row of this image): ![](https://user-images.githubusercontent.com/73419/209708276-2c321204-4e7b-40c6-9386-0779a7ac4bf7.png) I think this is a bug and an empty string should just be output "as is" without reporting it as missing. What do you think? Is this truly a bug? Would it be a new feature for 6.3? The current behavior is correct and we should close without merging? Thanks. Commits ------- f19557953a [Translation] Handle the translation of empty strings
- Loading branch information