changed deprecated method set_context_lang to set_locale