Sun Java System Portal Server 7.2 Developer's Guide

ProcedureTo Localize the User Information Channel Display Profile

  1. To localize the user information channel (title and description), the conditional properties tag for the locale must be added. For example, the following modifications must be included (modifications are shown in bold):


    <Channel name="UserInfo" provider="UserInfoProvider">
    	<Properties>
    		<String name="refreshTime" value="60" advanced="true"/>
    		<String name="title" value="User Information"/>
    		<String name="description" value="View/Edit 
    		User Information"/>
    
    			<ConditionalProperties condition="locale" value="fr" >
    
    			<String name="title" value="User Information in French"/>
    
    			<String name="description" value="View/Edit User Information in French"/>
    
    			</ConditionalProperties>
    	</Properties>
    </Channel>
  2. To add this, you need the following sample display profile fragment (stored in file dp-locale.xml).


    <?xml version="1.0" encoding="utf-8" standalone="no"?>
    <!DOCTYPE DisplayProfile SYSTEM "jar://resources/psdp.dtd">
    	<ConditionalProperties condition="locale" value="fr" >
    		<String name="title" value="User Information in French"/>
    		<String name="description" value="View/Edit User Information in French"/>
    	</ConditionalProperties>
  3. Upload the display profile fragment using the psadmin with the add-display-profile sub command.

    See the Command Line Reference for more information on this sub command.