5.5

Table Of Contents
Whenever a localizable attribute appears in a log message, vCloud Director takes the following steps to find
text to display:
1 If the service has a localization bundle, open the file in that bundle whose name corresponds to the
current client locale and display the value as it appears in the file.
2 If the service has a localization bundle but no file exists in that bundle whose name corresponds to the
current client locale, open the file in that bundle named en_US and display the value as it appears in the
file. The default locale for vCloud Director is en_US.
3 Otherwise, display a predefined string.
A Task or Event that a service posts can also include a passthrough key=value pair that is always displayed as
posted by the service, regardless of the current client locale or the presence or absence of a localization
bundle.
Message File Keys and Parameters
Message file contents (key=value pairs) apply to all Task and Event objects that the service creates. If a Task
and an Event both use the same key, the same message appears for both.
Table 113. Localization Keys for Service-Specific Tasks
Attribute Values Matched for key Available Parameters
operationName
resourceId The value of the id attribute of the
Owner of the Task.
resourceNam
e
The value of the name attribute of the
Owner of the Task.
resourceTyp
e
The value of the type attribute of the
Owner of the Task.
Owner:type
None
serviceNamespace
None
operation (passthrough)
None
To create a message that appears only when a Task has status="running", append the string _PROGRESS to
the key.
Table 114. Localization Keys for Service-Specific Events
Attribute Values Matched for key Available Parameters
type
resourceId The value of the id attribute of the
Owner of the Event.
resourceNam
e
The value of the name attribute of the
Owner of the Event.
resourceTyp
e
The value of the type attribute of the
Owner of the Event.
Owner:type
None
serviceNamespace
None
typeFull (passthrough)
None
To create a message that appears only for a failed Event (one where success="false"), prepend the string
FAILED. to the key.
vCloud API Programming Guide
352 VMware, Inc.