Replaced get_language call for get_locale