In a child theme folder i create a new file called header.php and i add <ul><?php pll_the_languages(); ?></ul>
inside it. This supposed to add this line to the parent header.php file without compromising the original file, but i'm sure you know how child theme works.
To say in other words - i have a stock twenty eleven theme (no modifications) and i want to add a language selector to my header. What do i do? Because my method described above does not work.