Hello world/ Bonjour le monde,
What technical limitations exist that would prevent the following from working (assume all static content with translations made in .mo file)
Pseudo code:
For every request:
- Check if query string contains field :myLang:
- If value of :myLang: equals "en_US"
- Then ~somehow change WPLANG to "en_Us"
(Or force Wordpress to behave as if WPLANG was actually set to '') - Else- serve request as French using the fr_FR.mo as defined in wp-config.php
I am vaguely aware that it has something to do with the way Wordpress is initialized. I know WPLANG can't be changed on the fly.