Skip to main content
Version: 2023.3

Commands

Important Commands​

Following commands are provided by the bundle.

Most of them need to be executed on regular base (depending on use case) via cron jobs. There is no automatic execution.

Create a translation job​

This scans the translations_interface_bundle__data_changed table for modifications and prepares translation jobs suitable for transmission to the translation provider.

php bin/console translations-provider-interface-bundle:jobs -c

Generated jobs can be found in the translations_interface_bundle__jobs table.

However, the jobs are not submitted for translation yet.

Submit a job​

Process the open jobs and submit them for translation.

php bin/console translations-provider-interface-bundle:jobs -o

Receive the translation​

This will fetch the translation if already available.

php bin/console translations-provider-interface-bundle:jobs -s

The completed translation will be stored again in the translations_interface_bundle__jobs table but not processed until the following command is executed.

Process the received translation​

This will process the translations and update the Pimcore objects accordingly.

php bin/console translations-provider-interface-bundle:jobs -r

Reset failed jobs​

Reset all jobs to the state they had before the error.

php bin/console translations-provider-interface-bundle:jobs -f

Maximum failing attempts can be configured via config

pimcore_translations_provider_interface:
settings:
error_threshold: 4 # default 10

Checking for redeliveries​

A Project director user can re-open an already delivered translation job an change the translation.

Use the following command to check for redeliveries.

php bin/console translations-provider-interface-bundle:jobs --check-redeliveries

Jobs not older that 60 days will be checked for updates. You can change this default value with the following setting.

pimcore_translations_provider_interface:
settings:
redelivery_threshold: 60 # days