Skip to content

fix: some notifications were translated wrong due to an empty l10n key#11979

Merged
jvillafanez merged 2 commits into
masterfrom
notifications_calltoaction_empty
Feb 6, 2026
Merged

fix: some notifications were translated wrong due to an empty l10n key#11979
jvillafanez merged 2 commits into
masterfrom
notifications_calltoaction_empty

Conversation

@jvillafanez

Copy link
Copy Markdown
Member

The expected translatable message was empty, which caused the translation system to use the empty key, which contains "weird" unrelated data.
With the fix, if there is no translatable message, the related output will remain empty.

Description

Empty messages (from the notification's calls to action) were wrongly translated.
Right now, all the related messages have all the "required" fields, except the "call to action" which is empty in some of them. In case of an empty "call to action", oCIS won't display any translation for it (the rest of the fields will be translated and work normally)

Related Issue

#11908

Motivation and Context

Notification email could contain useless information.

How Has This Been Tested?

Manually tested following the reproduction steps in the related issue.
Tested just in Spanish. The previous behavior was reproduced and with the PR the related message doesn't appear.

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

The expected translatable message was empty, which caused the
translation system to use the empty key, which contains "weird"
unrelated data.
With the fix, if there is no translatable message, the related output
will remain empty.
@jvillafanez jvillafanez self-assigned this Jan 28, 2026
@update-docs

update-docs Bot commented Jan 28, 2026

Copy link
Copy Markdown

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@sonarqubecloud

Copy link
Copy Markdown

@mmattel

mmattel commented Jan 30, 2026

Copy link
Copy Markdown
Contributor

Should this fix also go into 8.0 or just master?

@jvillafanez

Copy link
Copy Markdown
Member Author

I guess @kobergj knows...
The problem looks kind of bad, so I'd vote to include it in 8.0, but it might be too late for that.

@kobergj

kobergj commented Jan 30, 2026

Copy link
Copy Markdown
Contributor

@jvillafanez yes, I agree. Please backport to stable-8.0.

@jvillafanez

Copy link
Copy Markdown
Member Author

Backport in #11984

@jvillafanez jvillafanez merged commit af8c14f into master Feb 6, 2026
5 checks passed
@jvillafanez jvillafanez deleted the notifications_calltoaction_empty branch February 6, 2026 09:31
ownclouders pushed a commit that referenced this pull request Feb 6, 2026
fix: some notifications were translated wrong due to an empty l10n key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants