Is there a way to add all terms from a vocabulary to the translation cart at one time instead of one by one?

Created on 22 July 2022, over 2 years ago
Updated 31 October 2024, 5 months ago

Is there a way to add all terms from a vocabulary to the translation cart at one time instead of one by one?

We need to have all terms from various vocabularies translated but it seems that the terms need to be added one by one, which is very time consuming and tedious for large vocabularies.

Surely there must be a way to bulk add all terms from a vocabulary to the cart, right?

πŸ’¬ Support request
Status

Active

Version

1.14

Component

Documentation

Created by

πŸ‡ΊπŸ‡ΈUnited States 3cwebdev

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States AaronBauman Philadelphia

    bump

  • πŸ‡«πŸ‡·France PhilY πŸ‡ͺπŸ‡ΊπŸ‡«πŸ‡· Paris, France

    Any feedback?

  • πŸ‡©πŸ‡°Denmark beltofte Copenhagen πŸ‡©πŸ‡°

    The way we have solved in custom code is the following:

    • Create a custom action which add all the selected entities to the cart using the service tmgmt.cart. You may need to add the action per entity or alter it using hook_action_info_alter() afterwards to get it added to all translatable entities.
    • Create a view that list all the terms in a vocabulary. It should include the bulk actions column and the new action enabled.

    We implemented this solution for taxonomy terms, menu links etc. to make it much faster to translate these entities. Both our taxonomy term and menu link views are just flat lists and not showing the hierarchies.

  • πŸ‡«πŸ‡·France PhilY πŸ‡ͺπŸ‡ΊπŸ‡«πŸ‡· Paris, France

    Meanwhile, I found the Content Entity Source sub module.
    Then on the TMGMT Sources tab, you can select taxonomy terms and check all terms...

  • πŸ‡©πŸ‡°Denmark beltofte Copenhagen πŸ‡©πŸ‡°

    Right. That is also a solution.

Production build 0.71.5 2024