[EXCONTRANS-345] Provide error message if something wrong on translate method Created: 30/Oct/20  Updated: 30/Oct/20  Resolved: 30/Oct/20

Status: Closed
Project: Content Translation Extended (CTX)
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Teresa Miyar Assignee: Teresa Miyar
Resolution: Not an issue Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)

 Description   

Inform the user also in case the implemented method

info.magnolia.translation.ext.core.translator.Translator#translate

Throws an exception.
With our implementation we faced out this case yesterday (quota exceeded due to many translations) and the status for the batches remain to PROCESSING. In this case it is not possible to resubmit the batch. The only way to proceed is to create a new batch.



 Comments   
Comment by Teresa Miyar [ 30/Oct/20 ]

This is currently done by the implementation of the translator using MessagesManager, see https://git.magnolia-cms.com/projects/SERVICES/repos/content-translation-support-ext/browse/magnolia-content-translation-support-ext-google/src/main/java/info/magnolia/translation/ext/provider/google/translator/GoogleTranslator.java#91

Generated at Mon Feb 12 00:30:19 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.