Comment tokens should use entity translation API

Created on 11 January 2013, almost 12 years ago
Updated 24 March 2023, over 1 year ago

Problem/Motivation

Comment tokens always consider the original submission language of a comment and do not take the translated value. Additionally to that, the comment body field is optional and may not be present.

Proposed resolution

1. Load the translated comment appropriate for the token's context.
2. Only attempt to use the comment body field if its present.

Remaining tasks

Postponed on πŸ› Not all node, taxonomy entity tokens are multilingual aware Needs work
Add tests.

User interface changes

None.

API changes

None.

πŸ› Bug report
Status

Postponed

Version

10.1 ✨

Component
CommentΒ  β†’

Last updated 3 minutes ago

Created by

πŸ‡¦πŸ‡ΉAustria fago Vienna

Live updates comments and jobs are added and updated live.
  • D8MI

    (Drupal 8 Multilingual Initiative) is the tag used by the multilingual initiative to mark core issues (and some contributed module issues). For versions other than Drupal 8, use the i18n (Internationalization) tag on issues which involve or affect multilingual / multinational support. That is preferred over Translation.

  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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.

Production build 0.71.5 2024