I'm not sure if the condition "$_GET['sourcelocale'] == 'en-US'" is needed. Seems that in my installation, the "en_US" locales are not properly installed and I get an error when I try to change to en_US source locale.