Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

This module was created to warn content managers about paragraphs in the node form that have been attached to the node in the site's default language, but not yet translated.

The use case for this is to help prevent content managers from accidentally publishing content with untranslated paragraphs in them.

Imagine the following scenario:

  1. Content manager creates paragraph on the default language translation of a node and saves.
  2. This paragraph is not intended to be seen by multilingual users and there is already custom twig code to hide the paragraph on the node's translation.
  3. Content manager is later requested to update the node's translation. They do this as requested, but forget that there is an untranslated paragraph in the node form. They save.
  4. Saving tells drupal to classify the paragraph as being translated, meaning the twig logic no longer hides the paragraph.
  5. An untranslated paragraph sits on the node's translation indefinitely.

This module would intervene in step 3 with a warning message for the content manager reminding them to translate the untranslated paragraph.

Configuration (Required)

/admin/config/untranslated_paragraph_warning/untranslated_paragraph_warning

  • Required: Set the machine names of the paragraph fields this module should use to populate the warning message.
  • Optional: Customize the warning message to display on detection of an untranslated paragraph.

Twig Recommendation

This module should be used in conjunction with customized twig logic which compares the site's langcode with the langcode of the paragraph and hides the paragraph if the langcodes do not match.

E.g {% if language == content.field_test|field_value[0]['#langcode'] %}

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Aug 2023
Latest release
3 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core Release date
1.0.0 Stable Aug 2, 2023