Implementing the select language directive