Expand my Community achievements bar.

SOLVED

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

Avatar

Level 3

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:

Assets_Not_Considered_In_My_Custom_Component.PNG

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):

Assets_Considered_In_OOTB_Component.PNG

My page with my custom component in JCR with properties:

Custom_Component.PNG

My page with OOTB component in JCR with properties:

OOTB_Image_Component.PNG

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

Regards,

Dinesh kumar L.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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/d...

More info - 

Setup Translation Rules in AEM



Arun Patidar

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

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/d...

More info - 

Setup Translation Rules in AEM



Arun Patidar

Avatar

Level 3

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.