Common Desktop Environment: Desktop KornShell User's Guide

Built-in Localization Commands

catopen variable catalogName

Opens the indicated message catalog and returns the catalog ID in the environment variable specified by variable. If a shell script needs to close the file descriptor associated with a message catalog, then the catalog ID must be closed using the catclose command.

catgets variable catalogId setNumber messageNumber defaultMessageString

Attempts to extract the requested message string from the message catalog associated with the catalogId parameter. If the message string cannot be located, then the default message string is returned. In either case, the returned message string is placed into the environment variable indicated by variable.

catclose catalogId

Closes the message catalog associated with the indicated catalogId.