-
Notifications
You must be signed in to change notification settings - Fork 13
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
Remove dependency on contao-community-alliance/translator #84
Comments
It is used as the c-c-a translator backports the symfony translator gateway ( We might be able to loosen the dependencies in the various c-c-a libraries but are a little short on man power at the moment (almost all of us are either in holidays or busy with finishing project in order to be able to go to holidays). |
Since it is only used for translating one single translation key via the translator, it's probably easiest to just access |
@fritzmg we looked at the problem during the MM-call - but have not yet found an elegant solution... |
Well, why use it in this package in the first place? As I said, it is only used for one translation. Why not just access that single translation the old way? |
There are 4 translations
Because the old way (polluting |
The translator is not used for these translations. As I said the translator is only used for exactly one translation: |
You are right, however, this means that the other code locations have been forgotten to adapt, not that the location already correct should be reverted. |
Contao requires you to do that. The usage of the translator does not prevent that.
Of course, but it seems like a disproportionately high amount of effort to require an additional dependency in order to have a Contao 4.4 compatible translator service, which in turn depends on older dependencies, just to be able to write
instead of
exactly once.
They have not been forgotten to adapt. There simply is nothing to adapt. |
Ah, you mean in places like this for example: Yes, that could be changed to the translator. |
I know that the Contao translator is merely a gateway through to good old
In this extension this is currently ONE location, you are right. However, we use the translator in all our components, making an exception in MCW will not make things better for the majority of our users. So there would be no benefit. For Contao > 4.5 it should work to add
As per your last comment, you found one. 😏 |
Haven't thought of that, that does work indeed 👍 😃 Though I agree that a future version of MCW should simply drop the dependency and increase the |
Closing in favor of https://github.com/menatwork/contao-multicolumnwizard-bundle/pull/111 |
Having a dependency on
contao-community-alliance/translator
causes additional sub-dependencies, which might prevent the installation of the newest version of this extension (see contao-community-alliance-archive/dependency-container#20 for example).But as far as I can see, this package does not use the
contao-community-alliance/translator
anywhere, only the translator of the Core Bundle is used once and that's it. So it appears this is an unnecessary dependency anyway and can be removed?The text was updated successfully, but these errors were encountered: