Get feed title in correct language

Created on 11 October 2016, about 8 years ago
Updated 2 February 2023, almost 2 years ago

Problem/Motivation

In Drupal 8.2 I have rss default feeds on front page and feeds on my views. On the bottom of the pages I can click on the feed icon to open the feed page.

On the feed pages the feed titles are not in the correct language. The feed titles appear always in the language the node was created. And the feed title links to the wrong language.

But I need the correct language for the feed title when switching to another language on my drupal site (/en/..., /fr/...., /de/....) and a correct link.

How can I repair this problem in Drupal 8.2?

Steps to reproduce

  1. Standard install
  2. Enable content_translation
  3. Enable a second language, A
  4. Enable translation for the "Article" content type.
  5. Create an article node in English
  6. Translate the article, modifying the title
  7. Visit /rss.xml - the title is in English
  8. Visit /A/rss.xml - the title is still in English, we expect it to be in the second language

Proposed resolution

Make sure when visiting the site in the second language that the RSS feed is showing the translated content. So rendering the item should use the translation of the loaded entity (node).

Remaining tasks

Review
Commit

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

RTBC

Version

10.1

Component
Views 

Last updated about 5 hours ago

Created by

🇦🇹Austria drupalfan2

Live updates comments and jobs are added and updated live.
  • 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

Merge Requests

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