Repository navigation
stages/email: fix ungrammatical expiry time in password reset templates (cherry-pick #22758 to version-2026.5) - #23952
Merged
Conversation
…es (#22758) * stages/email: fix ungrammatical expiry time in password reset templates Django's naturaltime filter outputs a prepositional phrase like "in 23 hours". When interpolated into the existing sentence "The above link is valid for ...", the prepositions clash, producing broken grammar in English and all localized languages. Replace naturaltime with timeuntil in both the HTML and plain-text password reset templates so the interpolated value is a bare duration string. Fixes #22757 * fix other templates too Signed-off-by: Jens Langhammer <[email protected]> * Revert "fix other templates too" This reverts commit d069784. The original fix replaces naturaltime with timeuntil in the password reset templates, where the value is interpolated into the sentence "The above link is valid for ...". However, the reverted commit also changed the invitation templates, where the phrasing is different: "This invitation expires {{ expires }}." In this context, naturaltime is correct and timeuntil would produce awkward output. The fix only applies to the password reset templates; the invitation templates should remain unchanged. * fix template template Signed-off-by: Jens Langhammer <[email protected]> * fixup Signed-off-by: Jens Langhammer <[email protected]> --------- Signed-off-by: Jens Langhammer <[email protected]> Co-authored-by: Jens Langhammer <[email protected]> Co-authored-by: Connor Peshek <[email protected]>
✅ Deploy Preview for authentik-integrations ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
BeryJu
approved these changes
Jul 13, 2026
❌ 1 Tests Failed:
View the top 1 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Cherry-pick of #22758 to
version-2026.5branch.Original PR: #22758
Original Author: @lwillek
Cherry-picked commit: bc65b25