This was resulting in strings not getting translated, especially when the calls to gettext came at the lowest indent level of the module.