HP 9000 User Manual page 120

Computers
Hide thumbs Also See for 9000:
Table of Contents

Advertisement

};
This would need conversion to:
printf (catgets
(catd, seLnum, msg_num,
msg_tbl[i]));
and set_num, msg_num and message index
i
must be synchronized. In
particular, note that
msg_ tbl [0]
is
message 1
and that
0
is not a valid
message number .
• Multiple messages in a
printf
call might appear as:
printf ("message 1", "message 2");
But, because
catgets
overwrites its message string on each call, these cannot
be translated as:
printf(catgets(catd,
set_num_l, msg_num_l,
"message 1"));
catgets(catd, set_num_2, msg_num_2,
"message 2"));
For this situation it is necessary to copy one of the messages:
char *m1 [N] ;
strcpy(m1,
catgets(catd, set_num_l, msg_num_l,
"message 1"));
printf(m1,
catgets(catd, set_num_2, msg_num_2,
"message 2"));
• Both
catgets
and
gencat
impose limits on the length of messages they can
handle. These limits may make it necessary to compose a large message,
such as a help screen, from several smaller messages. Nevertheless, realize
that splitting a message must be done with care as it can impose serious
difficulties on the translation process. If a message must be split, each part
should still express a complete sentence or idea. For further information, see
catgets(3C) and other references in the HP- UX Reference.
The Message Catalog System 7-13
7

Advertisement

Table of Contents
loading

Table of Contents