Get feed title in correct language

Created on 11 October 2016, almost 8 years ago
Updated 14 August 2024, about 1 month 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

Needs work

Version

11.0 πŸ”₯

Component
ViewsΒ  β†’

Last updated 25 minutes ago

Created by

πŸ‡¦πŸ‡ΉAustria drupalfan2

Live updates comments and jobs are added and updated live.
  • Needs change record

    A change record needs to be drafted before an issue is committed. Note: Change records used to be called change notifications.

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