.msg
; the generated message catalog has the suffix .cat
. There may be other such files related to messages. The following criteria must be met for a file to have these suffixes:
*.cat
file through the use of the gencat
command.
The message Bad arg is not very helpful. However, the following message tells users exactly what to do to make the command work:
Do not specify more than 2 files on the command line
Similarly, the message Line too long does not giver users recovery information. However, the following message gives users more specific recovery information:
Line cannot exceed 20 characters
If detailed recovery information is necessary for a given error message, add it to the appropriate place in online information or help.See "Sample Messages" for samples of original and rewritten messages.
gencat
command as comments. The following is an example of a comment line in a message source file.
$ This is a comment
Use comment lines to tell translators and writers what variables, such as %s, %c, and %d, represent. For example, note whether the variable refers to such things as a user, file, directory, or flag.Place the comment line directly beneath the message to which it refers, rather than at the bottom of the message catalog. Global comments for an entire set can be placed directly below the $set directive in the source file.
Specify in a comment line any messages within the message catalog that are obsolete.
\n
(backslash followed by a lowercase n, indicating a new line). This also applies to one-line messages.
\t
(backslash followed by a lowercase t, indicating a tab).
\n\
(backslash followed by a lowercase n, followed by another backslash, indicating a new line).
OPIE "foo: Opening the file."
The foo command displays a calendar.
Instead of:
The foo command will display a calendar.
Do not use the word you except in help and interactive text.
7777-222 is the message ID.MYNUM "Month and year must be entered as numbers."
MYNUM "foo: 7777-222 Enter month and year as numbers.\n"
BADL "Don't use the f option more than once."
BADL "foo: 7777-009 Use the -f flag only once.\n"
del
command reads:
Usage: del {File ...|-}
banner String
unget [-n] [-rSID] [-s] {File|-}
wc [-cwl] {File ...|-}
get -aAijlmM
get
command:
Usage: get [-e|-k] [-cCutoff] [-iList] [-rSID] [-wString] [xList] [-b] [-gmnpst] [-l[p]] File ...
Retrieves a specified version of a Source Code Control System (SCCS) file.
Press the ------ key
to select a key on the keyboard, including the specific key to press (such as, Press Ctrl-D
).
Try again
later
. That should be obvious from the message.
** Total **
Log in to the system; enter the data; then log off.
The user name is sam.
The group name is staff.
The login directory is /u/sam.
Use the Following Standard Messages | Instead of These Messages |
Cannot find or open the file. |
Can't open filename. |
Cannot find or access the file. |
Can't access |
The syntax of a parameter is not valid. |
Syntax error |
Number | Use These Standard Messages | Instead of These Messages |
11 | Specify a range end point that is less than 256. |
Range end point too large. |
16 | The character or characters between \{ and \} must be numeric. |
Bad number. |
25 | Specify a \digit between 1 and 9 that is not greater than the number of subpatterns. |
\digit out of range. |
36 | A delimiter is not correct or is missing. |
Illegal or missing delimiter. |
41 | There is no remembered search string. |
No remembered search string |
42 | There is a missing \( or \). |
\(\) imbalance. |
43 | Do not use \( more than 9 times. |
Too many \( |
44 | Do not specify more than 2 numbers between \{ and \}. |
More than two numbers given in \{ and \}. |
45 | An opening \{ must have a closing \}. |
} expected after \. |
46 | The first number cannot exceed the second number between \{ and \}. |
First number exceeds secind in \{ and \}. |
48 | Specify a valid end point to the range. |
Invalid end point in range expression. |
49 | For each [ there must be a ]. |
[ } imbalance. |
50 | The regular expression is too large for internal memory storage. Simplify the regular expression. |
Regular expression overflow. |
AFLGKEYLTRS "Too Many -a Keyletters (Ad9)" AFLGKEYLTRS "foo: 7777-007 Use the -a flag less than 11 times.\n"
FLGTWICE "Flag %c Twice (Ad4)" FLGTWICE "foo: 7777-004 Use the %c header flag once.\n"
ESTAT "can't access %s.\n" ESTAT "foo: 7777-031 Cannot find or access %s.\n"
EMODE "foo: invalid mode\n" EMODE "foo: 7777-033 A mode flag or value is not correct.\n"
DNORG "-d has no argument (ad1)" DNORG "foo: 7777-001 Specify a parameter after the -d flag.\n"
FLOORRNG "floor out of range (ad23)" FLOORRNG "foo: 7777-021 Specify a floor value greater than 0\n\ \tand less than 10000.\n"
AFLGARG "bad -a argument (ad8)" AFLGARG "foo: 7777-006 Specify a user name, group name, or\n\ \tgroup number after the -a flag.\n"
BADLISTFMT "bad list format (ad27)" BADLISTFMT "foo: 7777-025 Use numeric version and release\ \tnumbers.\n"