Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mail translations #423

Merged
merged 12 commits into from
Oct 10, 2024
Merged

Mail translations #423

merged 12 commits into from
Oct 10, 2024

Conversation

hakito
Copy link
Contributor

@hakito hakito commented Sep 28, 2024

This PR fixes an issue managing custom mail templates and also provides an option to enforce custom translations if possible.

Closes #416
Fixes #424

During the implementation i also encountered the bug #425. When an email is sent, it changes the browser session language to the language of the target user.

To me the entire translation system and mail system is kind of a mess. I tried refactor the mailing logic to a builder pattern. But as I always stumbled on new hurdles I gave up. See #426

Gerd Katzenbeisser added 12 commits September 25, 2024 11:29
Those should only be provided by the user.
The name is misleading, as it's not the default.language setting
DisplayLocalized in SmartyPage was never called
DisplayLocalized in Page was only a copy, which is still called, but the languageCode parameter is not used.
..but only when custom template is available for default lang.

refs LibreBooking#416
It conflicts with the now protected email property
@hakito hakito marked this pull request as ready for review September 29, 2024 09:47
@effgarces effgarces merged commit a7adc75 into LibreBooking:develop Oct 10, 2024
6 checks passed
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.

Custom email templates saved for wrong language Limit languages for emails
2 participants