manpagez: man pages & more
info gettext
Home | html | info | man

File: gettext.info,  Node: gawk,  Next: Lua,  Prev: bash,  Up: List of Programming Languages

16.5.17 GNU awk
---------------

RPMs
     gawk 3.1 or newer

Ubuntu packages
     gawk

File extension
     ‘awk’, ‘gawk’, ‘twjr’.  The file extension ‘twjr’ is used by
     TexiWeb Jr ().

String syntax
     ‘"abc"’

gettext shorthand
     ‘_"abc"’

gettext/ngettext functions
     ‘dcgettext’, missing ‘dcngettext’ in gawk-3.1.0

textdomain
     ‘TEXTDOMAIN’ variable

bindtextdomain
     ‘bindtextdomain’ function

setlocale
     automatic, but missing ‘setlocale (LC_MESSAGES, "")’ in gawk-3.1.0

Prerequisite
     --

Use or emulate GNU gettext
     use

Extractor
     ‘xgettext’

Formatting with positions
     ‘printf "%2$d %1$d"’ (GNU awk only)

Portability
     On platforms without gettext, no translation.  On non-GNU awks, you
     must define ‘dcgettext’, ‘dcngettext’ and ‘bindtextdomain’
     yourself.

po-mode marking
     --

   An example is available in the ‘examples’ directory: ‘hello-gawk’.

© manpagez.com 2000-2026
Individual documents may contain additional copyright information.