When viewing a node in another language as interface language, comment form should have correct language

Created on 12 December 2011, almost 13 years ago
Updated 19 May 2023, over 1 year ago

When a node is in another language as the interface language, we have mixed languages on one page.
We already fixed to add the language and direction attribute in #1164926: Nodes need to have languages specified separately for accessibility β†’ , but the labels and comment sections are not aware of this. What we see now is the node language technically is also attached to the comment section and labels as well, while the visible language for these elements is now in fact the interface language. The technical language and the visual language should be the same for these elements.

Not sure what the correct language should be:

  • If a node is in another language as the interface language, should we print the labels in the node language as well?
  • Or should we print the labels in the interface language?
  • And do we expect comments in the node language or in the interface language?
πŸ› Bug report
Status

Active

Version

9.5

Component
LocaleΒ  β†’

Last updated 6 days ago

Created by

πŸ‡³πŸ‡±Netherlands Hanno

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 issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

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 charles belov San Francisco, CA, US

    There is the separate issue now we have no control over what language is the commenter uses when making their comment. I see comments and all sorts of languages on YouTube videos all on the same video and comments are not necessarily in the language of the video. In theory, all comment fields where correctly be accompanied by a way for the commenter to set the language of their comment. I realize this would be a feature request outside the scope of this issue. That said, it does point out the difficulty of solving this particular issue.

Production build 0.71.5 2024