Solaris Common Desktop Environment: Advanced User's and System Administrator's Guide

Creating Localized Actions

The search path for data types includes language-dependent locations. The desktop uses the value of LANG to determine the locations searched for data type definitions.

Locations for Localized Actions

Localized action definitions must be placed in the proper language-dependent directories along the actions search path.

The default search path is:

To Localize an Existing Action

  1. Create a file in the appropriate language-dependent directory (for example, in /etc/dt/appconfig/types/japanese) .

  2. Copy the action definition to the language-dependent configuration file.

    For example, you might copy an action definition from

    	app_root/dt/appconfig/types/C/file.dt

    to

    	app_root/dt/appconfig/types/japanese/newfile.dt
  3. Add a LABEL field or modify the existing LABEL field.

    	LABEL			string
    

    Application Manager and File Manager use the label string to identify the action's icon.

  4. Localize any of the following fields in the action definition:

    • For localized icons: ICON

    • For localized On Item help: DESCRIPTION

    • For localized prompts: any quoted text in the EXEC_STRING