gawk: I18N Functions
1
1 9.1.8 String-Translation Functions
1 ----------------------------------
1
1 'gawk' provides facilities for internationalizing 'awk' programs. These
1 include the functions described in the following list. The descriptions
1 here are purposely brief. ⇒Internationalization, for the full
1 story. Optional parameters are enclosed in square brackets ([ ]):
1
1 'bindtextdomain(DIRECTORY' [',' DOMAIN]')'
1 Set the directory in which 'gawk' will look for message translation
1 files, in case they will not or cannot be placed in the "standard"
1 locations (e.g., during testing). It returns the directory in
1 which DOMAIN is "bound."
1
1 The default DOMAIN is the value of 'TEXTDOMAIN'. If DIRECTORY is
1 the null string ('""'), then 'bindtextdomain()' returns the current
1 binding for the given DOMAIN.
1
1 'dcgettext(STRING' [',' DOMAIN [',' CATEGORY] ]')'
1 Return the translation of STRING in text domain DOMAIN for locale
1 category CATEGORY. The default value for DOMAIN is the current
1 value of 'TEXTDOMAIN'. The default value for CATEGORY is
1 '"LC_MESSAGES"'.
1
1 'dcngettext(STRING1, STRING2, NUMBER' [',' DOMAIN [',' CATEGORY] ]')'
1 Return the plural form used for NUMBER of the translation of
1 STRING1 and STRING2 in text domain DOMAIN for locale category
1 CATEGORY. STRING1 is the English singular variant of a message,
1 and STRING2 is the English plural variant of the same message. The
1 default value for DOMAIN is the current value of 'TEXTDOMAIN'. The
1 default value for CATEGORY is '"LC_MESSAGES"'.
1