LC_MESSAGES category

The LC_MESSAGES category defines the format and values for positive and negative responses. The following keywords are recognized:
copy
Specifies the name of an existing locale to be used as the source for the definition of this category. If you specify this keyword, no other keyword should be present in this category. If the locale is not found, an error is reported and no locale output is created. The copy keyword cannot specify a locale that also specifies the copy keyword for the same category.
yesexpr
The operand consists of an extended regular expression that describes the acceptable affirmative response to a question that expects an affirmative or negative response.
noexpr
The operand consists of an extended regular expression that describes the acceptable negative response to a question that expects an affirmative or negative response.
yestr
The operand consists of an fixed string (not a regular expression) that can be used by an application for composition of a message that lists an acceptable affirmative response, such as in a prompt.
nostr
The operand consists of an fixed string that can be used by an application for composition of a message that lists an acceptable negative response.

Figure 1 shows an example of how to define the LC_MESSAGES category.

Figure 1. Example LC_MESSAGES definition
%%%%%%%%%%%%%
LC_MESSAGES
%%%%%%%%%%%%%
% yes expression is a string that starts with
% "SI", "Si" "sI" "si" "s" or "S"
yesexpr "<circumflex><left-parenthesis><left-square-bracket><s><S>/
<right-square-bracket><left-square-bracket><i><I><right-square-bracket>/
<vertical-line><left-square-bracket><s><S><right-square-bracket>/
<right-parenthesis>"

% no expression is a string that starts with
% "NO", "No" "nO" "no" "N" or "n"
noexpr "<circumflex><left-parenthesis><left-square-bracket><n><N>/
<right-square-bracket><left-square-bracket><o><O><right-square-bracket>/
<vertical-line><left-square-bracket><n><N><right-square-bracket>/
<right-parenthesis>"

END LC_MESSAGES