set_locale


Description:

public void set_locale (string? locale)

Set the locale used for network requests to locale, given in standard UNIX locale format.

See locale for more details.

Note that while it’s possible to change the locale after sending network requests (i.e. calling build_authentication_uri for the first time), it is unsupported, as the server-side software may behave unexpectedly. The only supported use of this method is after creation of the authorizer, but before any network requests are made.

Parameters:

this

a OAuth2Authorizer

locale

the new locale in UNIX locale format, or null for the default locale