diff options
| author | Adam Turner <9087854+AA-Turner@users.noreply.github.com> | 2023-04-21 19:04:26 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-21 19:04:26 +0100 |
| commit | aee3c0ab75974790adf359a9c5089d1d781a6b21 (patch) | |
| tree | f15ca9a759ca865d656e2d78ef201b3ddf3a5412 /sphinx/transforms | |
| parent | 186d596f3323f3141c34618e2e788e5cdff8fec3 (diff) | |
| download | sphinx-git-aee3c0ab75974790adf359a9c5089d1d781a6b21.tar.gz | |
Partially revert "Disable localisation when SOURCE_DATE_EPOCH is set (#10949)" (#11343)
This keeps some of the added tests, and avoids a full revert of ``sphinx.locale``.
Diffstat (limited to 'sphinx/transforms')
| -rw-r--r-- | sphinx/transforms/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/transforms/__init__.py b/sphinx/transforms/__init__.py index 2045a7426..f36473084 100644 --- a/sphinx/transforms/__init__.py +++ b/sphinx/transforms/__init__.py @@ -106,7 +106,7 @@ class DefaultSubstitutions(SphinxTransform): text = self.config[refname] if refname == 'today' and not text: # special handling: can also specify a strftime format - text = format_date(self.config.today_fmt or str(_('%b %d, %Y')), + text = format_date(self.config.today_fmt or _('%b %d, %Y'), language=self.config.language) ref.replace_self(nodes.Text(text)) |
