Expand my Community achievements bar.

Create Translation Service Provider

Avatar

Level 2

I would like to ask, how can I create a plugin what I can use to integrate with a CAT tool.

If you can send me link/links, where I should start is appriciated.

 

Thank you so much!

Norbert Szolnoki

9 Replies

Avatar

Community Advisor

Hi @NSzolnoki 

 

There is a sample Bootstrap Translator Connector available from where you can take reference. The codebase is available publically and you can get fair idea around the implementation.

 

Git Repo : https://github.com/Adobe-Marketing-Cloud/aem-translation-framework-bootstrap-connector

 

It provide best practices for building the connector and serve as a reference implementation of the Translation API.

 

Java API : https://helpx.adobe.com/experience-manager/6-4/sites/developing/using/reference-materials/javadoc/co...

 

 Refer https://www.tothenew.com/blog/how-to-implement-a-translation-connector-in-aem/  for quick guidance.

 

Hope it helps!

Thanks!

Nupur

Avatar

Level 2

Hi @Nupur_Jain!

 

Thank you so much for the links.

I tried to build for my on-prem AEM server, but I got the following errors:

NSzolnoki_0-1595593741179.png

UPDATE:
I was able to build it with:
"mvn -PautoInstallPackage -Padobe-public clean install"

But the bootstrap did not shown at cloud services configuration.

 

Avatar

Level 2

Hi @Nupur_Jain 

 

This is weird, I can select the bootstrap in translation project but not in the cloud services. I found the following error, after the install in the error.log:

