I'm not happy about doing part of the template rendering in this function, but if it would be a major effort to change it, then add a task for it and come back to it later, I guess. At the very least, "Complete" and "Incomplete" should be passed through gettext.