Unable to translate activity titles

Created on 13 February 2023, almost 2 years ago
Updated 14 June 2024, 6 months ago

Problem/Motivation

I'm not able to translate activity titles on stream and explore pages as shown on the printscreen. I don't know if it's a bug or i'm missing something.
Any hint is appreciated

Steps to reproduce

Fresh install + Language, User Interface module enabled
User Interface submodule has according values translated

💬 Support request
Status

Active

Version

11.7

Component

Translations

Created by

🇫🇷France tt12

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

Comments & Activities

  • Issue created by @tt12
  • 🇧🇪Belgium Axael

    AFAIK, you can find and translate those strings here: admin/config/regional/translate

  • 🇫🇷France tt12

    Thank you for you comment. I have all strings translated on admin/config/regional/translate still no success

  • 🇩🇪Germany slowflyer

    I had the same issue somewhere after updating from 11.6.3 to 11.7.2. Probably with the switch to 11.7.x

    The attached patch solved the issue.

  • 🇫🇷France tt12

    Thank you for your answer, your solution allows to change language of the activity titles (to the newly added), but doesn't allow to switch back to the default language

  • 🇩🇪Germany slowflyer

    Thanks @tt12, I already learned it the hard way. You will run into some serious trouble with in unicode.php, if no translation is available.
    The modified patch works fine for me in my projects.

  • 🇩🇪Germany achikas Lower Saxony, Germany

    I have the same issue in 12.4.2.
    I checked the code and found the patch, but it didnt work.

  • 🇫🇷France tt12

    I use this solution

    /profiles/contrib/social/modules/custom/activity_creator/activity_creator.module

    297

    - $output = \Drupal::service('activity_creator.activity_factory')->getMessageText($message, \Drupal::languageManager()->getCurrentLanguage()->getId());
    + $output = \Drupal::service('activity_creator.activity_factory')->getMessageText($message);

Production build 0.71.5 2024