Added locale option for wp core update

I just extended the update function in wp core allowing us to specify the locale we want to use. It is quite the same as in the case of core install.