Issue #3490982: Usernames in activity streams shouldn't be translatable #4226
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem (for internal)
The usernames of the people in the streams were getting translated when using an external translation tool like Google Translation. They shouldn't be translatable
The output in the stream is coming from message templates text ( https://github.com/goalgorilla/open_social/blob/main/modules/custom/activity_creator/src/ActivityFactory.php#L146 ) which is getting added on activity page in https://github.com/goalgorilla/open_social/blob/main/modules/custom/activity_creator/activity.page.inc#L38 which then gets added in https://git.drupalcode.org/project/socialbase/-/blob/2.6.x/templates/activity/activity.html.twig?ref_type=heads#L48
Solution (for internal)
We added “no translate” attribute with message output text.
Release notes (to customers)
We smashed a bug where our usernames in the activity streams were getting translated when using third party services like Google Translate
Issue tracker
https://www.drupal.org/project/social/issues/3490982
Theme issue tracker
N.A
How to test
Change Record
N.A
Translations
N.A