Localizing document descriptor files
The descriptor file defines context objects, among other items.
Context objects are values that
PolicyCenter inserts
into the document template to replace defined symbols. For
example, PolicyCenter replaces
<%=Subject%> in the document
template with the value defined for the symbol
Subject in the descriptor file.
Example
For example, in the base configuration, PolicyCenter provides an XML
definition for the AccountEmailSent
template descriptor associated with the
AccountEmailSent document content
template. The descriptor file defines a context
object for the Subject symbol. You
can define as many context objects and associated
symbols as you need. You can add elements that
localize the template for any languages supported by
your system.
<?xml version="1.0" encoding="UTF-8"?>
<DocumentTemplateDescriptor
id="EmailSent.gosu.htm"
description="Record of an email being sent"
...
keywords="CA, email">
<DescriptorLocalization language="languageCode" name="localizedName"
description="localizedDescription" />
...
<ContextObject name="Subject" type="string">
<DefaultObjectValue></DefaultObjectValue>
<ContextObjectLocalization language="languageCode" display-name="localizedName" />
...
</ContextObject>
...
</DocumentTemplateDescriptor>
XML elements to localize
Localizing a template descriptor file requires that you localize a number of items in the file. The following list describes some of the main items that you can localize in a descriptor file.
|
Element |
Attribute |
Description |
|---|---|---|
|
|
|
Localize the keywords associated with this template to facilitate the search for this template in the PolicyCenter search screen. |
|
|
|
Subelement of
You can also localize the name and description of this template as it appears in PolicyCenter. |
|
|
|
Subelement of
You can also localize the name of this template as it appears PolicyCenter. |
To localize a document template descriptor file, add the
appropriate
<DescriptorLocalization>
and
<ContextObjectLocalization>
subelements to the file.
