Group types translations are not visible in teasers and group page

Created on 30 May 2024, 6 months ago
Updated 2 July 2024, 5 months ago

Problem/Motivation

"group types" (/admin/structure/taxonomy/manage/group_type/overview displays as untranslated despite that translation have been added

Affected pages/view mods:
- teasers, search page, stream, overview, group page

Steps to reproduce

- Create a test group and add translation of the selected type (term)
- Switch your profile language to different then default one
- See that the group type is still in default language on search, all-groups, homepage featured content block, group node page

Proposed resolution

social_group_preprocess_group(){
....
replace `$variables['group_type'] = $term->getName();`
with `$variables['group_type'] = \Drupal::service('entity.repository')->getTranslationFromContext($term)->label();`
....
}
πŸ› Bug report
Status

Fixed

Version

13.0

Component

Code (back-end)

Created by

πŸ‡ΊπŸ‡¦Ukraine SV

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024