protected function selectPreferredLanguageOnWordPressInstall()
    {
        $wpInstallScriptPath = $this->getComposerConfigurator()->getWordPressInstallDirectory() . '/wp-admin/install.php';
        
        if (file_exists($wpInstallScriptPath)) {
            $wpInstallScript = file_get_contents($wpInstallScriptPath);
            $wpInstallScript = preg_replace('/<\\/body>\\n<\\/html>\\s*$/', '<script>' . PHP_EOL
                . 'if (jQuery(\'#language\').find(\'option[value="en_GB"]\').length) {' . PHP_EOL
                . '    jQuery(\'#language\').val(\'en_GB\').change();' . PHP_EOL
                . '}' . PHP_EOL
                . '</script>' . PHP_EOL
                . '</body>' . PHP_EOL
                . '</html>' . PHP_EOL, $wpInstallScript);
            
            file_put_contents($wpInstallScriptPath, $wpInstallScript);
        }
    }