Skip to content

Translate concept/collection types on concept page#1910

Merged
osma merged 1 commit intomainfrom
issue1902-concept-page-translate-type
Jan 28, 2026
Merged

Translate concept/collection types on concept page#1910
osma merged 1 commit intomainfrom
issue1902-concept-page-translate-type

Conversation

@osma
Copy link
Member

@osma osma commented Jan 27, 2026

Reasons for creating this PR

Concept types were not localized (translated) on the concept page in all cases. This PR makes sure that also types that are localized via the translation files (e.g. skos:Collection, iso-thes:ConceptGroup) are properly translated. A Cypress test verifies this.

For example the display of the YSO group 00 General terms was affected by this.

Before this PR:

image

After:

image

Link to relevant issue(s), if any

Description of the changes in this PR

  • add special handling for concept type, with translation, in concept page Twig template
  • add Cypress test to verify translation of e.g. skos:Collection type label
  • fix configuration of groups test vocabulary URI space (needed by cypress test)

Known problems or uncertainties in this PR

Some mapping-related Cypress tests are failing, but they are not related to this change and PR #1912 should fix them.

Checklist

  • phpUnit tests pass locally with my changes
  • I have added tests that show that the new code works, or tests are not relevant for this PR (e.g. only HTML/CSS changes)
  • The PR doesn't reduce accessibility of the front-end code (e.g. tab focus, scaling to different resolutions, use of .sr-only class, color contrast)
  • The PR doesn't introduce unintended code changes (e.g. empty lines or useless reindentation)

@osma osma added this to the 3.1 milestone Jan 27, 2026
@osma osma self-assigned this Jan 27, 2026
@osma osma added the bug label Jan 27, 2026
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
91.7% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@codecov
Copy link

codecov bot commented Jan 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.32%. Comparing base (ff07932) to head (a489f9a).
⚠️ Report is 28 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1910      +/-   ##
============================================
- Coverage     70.38%   70.32%   -0.07%     
  Complexity     1658     1658              
============================================
  Files            34       34              
  Lines          4356     4364       +8     
============================================
+ Hits           3066     3069       +3     
- Misses         1290     1295       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@osma osma moved this to Under review in Skosmos 3.x Backlog Jan 27, 2026
@miguelvaara miguelvaara self-requested a review January 28, 2026 13:22
Copy link
Contributor

@miguelvaara miguelvaara left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything looks correct and works well - great! From my side, it’s fine to merge

@osma osma merged commit 2f2e488 into main Jan 28, 2026
14 of 18 checks passed
@github-project-automation github-project-automation bot moved this from Under review to Issue/PR closed in Skosmos 3.x Backlog Jan 28, 2026
@osma osma deleted the issue1902-concept-page-translate-type branch January 28, 2026 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Concept page: type should be translated (e.g. skos:Collection, iso-thes:ConceptGroup)

2 participants