LANGUAGE_CODE should be automatically set based on system locale
|Reported by:||hakanw||Owned by:||hakanw|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||yes|
Many other frameworks (like Wordpress) make a good job of using the user's language when you set them up. In many countries, for example some european countries where people are generally not english speaking, this is a really important first impression.
I propose that the settings.py should set LANGUAGE_CODE to the user's locale, if:
1) We find a locale on the system
2) The locale is matched by the list of locales supported by django
If not, we can fall back to the normal en-us.
In addition (but this is more like a bonus thing), since USE_TZ is always set to True by default, I think it would be cool to set the TIME_ZONE variable to the user's time zone, but this might be better spun off as another ticket.
Change History (8)
comment:1 Changed 14 months ago by hakanw
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Type changed from Uncategorized to New feature
comment:2 Changed 14 months ago by russellm
- Triage Stage changed from Unreviewed to Accepted
- Version changed from 1.6 to master
comment:3 Changed 14 months ago by hakanw
- Owner changed from nobody to hakanw
- Status changed from new to assigned