LocaleOptions
Specifies the language of the labels returned.
API Calls
describeSObject(), describeSObjects(), describeDataCategoryGroups(), describeDataCategoryGroupStructures()
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.
1public void localeOptionsExample() {
2 try {
3 connection.setLocaleOptions("en_US");
4 connection.describeSObject("Account");
5 } catch (ConnectionException ce) {
6 ce.printStackTrace();
7 }
8}