Hi!
I know this is an old thread, but I didn't want to open a new one.
I am building a bilingual website, but don't know much php yet, so I'd like to ask for a little help. I have 2 versions of every file (like xyz_en.php and xyz_de.php).
I already have a code for replacing en to de
<?php print str_replace('_en','_de',$_GET['page'])?>
But what I am actually looking for, and here I need your help, is to actually SWAP _en and de. What I mean is: in case there is en, it should be replaced with _de, and VICE VERSA.
Thanks in advance,
zoroaszter