Use these on-line files as a reference for this example:
/opt/SUNWddk/kcms/src/kcssolmsg.cp /opt/SUNWddk/kcms/src/kcssolmsg.h
The following is an excerpt from the kcssolmsg.cc file. Use it as a template when extending the KcsStatus class.
...
char *
findErrDesc(KcsStatusId statId)
{
#ifndef KCSSOLMSG_STRINGS
#define KCSSOLMSG_STRINGS
setlocale (LC_MESSAGES,"");
bindtextdomain("kcssolmsg.strings","/usr/lib/locale");
#endif
switch (statId)
{
case KCS_SOLARIS_FILE_NOT_FOUND:
return(dgettext("kcssolmsg_strings","Could not find Solaris file type \
profile"));
case KCS_X11_WINDOW_PROF_ERROR:
return(dgettext("kcssolmsg_strings","Error in X11 window profile"));
...