change function_locale to locale