Skip to content

[Feature] Fail gracefully when the Deeds & UX translation does not exceed the display threshold #236

@TimidRobot

Description

@TimidRobot

Problem

As documented in CC 3.0 Armenian port Deed URLs 404 · Issue #37 · cc-archive/cc.engine, we have some Legal Code ports and translations for which we do not yet have Deeds & UX translations.

Description

The application should fall back to:

  1. the default language for the legal code jurisidiction
  2. English

We do not need to create the same or similar rules for legal code because the legacy ccEngine bug that served incomplete translations was limited to deeds.

Examples

CC BY 3.0 AM hy Armenian (հայերեն) Deed

Given the following conditions, /licenses/by/3.0/am/deed.hy should redirect to /licenses/by/3.0/am/deed.en

  1. CC BY 3.0 AM hy Armenian (հայերեն) Legal Code exists
  2. ❌ The hy Armenian (հայերեն) Deeds & UX translation does not meet/exceed the TRANSLATION_THRESHOLD
  3. The default language of CC BY 3.0 AM is hy Armenian (հայերեն)
  4. ❌ The hy Armenian (հայերեն) Deeds & UX translation does not meet/exceed the TRANSLATION_THRESHOLD
  5. ✅ The default language of the application is en English

CC BY 3.0 ES ast Asturian (asturianu) Deed

Given the following conditions, /licenses/by/3.0/es/deed.ast should redirect (302) to /licenses/by/3.0/es/deed.es

  1. CC BY 3.0 ES ast Asturian (asturianu) Legal Code exists
  2. ❌ The ast Asturian (asturianu) Deeds & UX translation does not meet/exceed the TRANSLATION_THRESHOLD
  3. The default language of CC BY 3.0 AS is es Spanish (español)
  4. ✅ The es Spanish (español) Deeds & UX translation exceeds the TRANSLATION_THRESHOLD

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions