Translation snippet for rails

works in ruby, haml and html env