Install
Works with Drupal: ^10.3 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
86.07 KB
MD5: 04a0945088d6588ef8384dd35e16708c
SHA-1: a255021e82052b1fe13ac03fcb944816aa696b78
SHA-256: e7bbd7711f1189d4c0f22b64d4dd2624d0c5ac2cfeeb5d1c1e699d18bb00f495
Download zip
134.22 KB
MD5: c4b24f09a7bf5aea3cb6d6013d09fdc8
SHA-1: 89ec657dfe50c9169c808e218c7ec78e42f1ab8b
SHA-256: 698c4ee431ea4aefb2231e9cec8804f42b1d8914afb682f2503aaf40d194444d
Release notes
This release adds a settings page to exclude content from the untranslated-content search, a Lionbridge submit command that can resend jobs, a command to assign providers, links from job items to their source content, and several Lionbridge fixes.
New features
- Exclusion settings page: at Administration » Translation » Settings » Drush helper (
/admin/tmgmt/settings/drush-helper), you can exclude whole entity types or single bundles. Excluded content is left out oftmgmt:scan-untranslatedandtmgmt:job-batch-add --missing-only, including referenced terms and blocks. It can still be queued without--missing-only. - New
tmgmt:job-submit-lionbridgecommand (tmgmt_helper_contentapi): submits jobs with their Lionbridge settings. These are provider, due date, PO reference, description, quote, analysis codes and export format. - New
--resubmitoption for jobs Lionbridge never received. It:- deletes the earlier Lionbridge job;
- resets the connector's upload records and queue items;
- submits the job again.
It asks for confirmation, and
--dry-runshows what it would delete. - New
tmgmt:job-updatecommand (aliastmgmt-ju): assigns a provider and its settings to jobs that have not been submitted.--without-providerfinds jobs whose provider is missing, deleted or disabled. - LionBridge Job ID column on the jobs overview (
/admin/tmgmt/jobs), whentmgmt_helper_contentapiis enabled. - Links to source content: job item labels on a job's page link to the node, term, media item, block or webform being translated, if it still exists and you can view it. You can turn this off per view in the "Label" field settings.
tmgmt:job-submit-allhandles providers that send jobs in the background (reported as "waiting for the provider"). It also skips Lionbridge jobs that lack their Lionbridge settings, because the connector would silently ignore them.
Bug fixes
- Deleting a job, with Drush or in the UI, now removes it from the Lionbridge send queues. Before, a leftover queue item stopped cron with a fatal error.
- Jobs containing interface strings are no longer sent to Lionbridge, whose connector cannot export them and fails in its queue.
tmgmt:job-batch-addnow keeps content, config and interface strings in separate jobs. - Assorted fixes to unit and kernel tests.
Code quality and security
- The code passes PHPStan level 5, with a
phpstan.neonused by GitLab CI, and the Drupal and DrupalPractice coding standards. - The code was reviewed against Drupal's secure coding guidelines. Job item source links now carry the cache data of the access check, so a cached view cannot show links to users who cannot open them.
Upgrade notes
- Run
drush updbto add the LionBridge Job ID column to the jobs overview on sites wheretmgmt_helper_contentapiis already enabled. - Run
drush crso the new settings page and its tab appear. - No exclusions are set by default, so the commands behave as before until you configure some.