Commit 937f8e9
committed
minor #20797 fix: Change translation domain name for bundle translation and add an example (jbonnier)
This PR was merged into the 6.4 branch.
Discussion
----------
fix: Change translation domain name for bundle translation and add an example
The documentation was misleading regarding the bundle translations.
While the page [Symfony Bundles Documentation](https://symfony.com/doc/current/bundles.html) mentions that translation file names should use PascalCase — as shown in the example `AcmeBlogBundle.en.xlf` — the [Best Practices for Bundles](https://symfony.com/doc/current/bundles/best_practices.html#translation-files) suggest that the translation domain should be `acme_blog`.
This inconsistency led me to believe that there might be some mechanism that automatically converts the snake_case domain into PascalCase, but that isn’t the case.
I reviewed several bundles by core Symfony developers (such as EasyAdmin and bundles from SymfonyCasts), and they do indeed appear to use PascalCase translation domain names.
Commits
-------
20929b4 fix: Change translation domain name for bundle translation and add an example1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
400 | | - | |
| 400 | + | |
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
404 | 408 | | |
405 | 409 | | |
406 | 410 | | |
| |||
0 commit comments