Summary of message translation problems

Created on 9 January 2024, 12 months ago
Updated 12 January 2024, 12 months ago

Problem/Motivation

I created this new issue because, for several years, I have had problems translating message templates when the site was installed in a language other than English.
This problem is very impactful for the appropriation of the opensocial platform.
I indicated somes issues that seemed close

Steps to reproduce

With Php 8.1 or Php 8.2
Install opensocial 12.0.1 (or directly 12.0.2) in your default language (what the browser generally offers).
Update to 12.0.2 if necessary
Activate the Social Language module
Import translations and suggestions from localize.drupal.org.
Check on /admin/config/regional/translate that all the strings are translated.
To take the example of "posted", the string "[message:author:url:absolute]">[message:author:display-name] posted" appears there and is translated. (hoping it's the right string)
On /admin/structure/message/manage/create_post_community, the translation into the language of the site is indicated as original and the translations appear there.
However, messages on the feed such as "posted", "created an event in", "commented on" are not translated.

English is displayed while the translation is present

Proposed resolution

I searched in several directions such as :

  • is this linked to non-translatable fields? I haven't been able to find which ones.
  • Is this related to features?, but it seemed that Opensocial no longer uses them?
  • Is this an HTML formatting problem in the translation? (it seemed that a check was taking place during the import)
  • is this related to the /stream view which does not display the correct language? But then why does it work on certain messages?

I think understanding this problem is beyond my skills and I can only extrapolate

https://www.drupal.org/u/corn696 offers https://www.drupal.org/project/social/issues/3131197#comment-14058630

If you edit the language configs and perform an import the translations show up.
Could it be caused by installing the site in another default language?

Remaining tasks

I have linked other issues on the subject.

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

12.0

Component

Translations

Created by

🇫🇷France ohmdesbois

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

Comments & Activities

  • Issue created by @ohmdesbois
  • 🇫🇷France ohmdesbois

    I am well aware that this issue is certainly a duplicate, but I would like to have a clear vision of the problem.
    It seems to me that the related issues revolve around the same problem.
    Would it be possible to have a synthetic explanation, a plan or a procedure to resolve the problem?
    thank you for everything

Production build 0.71.5 2024