toscawidgets/tw2.core — pull request #59 by Cito (2012-10-03 19:07:11+00:00)
Title: Add translations and passing lang via middleware

This patch adds some translations for the validator messages, and a way to pass a get_lang function instead of a translator function via middleware configuration. This solution for translation messages is fully backward compatible, you can still pass a translator function. But passing a get_lang function and letting tw2 care about the translations is much more convenient.