Save this as smart_if.py in the templatetags folder of one of your apps. Then a simple {% load smart_if %} replaces the boring built-in Django {% if %} template with the new smart one.
The Django documentation on internationalization describes how to add multi-language support to your application. As it took me a few tries to get it right, here's a rundown of what I did to add it to an existing project.