Newer Version Available

This content describes an older version of this product. View Latest

LocaleOptions

Specifies the language of the labels returned.

Fields

Element Name Type Description
language string

Specifies the language of the labels returned. The value must be a valid user locale (language and country), such as de_DE or en_GB. For more information on locales, see the Language field on the CategoryNodeLocalization object.

Sample Code—Java

This sample sets the LocaleOptions header to the locale of the logged-in user, and then performs a describe on Account.
1swfobject.registerObject("clippy.codeblock-0", "9");public void localeOptionsExample() {
2  try {
3    connection.setLocaleOptions("en_US");
4    connection.describeSObject("Account");
5  } catch (ConnectionException ce) {
6    ce.printStackTrace();
7  }
8}
9