write language to session