We are building a connector for AEM 6.2 using AEM's translation API. For translating AEM page, we use getTranslationObjectXLIFFInputStream().
Reference: https://docs.adobe.com/docs/en/aem/6-2/develop/ref/javadoc/com/adobe/granite/translation/a pi/TranslationObject.html#getTranslationObjectXLIFFInputStream(java.lang.String)
The generated XLF doesn't convert 'less than' sign properly, if the page contains HTML tags. The XLIFF has no issues in case of a simple page without any Rich text content. Attached are the references.
We suspect OKAPI isn't able to convert the XLF properly but we are not sure about it. Any experiences on the same?
Thanks, Dipti
Views
Replies
Total Likes
Hi Dipti,
In the screen shot some of the < signs are just fine and some of them are <
I could see you are using java.lang.String to serialize over Object IO stream. try doing a replaceAll("<","<");
This is just a wild guess, so could not work but should be worth a shot.
Thanks
Tuhin
Views
Replies
Total Likes
Hi Tuhin
Thanks for the update. The signs < which are fine are primarily of XLIFF, but not for the tags present in RichTextEditor.
The hack to replace the tags is for sure present but we want to ensure that AEM Translation API is working fine. Primarily why "getTranslationObjectXLIFFInputStream" isn't returning correct XLIFF, is our area of concern.
Since we have to use translation APIs for connector implementation, we want to ensure that the API is free of P1/P2 issues and is safe to use.
Thanks
Dipti
Views
Replies
Total Likes
Hi Dipti,
As it seems to be a product issue, log a ticket and close this one.
Thanks
Tuhin
Views
Replies
Total Likes
We are also facing same issue with this API. From what I can tell, the API implementation needs to be updated to handle this. This is a product bug.
Thanks
Ashish
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies