mkmsgs(1)mkmsgs(1)NAMEmkmsgs - create message files for use by gettxt()SYNOPSIS
locale] textfile msgfile
DESCRIPTION
The command takes as input a file of localized text strings and gener‐
ates a message file that can be accessed by the gettxt(3C) routine.
textfile is the name of the file that contains the text strings. msg‐
file is the name of the output message file. appends the suffix to the
message file name. The combined length of the file name should be less
than 14 bytes for short file name file system. The msgfile file should
not contain a colon since it will confuse the formatting routines.
The textfile file contains the localized text strings. The text
strings are separated by a newline character. The text strings are
processed sequentially and copied to the msgfile message file. An
empty line in the input results in a corresponding empty message writ‐
ten to the msgfile message file.
Options
The command supports the following options:
Overwrite the msgfile message file if it exists.
The msgfile message file is installed in the system-
wide localization directory corresponding to the
specified locale. Only a user with the appropri‐
ate privileges can create or overwrite the mes‐
sage file in that directory. The directory will
be created if it does not exist.
EXTERNAL INFLUENCES
Environment Variables
determines the interpretation of messages as single- and/or multibyte
characters.
Messages are issued in if it is set to a valid language and messages
are available. Otherwise "C" locale messages are issued.
If is not specified in the environment or is set to the empty string,
the value of is used as a default for each unspecified or empty vari‐
able. If is not specified or is set to the empty string, a default of
"C" (see lang(5)) is used instead of If any internationalization vari‐
able contains an invalid setting, behaves as if all internationaliza‐
tion variables are set to "C". See environ(5).
International Code Set Support
Single- and multibyte character code sets are supported.
EXAMPLES
The following example shows the format of the input text strings:
WARNINGS
is provided for SVID3 compatibility only. The user is encouraged to
use the NLS mechanism developed by HP and the X/Open Company, Ltd.
SEE ALSOgencat(1), gettxt(3C), setlocale(3C).
STANDARDS COMPLIANCEmkmsgs(1)