﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
34784	Django french short date format translation bug	Olivier Pons	Claude Paroz	"This bug has persisted for over 8 years:

English: `SHORT_DATE_FORMAT = ""m/d/Y""`

In French, it should be: `SHORT_DATE_FORMAT = ""d/m/Y""`

However, it's currently set to: `SHORT_DATE_FORMAT = ""j N Y""`

This results in an incorrect translation:

For English: ""`08/18/2023`"" should translate to ""`18/08/2023`"" for a ""short"" format.

But as it stands now:
English: ""`08/18/2023`"" translates to ""`18 août 2023`"", which is not an expected short date format.

As a workaround, we're using Babel, which returns the correct short version = ""`d/m/Y`"":

{{{
#!python
from datetime import date
from babel.dates import format_date
from django.utils.translation import get_language

formatted_date = format_date(date.today(), ""short"", locale=get_language())`
}}}"	Bug	closed	Internationalization	4.2	Normal	fixed	translation,french,date	Claude Paroz Stephane Raimbault	Ready for checkin	1	0	0	0	0	0