24.07.2020 13:40:30.720 *INFO* [sling-threadpool-d2adfbd7-da91-467b-b18c-fe9ba4562b8b-(apache-sling-job-thread-pool)-2-com_day_cq_replication_job_publish(com/day/cq/replication/job/publish)] com.day.cq.replication.Agent.publish.queue Processing job for agent publish
24.07.2020 13:40:30.720 *INFO* [sling-threadpool-d2adfbd7-da91-467b-b18c-fe9ba4562b8b-(apache-sling-job-thread-pool)-2-com_day_cq_replication_job_publish(com/day/cq/replication/job/publish)] com.day.cq.replication.Agent.publish Create new HttpClient for Default Agent
24.07.2020 13:40:30.720 *INFO* [sling-threadpool-d2adfbd7-da91-467b-b18c-fe9ba4562b8b-(apache-sling-job-thread-pool)-2-com_day_cq_replication_job_publish(com/day/cq/replication/job/publish)] com.day.cq.replication.Agent.publish * Auth User: admin
24.07.2020 13:40:30.720 *INFO* [sling-threadpool-d2adfbd7-da91-467b-b18c-fe9ba4562b8b-(apache-sling-job-thread-pool)-2-com_day_cq_replication_job_publish(com/day/cq/replication/job/publish)] com.day.cq.replication.Agent.publish * HTTP Version: 1.1
24.07.2020 13:40:30.720 *INFO* [sling-threadpool-d2adfbd7-da91-467b-b18c-fe9ba4562b8b-(apache-sling-job-thread-pool)-2-com_day_cq_replication_job_publish(com/day/cq/replication/job/publish)] com.day.cq.replication.Agent.publish Sending POST request to http://localhost:4503/bin/receive?sling:authRequestLogin=1
24.07.2020 13:40:31.766 *ERROR* [sling-threadpool-d2adfbd7-da91-467b-b18c-fe9ba4562b8b-(apache-sling-job-thread-pool)-2-com_day_cq_replication_job_publish(com/day/cq/replication/job/publish)] com.day.cq.replication.Agent.publish Error while sending request: java.net.ConnectException: Connection refused: connect
24.07.2020 13:40:31.766 *ERROR* [sling-threadpool-d2adfbd7-da91-467b-b18c-fe9ba4562b8b-(apache-sling-job-thread-pool)-2-com_day_cq_replication_job_publish(com/day/cq/replication/job/publish)] com.day.cq.replication.Agent.publish Replication (ACTIVATE) of /conf/we-retail/settings/wcm/policies/wcm/foundation/components/responsivegrid/we-retail-structure not successful: java.net.ConnectException: Connection refused: connect Conversation follows
24.07.2020 13:40:31.766 *ERROR* [sling-threadpool-d2adfbd7-da91-467b-b18c-fe9ba4562b8b-(apache-sling-job-thread-pool)-2-com_day_cq_replication_job_publish(com/day/cq/replication/job/publish)] com.day.cq.replication.Agent.publish ------------------------------------------------
24.07.2020 13:40:31.766 *ERROR* [sling-threadpool-d2adfbd7-da91-467b-b18c-fe9ba4562b8b-(apache-sling-job-thread-pool)-2-com_day_cq_replication_job_publish(com/day/cq/replication/job/publish)] com.day.cq.replication.Agent.publish Sending message to localhost:4503
24.07.2020 13:40:31.766 *ERROR* [sling-threadpool-d2adfbd7-da91-467b-b18c-fe9ba4562b8b-(apache-sling-job-thread-pool)-2-com_day_cq_replication_job_publish(com/day/cq/replication/job/publish)] com.day.cq.replication.Agent.publish >> POST /bin/receive HTTP/1.0
24.07.2020 13:40:31.766 *ERROR* [sling-threadpool-d2adfbd7-da91-467b-b18c-fe9ba4562b8b-(apache-sling-job-thread-pool)-2-com_day_cq_replication_job_publish(com/day/cq/replication/job/publish)] com.day.cq.replication.Agent.publish >> Action: Activate
24.07.2020 13:40:31.766 *ERROR* [sling-threadpool-d2adfbd7-da91-467b-b18c-fe9ba4562b8b-(apache-sling-job-thread-pool)-2-com_day_cq_replication_job_publish(com/day/cq/replication/job/publish)] com.day.cq.replication.Agent.publish >> Path: /conf/we-retail/settings/wcm/policies/wcm/foundation/components/responsivegrid/we-retail-structure
24.07.2020 13:40:31.766 *ERROR* [sling-threadpool-d2adfbd7-da91-467b-b18c-fe9ba4562b8b-(apache-sling-job-thread-pool)-2-com_day_cq_replication_job_publish(com/day/cq/replication/job/publish)] com.day.cq.replication.Agent.publish >> Handle: /conf/we-retail/settings/wcm/policies/wcm/foundation/components/responsivegrid/we-retail-structure
24.07.2020 13:40:31.766 *ERROR* [sling-threadpool-d2adfbd7-da91-467b-b18c-fe9ba4562b8b-(apache-sling-job-thread-pool)-2-com_day_cq_replication_job_publish(com/day/cq/replication/job/publish)] com.day.cq.replication.Agent.publish >> Referer: about:blank
24.07.2020 13:40:31.766 *ERROR* [sling-threadpool-d2adfbd7-da91-467b-b18c-fe9ba4562b8b-(apache-sling-job-thread-pool)-2-com_day_cq_replication_job_publish(com/day/cq/replication/job/publish)] com.day.cq.replication.Agent.publish >> ...spooling 2437 bytes...
24.07.2020 13:40:31.766 *INFO* [sling-threadpool-d2adfbd7-da91-467b-b18c-fe9ba4562b8b-(apache-sling-job-thread-pool)-2-com_day_cq_replication_job_publish(com/day/cq/replication/job/publish)] com.day.cq.replication.Agent.publish.queue Job for agent publish processed in 1046ms. Failed.

 

In the pom file these are the properties:

<properties>
<aem.host>localhost</aem.host>
<aem.port>4502</aem.port>
<aem.publish.host>localhost</aem.publish.host>
<aem.publish.port>4503</aem.publish.port>
<sling.user>admin</sling.user>
<sling.password>admin</sling.password>
<vault.user>admin</vault.user>
<vault.password>admin</vault.password>

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>

 

So I think this config is right.

Avatar

Community Advisor

Hi @NSzolnoki 

 

If you open http://localhost:4502/miscadmin#/etc/cloudservices console, do you see bootstrap configuration in the list of "Cloud Services Configuration"

Avatar

Level 2

Hi @Nupur_Jain ,

 

This is what I see in WCM:

NSzolnoki_0-1595852958770.png

 

But I can select bootstrap as translation provider.

Avatar

Community Advisor

hi @NSzolnoki 

 

Looks like bootstrap is not deployed property. Please tell me the AEM version on which you are deploying.