Problem/Motivation

The Rightup has no second language, so two things that only show once a second language is installed were never exercised.

  • The Live feed view (live_feed) lists every translation of a news article or episode. On a site with Arabic, the English home page ticker shows Arabic items and the Arabic home page shows both languages.
  • The Search view lists results of every language. An Arabic keyword on the English search page returns Arabic results, and the other way round.

Steps to reproduce

  1. Install The Rightup, then add a language with translated news (for example Arabic).
  2. Open the English home page and read the ticker under the header: Arabic titles appear. Open /search?keywords=%D8%B9%D9%85%D8%A7%D8%B1%D8%A9 on the English site: Arabic results appear.

Proposed resolution

  • views.view.live_feed: add the same langcode filter the other Rightup views already carry (interface language, plus und and zxx).
  • views.view.search: add a Search API search_api_language filter with the same values.

A single-language site is unaffected: every item is in the interface language, so both filters match everything.

Remaining tasks

  • ✅ File an issue
  • ✅ Addition/Change/Update/Fix
  • ❌ Testing to ensure no regression
  • ❌ Automated unit/functional testing coverage
  • ➖ Developer Documentation support
  • ➖ User Guide Documentation support
  • ➖ UX/UI designer responsibilities
  • ❌ Accessibility and Readability
  • ❌ Reviewed by a human
  • ❌ Code review by maintainers
  • ❌ Full testing and approval
  • ❌ Credit contributors
  • ❌ Review with the product owner
  • ❌ Update Release Notes
  • ❌ Release

User interface changes

  • None on a single-language site. On a multilingual site the ticker and the search results follow the interface language.

API changes

  • N/A

Data model changes

  • Two view filters added. No new config entities.

Release notes snippet

  • The Live feed and Search views follow the interface language on multilingual sites,.

AI-Generated: Yes. Drafted and tested with Claude Code, reviewed by the contributor.

Issue fork rightup-3628100

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

rajab natshah created an issue. See original summary.

rajab natshah’s picture

Title: Make the Live feed and Search views follow the interface language, and fix the contact form Terms link » Make the Live feed and Search views follow the interface language
Issue summary: View changes

rajab natshah’s picture

Issue summary: View changes

  • rajab natshah committed 34062b70 on 1.0.x
    fix: #3628100 Make the Live feed and Search views follow the interface...
rajab natshah’s picture

Status: Needs review » Fixed
Issue tags: +rightup-1.0.3

✅ Released rightup-1.0.3

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.