Changed to correct handling for language

Changed to the native Wordpress function get_locale() to set the language of the payment window.