Added optionnal $locale parameter to setLanguage()

I needed to set the language manually, so I thought it was a good idea to be able to set it from the setLanguage() function by adding a $locale parameter.