Giter Site home page Giter Site logo

akeneo-product-translation's Introduction

Akeneo Product Attributes Translator

Akeneo's extension adding new mass edit type "Translate attributes".

How to download and install the connector:

Install composer dependency

composer require macopedia/akeneo-product-translation

register bundle in config/bundles.php

return [
    \Macopedia\Translator\MacopediaTranslatorBundle::class => ['dev' => true, 'test' => true, 'prod' => true],
];

define Google Cloud Translate API Key in .env file:

GOOGLE_API_KEY=yourapikey

add new job instance

bin/console akeneo:batch:create-job internal update_product_translations mass_edit update_product_translations '{}' 'Translate product'

Features:

With Akeneo Product Attributes Translator you can make mass edit job to translate multiple text attributes from one channel and one locale to target channel and target locale.

Extension uses Google Cloud Translation API

Requirements:

  • Akeneo PIM >= 4.x

akeneo-product-translation's People

Contributors

piotrmus avatar pmusialmacopedia avatar tmotyl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

akeneo-product-translation's Issues

Could not find a matching version of package.

Hi,
I was trying to install your package but I get the following error when requiring it
Command
composer require macopedia/akeneo-product-translation
Error
Could not find a matching version of package macopedia/akeneo-product-translation. Check the package spelling, your version constraint and that the package is available in a stability which matche s your minimum-stability (stable).

Error after doing a cache:clear

Hello @piotrmus ,

After updating the extension from 0.1.9 to 0.1.10, I got the following error during a clear:cache
Version Akeneo 5.0.57 CE
The error message:

In CheckExceptionOnInvalidReferenceBehaviorPass.php line 86:

  The service "Piotrmus\Translator\Connector\Processor\MassEdit\TranslateAttributesProcessor" has a dependency on a non-existent service "pim_catalog.updater.entity_with_values_property_setter_without_permission".

Can you help? Thank you

How does this package work?

I have installed this package but I don't see how the translation is done, and nothing new appears when I click on the bulk edit action.
You can help?

Error on adding job instance : job not registered

Hey there,

Install went fine, but it's impossible to add a job instance:

11:54:27 CRITICAL [console] Error thrown while running command "akeneo:batch:create-job internal update_product_translations mass_edit update_product_translations '{}' 'Translate product'". Message: "The job "update_product_translations" is not registered" ["exception" => Akeneo\Tool\Component\Batch\Job\UndefinedJobException^ { โ€ฆ},"command" => "akeneo:batch:create-job internal update_product_translations mass_edit update_product_translations '{}' 'Translate product'","message" => "The job "update_product_translations" is not registered"]

As a consequence, when trying to confirm a translation to make, it triggers an error 500 on /rest/mass_edit, and the exact error in logs is:

[2023-01-24 15:10:59] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Translation\Exception\NotFoundResourceException: "No JobInstance found with code "update_product_translations"" at /pim-community-standard/vendor/akeneo/pim-community-dev/src/Akeneo/Pim/Enrichment/Bundle/MassEditAction/OperationJobLauncher.php line 59 {"exception":"[object] (Symfony\\Component\\Translation\\Exception\\NotFoundResourceException(code: 0): No JobInstance found with code \"update_product_translations\" at /pim-community-standard/vendor/akeneo/pim-community-dev/src/Akeneo/Pim/Enrichment/Bundle/MassEditAction/OperationJobLauncher.php:59)"} []

Using Akeneo CE 6.0.61.

Any chance to get an update on this ?

Thanks.

getting dependency error after installing

Hey,
I am getting an dependency error after installing the extension.
Steps to reproduce:
composer require piotrmus/akeneo-product-translation
added \Piotrmus\Translator\PiotrmusTranslatorBundle::class => ['dev' => true, 'test' => true, 'prod' => true], to bunles.php
added bin/console akeneo:batch:create-job internal update_product_translations mass_edit update_product_translations '{}' 'Translate product'
then I wanted to rebuild the frontend. Typed
bin/console cache:clear
but got an error:
The service "piotrmus.step.update_product_translations.mass_edit" has a dependency on a non-existent service "akeneo_batch.job.job_stopper".

It's weird, because akeneo also uses this dependency.

Akeneo Version 4.0.124
Piotrmus Version 0.1.10

can you help me out?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.