Formation of subject-matter and linguistic competences teachers in the context of learning in three languages