add set_lang funtion to tpl class