Both issues #2825851: Limit Views results to the "most-relevant" translation for the current site language + fallback hierarchy and #2830291: D8 URL alias language fallbacks have need of 'priorities', perhaps better worded as 'depths' to be stored for each language in the global hierarchy. This allows ordering by which language is specific to the current request, as opposed to a static sense of language weight/relevance.

More discussion was in #2825851-13: Limit Views results to the "most-relevant" translation for the current site language + fallback hierarchy.

So this issue exists to get that in place, as a prerequisite for either of those other tickets.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

james.williams created an issue. See original summary.

james.williams’s picture

Title: Store language hierarchy depths » Store language priorities in hierarchy

Come to think of it, priorities was a better name originally. Root languages all have an equal depth, but they are ordered by weight in this table, which is definitely not their depth. Let's just stick with priorities.

james.williams’s picture

Assigned: james.williams » Unassigned
Status: Active » Needs review
FileSize
6.33 KB

Assuming this passes tests, it should do the trick. This patch is based on #2825851-11: Limit Views results to the "most-relevant" translation for the current site language + fallback hierarchy, without the views integration parts, and #2825851-18: Limit Views results to the "most-relevant" translation for the current site language + fallback hierarchy for coding standards tweaks to the changed parts.

james.williams’s picture

Tweaked the strings that describe the table to try and clarify what the data is.

  • james.williams committed b761ca6 on 8.x-1.x
    Issue #3097109 by james.williams, kbentham, stevetweeddale: Store...
james.williams’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.