Create a Java resource bundle with the translations of the object class and attributes. Prefix object class keys with ObjectType and attributes with Attribute. Replace non-alphanumeric characters in the keys to underscores. For example:
ObjectType.AFP_Server=AFP Server ObjectType.Alias=Alias ObjectType.NLS_Product_Container=License Product Container ObjectType.NLS_License_Certificate=License Certificate ObjectType.NLS_License_Server=License Service Provider Attribute.L=Location Attribute.CN=Common name Attribute.Full_Name=Full name Attribute.Surname=Surname
Copy the resource bundle to SDK_HOME/tomcat/webapps/nps/WEB-INF/classes or include the resource bundle in a JAR file and copy the JAR file to SDK_HOME/tomcat/webapps/nps/WEB-INF/lib.
Create a plug-in XML file in the portal/modules/modulename/plugins directory and add a <dir-translator> section. The following example shows the <dir-translator> section that registers several object classes and attributes:
<dir-translator> <resource-properties-file> com.novell.emframe.fw.FwResources </resource-properties-file> <object-type-name>AFP Server</object-type-name> <object-type-name>Alias</object-type-name> <object-type-name>NLS:Product Container</object-type-name> <object-type-name>NLS:License Certificate</object-type-name> <object-type-name>NLS:License Server</object-type-name> <attribute-name>L</attribute-name> <attribute-name>CN</attribute-name> <attribute-name>Full Name</attribute-name> <attribute-name>Surname</attribute-name> </dir-translator>