- Issue created by @Vivek Panicker
- Merge request !3Issue #3509171: Remove call to controller and instead call service. → (Merged) created by Vivek Panicker
- 🇮🇳India Vivek Panicker Kolkata
Even after doing this, one more issue remains.
That is if a formatted text field is sent for translation, then in the translated content, the translated text contains the HTML markups unescaped, i.e. we can see the markup.
We should try to resolve this also in a separate bug. -
vivek panicker →
committed 00ee5c38 on 1.0.x
Issue #3509171: Remove call to controller and instead call service.
-
vivek panicker →
committed 00ee5c38 on 1.0.x
- 🇮🇹Italy bigbabert Milano, Italy
Great thanks also for the final fix and code best practice improvement, i'll create new release with this!
- 🇮🇳India Vivek Panicker Kolkata
Happy to help!
I tested v1.3.1 and the issue is now resolved. :) - 🇮🇹Italy bigbabert Milano, Italy
Hi @vivek,
i think that this weekend i'll re-work that one since the idea of the module is to not be dependent by ai module or other module not enabled on the majority of websites (eg. node). Now with this change if someone want to use Google API or Liber Translate without installing drupal ai the auto_translation module will crash since doesn't has the ai_translate dependency declaration in it's .info.
Thanks again,
BR
- 🇮🇳India Vivek Panicker Kolkata
I have a few ideas for this one then.
We can have a parent module with the base implementation, then a submodule for each of the different services we are supporting like 1 for AI module, 1 for Google and so on.
So if tomorrow someone wants to add a new translation service, they can easily do that from a custom or a third party module. - 🇮🇹Italy bigbabert Milano, Italy
Hi vivek,
i would not spread submodules, unless we not manage to enable it from the ui when switching provider, this would be great i think.
Thanks
- 🇮🇳India Vivek Panicker Kolkata
I guess the provider options would only appear if the modules are enabled, not the other way around.
In the config form we can ask the user to enable any of the submodules to access a provider.
We can always provide a default provider if we want, so that on enabling itself a provider also appears.