the generated html code strips the points of a text and put it in a paragraph:
INPUT:
<p>
La Voiture de Collection : Entre Passion et Prudence
</p>
<p>
Par <strong>Laurent Chevalier</strong>
</p>
<p>
La douce mélodie d'un moteur d'époque, la brillance d'une carrosserie ancienne, le charme des voitures qui ont traversé le temps... L'achat d'une voiture de collection éveille en nous une nostalgie envoûtante. Mais au-delà de cette passion, l'acquisition de ces véhicules d'antan est un chemin semé d'embûches.
</p>
<p>
Premièrement, le problème majeur : la <strong>fiabilité</strong>. Ces dames d'un autre temps, malgré leur beauté, portent les stigmates des années. Usures, réparations de fortune, pièces manquantes... il faut être prêt à mettre les mains dans le cambouis, et souvent, profondément.
</p>
<p>
Puis vient le défi des <strong>pièces détachées</strong>. Trouver la bonne pièce, celle d'origine, relève parfois de la chasse au trésor. Sans compter qu'avec le temps, certaines deviennent rares, voire introuvables. Et si vous en trouvez, préparez-vous à délier les cordons de la bourse.
</p>
<p>
Le <strong>confort de conduite</strong>, lui, est bien différent de nos berlines modernes. Freinage, tenue de route, absence d'assistances... la conduite d'un véhicule ancien demande une véritable réadaptation, une communion plus profonde avec la mécanique.
</p>
<p>
Quant à l'<strong>administratif</strong>, c'est une autre paire de manches. Entre la certification, les papiers d'origine et les contraintes légales des véhicules de collection, le parcours peut être semé de paperasses.
</p>
<p>
Mais alors, pourquoi s'engager dans cette aventure ? Pourquoi prendre tous ces risques ? Tout simplement car posséder une voiture de collection, c'est détenir un bout d'histoire. C'est ressentir le frisson de l'authentique, c'est vivre une passion au quotidien.
</p>
<p>
Alors, si l'appel des chromes et du cuir patiné vous séduit, sachez que l'achat d'une voiture de collection est un voyage. Un voyage dans le temps, avec ses joies et ses défis. Un voyage qu'il convient de préparer avec soin, pour que la passion ne laisse pas place à la déception.
</p>OUTPUT:
<p>
The Vintage Car: Between Passion and Prudence
</p>
<p>
By <strong>Laurent Chevalier</strong>
</p>
<p>
The sweet melody of a vintage engine, the brilliance of an old body, the charm of cars that have stood the test of time... Buying a vintage car awakens a haunting nostalgia in us. But beyond this passion, the acquisition of these vehicles of yesteryear is a path full of pitfalls.
</p>
<p>
First, the major problem: <strong>reliability</strong>. These ladies from another time, despite their beauty, bear the scars of the years. Wear and tear, makeshift repairs, missing parts... you have to be ready to get your hands dirty, and often deeply
</p>
<p>
.
</p>
<p>
Then comes the <strong>spare parts</strong> challenge. Finding the right piece, the original one, is sometimes a treasure hunt. Not to mention that over time, some become rare or even impossible to find. And if you find any, get ready to untie the purse strings
</p>
<p>
.
</p>
<p>
<strong>Driving comfort, on</strong> the other hand, is very different from our modern sedans. Braking, road holding, lack of assistance... driving an old vehicle requires real rehabilitation, a deeper communion with mechanics
</p>
<p>
.
</p>
<p>
As for the <strong>administrative</strong> side, it's a different story. Between certification, original papers and the legal constraints of vintage vehicles, the journey can be full of paperwork
</p>
<p>
.
</p>
<p>
So why embark on this adventure? Why take all these risks? Quite simply because owning a classic car is owning a piece of history. It is to feel the thrill of authenticity, it is to live a passion on a daily basis
</p>
<p>
.
</p>
<p>
So, if the appeal of chromes and patinated leather appeals to you, know that buying a vintage car is a journey. A journey through time, with its joys and challenges. A trip that should be carefully prepared, so that passion does not give way to disappointment.
</p>Tries on original link of amazon with same html and did not get the problem: https://eu-west-1.console.aws.amazon.com/translate/home?region=eu-west-1... .
THanks for your fantastic module! I just love it :-)
Comments
Comment #2
dudeweb commentedComment #3
dudeweb commentedok so it seems that it comes from Amazon itself!
As well chinese translation doe snot work, I have this message:
Warning: Attempt to read property "error" on string in Drupal\auto_node_translate\AmazonTranslateApi->translate() (line 64 of modules/contrib/auto_node_translate/src/AmazonTranslateApi.php).
With simplified or traditionnal.
Comment #4
kallado commented@DudeWeb sorry been on vacations the Amazon api was not created by us, it was a contribution from another member @Ctrlfreq https://www.drupal.org/project/auto_node_translate/issues/3322954
I haven't tested it and i don't really have a way of doing it since i don't have an amazon acount i can use but it looks like an error is coming from the api.
Not sure how i can help you but I would check if the 'TargetLanguageCode' option expected in amazon might be diferent from the code given from Drupal
Comment #5
kallado commented@DudeWeb just checked the code and error is here
'@code' => $error->error->code,
seams like $error is a string so maybe there's some issue with what the API returns in case of error but for sure there's an problem in the attempt to translate.
Comment #6
jmauricio commentedComment #7
jmauricio commentedhttps://www.drupal.org/project/auto_node_translate/releases/2.1.8
Comment #8
jmauricio commentedComment #9
dudeweb commentedThanks!!!!! Love you guys :-)