Skip to content

Multilingual ingest#1026

Open
Kxka wants to merge 2 commits into
mjordan:mainfrom
Kxka:multilingual_ingest
Open

Multilingual ingest#1026
Kxka wants to merge 2 commits into
mjordan:mainfrom
Kxka:multilingual_ingest

Conversation

@Kxka
Copy link
Copy Markdown

@Kxka Kxka commented Sep 25, 2025

Link to Github issue or other discussion

#259
mjordan/islandora_workbench_integration#40

What does this PR do?

Allows creating translation content/taxonomy terms from workbench

What changes were made?

Updated url logic to add langcode prefix to url for update and update_terms tasks, if langcode given in csv.
e.g. https://islandora.dev/it/islandora/manoscritti-letterari

How to test / verify this PR?

  • Changes for workbench integration here needs to be pulled. Or module from here needs to be added and enabled. Module is needed as Drupel currently does not have translation support for PATCHES using REST API.

  • Content language and translation needs to be enabled. Languages that are used (Chinese Traditional and Italian used in given sample csv) needs to be added.

  • Create content and taxonomy terms first, then use update to create translation content and update_terms to create translation taxonomy_terms (node_id and term_id needs to be manually changed for tests files). Include langcode in header and give langcode e.x. it (italian), zh-hant (Chinese Traditional).

  • Translated content/taxonomy terms should have same ID number as original with different translation language to verify creating translation stubs is working.

Interested Parties

@mjordan_


Checklist

  • [✔ ] Before opening this PR, have you opened an issue explaining what you want to to do?
  • [✔ ] Have you included some configuration and/or CSV files useful for testing this PR?
  • Have you written unit or integration tests if applicable?
  • Does the code added in this PR require a version of Python that is higher than the current minimum version?
  • If the changes in this PR require an additional Python library, have you included it in setup.py?
  • If the changes in this PR add a new configuration option, have you provided a default for when the option is not present in the .yml file?

@Kxka
Copy link
Copy Markdown
Author

Kxka commented Sep 25, 2025

Commands to run:

Create
./workbench --config multilingual_tests/create_taxonomy.yml
./workbench --config multilingual_tests/create_content.yml

Update
/workbench --config multilingual_tests/translate_terms.yml
./workbench --config multilingual_tests/translate_content.yml

@Natkeeran
Copy link
Copy Markdown

Tested this, and adds translations as expected.

Please note that changes to islandora_workbench_integration is needed because Drupal still does not fully provide multilingual support via REST (https://www.drupal.org/docs/8/core/modules/rest/translations, https://www.drupal.org/project/rest_translation). The functionality basically checks if the incoming request is a patch and has a $language code, then adds a translation entry if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants