jessemiller/HamlPy — Issue #40: Haml trans and blocktrans tags are ignored by make_messages utility
Author: culebron
Created: 2011-10-25 05:50:56+00:00
State: open

I've converted my project to HamlPy and Djaml, and everything works fine except the i18n.

%b
- trans 'Some message text'

This `trans` tag is ignored by make_messages command, as well as `blocktrans` in haml syntax. After running `manage.py make_messages` I found all the messages from templates commented out as they were not found.

I know I can fall back to usual syntax like

%b {% trans 'Some message text' %}

but it undoes a lot of gains of haml. Is there a way to make the translation parser recognize haml syntax?