dcget_text()
Get message text by defining locale domain and category.
Syntax
Parameters
Parameter | Definition |
---|---|
domain_name | file name for message catalog Use only characters that are permitted in file names. |
message_ID | text string that identifies a message |
category | locale category Name of the locale category also determines the name of the directory that contains the domain file. Valid values |
Description
The dcget_text() function returns a message that has a text string as the message ID. The dcget_text() and dget_text() functions serve the same purpose, but dcget_text() requires that you specify domain_name and category. These parameters determine the name of the catalog file and the directory path according to the following format:
The dcget_text() function returns message_ID when it cannot find a message that matches the specified message_ID, domain_name and category. It also returns message_ID when the current locale is the same as the CTYPE locale.
Example
The following example demonstrates the dcget_text() function.
{
ret = dcget_text(domain, msg_id, category);
printf("Message text = %s", ret);
}
display_dcget_text("test_msg", "hello", "CODECVT");