2013-01-15, 01:33:38
(2013-01-15, 01:15:46)0zz Wrote: Thank you for this great work!
I have three langs on my website, and the default language is russian. But now I want to change the default language to English, so that when anyone opens the website via www.mysite.com he will be redirected to www.mysite.com/index.php?setlang=en
Unfortunately changing the default language is not easy. The option in the administration is just meant to specify, which language the pages with no _xx suffix are in. If you change it, you just say that those pages are in english (but of course they are still in russian).
You would need to rename all russian page files from <slug>.xml to <slug>_ru.xml, then all english files from <slug>_en.xml to <slug>.xml (without suffix). Then you need to adjust the <url>xxxx</url> in each of those files to reflect the filename. Finally you can switch the language in the administration.