Bug fix: bilingual support now works

Fixed a bug which made the template ignore the language parameter.