getTranslationObjectPreview doesn't provide all necessary files

Avatar

Avatar
Validate 1
Level 1
harish63635002
Level 1

Likes

0 likes

Total Posts

4 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
harish63635002
Level 1

Likes

0 likes

Total Posts

4 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
harish63635002
Level 1

20-09-2017

Hi,

I need to get preview of a page to send it as a reference to the linguists. Using getTranslationObjectPreview on a TranslationObject should get me a zip which contains an html and supporting css/js files which can be used to preview the page outside AEM instance.

I am getting a zip but which is missing important files and messing up the page formatting which can't be used as a valid reference file. From the code below, the ZipInputStream is converted to a zip file which I can then extract. Am I missing something here? Why are the necessary css/js files included in the zip? Code an preview screenshot below:

@Override

    public String uploadTranslationObject(String jobId, TranslationObject object)

   throws TranslationException {

    

      ZipInputStream inputStream = null;

            try {

                inputStream = object.getTranslationObjectPreview();

            } catch (Exception ex) {

                LOGGER.info("Error while generating translation object preview.");

                inputStream = null;

            }

}

AEM-preview.png

View Entire Topic

Avatar

Avatar
Give Back
Level 1
Sridhar1
Level 1

Likes

0 likes

Total Posts

8 posts

Correct reply

3 solutions
Top badges earned
Give Back
Affirm 3
Affirm 1
View profile

Avatar
Give Back
Level 1
Sridhar1
Level 1

Likes

0 likes

Total Posts

8 posts

Correct reply

3 solutions
Top badges earned
Give Back
Affirm 3
Affirm 1
View profile
Sridhar1
Level 1

21-09-2017

For AEM 6.3 , the fix is part of AEM 6.3SP1 CFP1 release in November