You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Sphinx |today| variable in Python Docs is rendered in the English time format "month day, year" even when browsing in other languages. This is mostly (or only?) noticeable in What's New in Python, e.g. 3.11.
I'd expect the date to honor the language's time format as translated in Sphinx. Taking version 4.5.0 which is used to build Python Docs 3.11, pt_BR and fr are translated to show "day month, year".
The source of this issue seems to be in Doc/conf.py which sets today_fmt's value, hence overriding Sphinx default value and its translations.
The Sphinx
|today|
variable in Python Docs is rendered in the English time format "month day, year" even when browsing in other languages. This is mostly (or only?) noticeable in What's New in Python, e.g. 3.11.I'd expect the date to honor the language's time format as translated in Sphinx. Taking version 4.5.0 which is used to build Python Docs 3.11, pt_BR and fr are translated to show "day month, year".
The source of this issue seems to be in Doc/conf.py which sets today_fmt's value, hence overriding Sphinx default value and its translations.
Steps to reproduce:
Date: March 29, 2023
Date: março 29, 2023
where should be 29 março, 2023Date: mars 29, 2023
where should be 29 mars, 2023The text was updated successfully, but these errors were encountered: