﻿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
29712	Add warning in makemessages command if the localecode with `l` flag is not correct	Sanyam Khurana	nobody	"The translations only work when the locale involving  region code is generated as this:

`zh_CN` for Simplified Chinese

Notice here that the region code should be in capital letters for the `django.po` file in the directory to correctly work.

If we do `makemessages` as 

`python manage.py makemessages -l zh_cn`
OR 
`python manage.py makemessages -l zh-cn`

It wouldn't work and no error is produced even after running compilemessages, which can leave people baffled for a while.

I would suggest adding a warning/error messages if the locale is used incorrectly. That would certainly be a great help.

I can make a patch for this as well."	Bug	new	Internationalization	2.1	Normal				Unreviewed	0	0	0	0	1	0
