Language Copy Translation Job not translating assets - from non OOTB components | Community
Skip to main content
Level 3
July 2, 2018
Solved

Language Copy Translation Job not translating assets - from non OOTB components

  • July 2, 2018
  • 2 replies
  • 1926 views

Hi Team,

For one of our client requirement, we are trying to leverage the "Language Copy" translation feature in AEM 6.3 SP2. While doing so, Translation jobs are not including the assets (for example: Images) in my custom components. But the same is working as expected for the OOTB components (e.g. OOTB Image component). Following are the steps which I followed:

  1. Created a Template named as /apps/example1/templates/home
  2. Created a Page Component named as /apps/example1/components/page/home with a single parsys
  3. Created a Content Component named as /apps/example1/components/content/header with an image field using cq:dialog node structure (Just copied from one of the component under we.retail).
  4. Created a page in the following structure using the above said page component and added my content component to it: http://localhost:4502/editor.html/content/example1/us/en/home.html
  5. Following is my assets folder structure: http://localhost:4502/assets.html/content/dam/example1/en
  6. Then I selected the above created page and started to create a language copy.
  7. Under the language copy creation steps, I have selected Arabic(ar) and selected "Create a new translation project" option under the translate tab and have provided a Title.
  8. While doing so, my page is getting translated (I mean copy is getting created). But the assets (fileReference) are not getting translated for my custom components. But the same is getting translated, when I am using the OOTB image component.

Is there any additional property or configuration, do we have to set for our custom components to be included for asset translation? I am not seeing any errors too in logs. Its looks like simply assets from my custom components are just excluded.

Snap Shot which shows assets are not considered when I did a language copy of a page with my custom component only:

Snap Shot which shows assets are being considered when I did a language copy of a page with OOTB Image component only (even my custom component exist in this page, but still the assets referenced within it are not copied/considered):

My page with my custom component in JCR with properties:

My page with OOTB component in JCR with properties:

Thanks for your time in going through the lengthy problem statement.

Regards,

Dinesh kumar L.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by arunpatidar

Hi,

please check translation rules, you may need to add a rule for fileReferece Property at http://localhost:4502/libs/cq/translation/translationrules/contextproperties.html?context=/content/dam

More info - 

Setup Translation Rules in AEM

2 replies

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
July 2, 2018

Hi,

please check translation rules, you may need to add a rule for fileReferece Property at http://localhost:4502/libs/cq/translation/translationrules/contextproperties.html?context=/content/dam

More info - 

Setup Translation Rules in AEM

Arun Patidar
Level 3
July 2, 2018

Hi Arun,

Thanks for your quick pointers!!

After adding a translation rule the same worked as expected. I followed the following two helpx documents but there was no info about setting translation rules:

Adobe Experience Manager Help | Using Language Copy with AEM Sites

Language Copy Wizard

Regards,

Dinesh kumar L.