﻿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
18731	Document how to pass additional keywords to xgettext in makemessages	Robin Jarry	nobody	"Hi there,

when doing translations for one of my projects, I noticed that none of the strings that I had identified as ""translatable"" in python files were gathered in PO files.

After some code browsing, I saw that the ""makemessages"" management command has a fixed set of --keyword arguments passed to xgettext.

It occurs that I don't use imports with their full name:

{{{
from django.utils.translation import ugettext
}}}

Nor with the standard ""_"" alias:

{{{
from django.utils.translation import ugettext as _
}}}

Because ""_"" is a dummy variable that I use a lot when doing tuple expansion with unused items (I do use ""tr"" because it does not mix with other of my stuff but that's not the point here)

It would be cool if the ""makemessages"" command could accept user defined keywords. I did a small patch myself that accomplishes this. Please take it in consideration :-)

Thanks in advance keep up the great work,

Robin"	Cleanup/optimization	closed	Documentation	dev	Normal	fixed	makemessages i18n gettext		Accepted	1	0	0	0	0	0
