I am developing a Symfony2 solution with several tenants and wondering if there is a way to use different translation files for each tenant, since the default translation files currently contain, for example, links to the original name of the tenant, etc.
I use the Leah package ( https://github.com/liip/LiipThemeBundle ) to allow tenants to use our code base, overlaying their own design on top, but cannot solve a simple and scalable way to let them use their own translation files.
The topic of git repo was discussed in this release, but I don't believe anything has ever been implemented ( https://github.com/liip/LiipThemeBundle/issues/12 ). Ideally, I would like to follow the directory structure that they suggested in this thread, for example
root
- app
- Resources
- themes
- <theme name>
- public
- translations (this would be new)
- views
as this would allow us to continue to practice those self-contained git submodules that the tenant can support.
source
share