1@c This file is part of the GNU gettext manual. 2@c Copyright (C) 1995-2020 Free Software Foundation, Inc. 3@c See the file gettext.texi for copying conditions. 4 5@node gawk 6@subsection GNU awk 7@cindex awk 8@cindex gawk 9 10@table @asis 11@item RPMs 12gawk 3.1 or newer 13 14@item Ubuntu packages 15gawk 16 17@item File extension 18@code{awk}, @code{gawk}, @code{twjr}. 19The file extension @code{twjr} is used by TexiWeb Jr 20(@uref{https://github.com/arnoldrobbins/texiwebjr}). 21 22@item String syntax 23@code{"abc"} 24 25@item gettext shorthand 26@code{_"abc"} 27 28@item gettext/ngettext functions 29@code{dcgettext}, missing @code{dcngettext} in gawk-3.1.0 30 31@item textdomain 32@code{TEXTDOMAIN} variable 33 34@item bindtextdomain 35@code{bindtextdomain} function 36 37@item setlocale 38automatic, but missing @code{setlocale (LC_MESSAGES, "")} in gawk-3.1.0 39 40@item Prerequisite 41--- 42 43@item Use or emulate GNU gettext 44use 45 46@item Extractor 47@code{xgettext} 48 49@item Formatting with positions 50@code{printf "%2$d %1$d"} (GNU awk only) 51 52@item Portability 53On platforms without gettext, no translation. On non-GNU awks, you must 54define @code{dcgettext}, @code{dcngettext} and @code{bindtextdomain} 55yourself. 56 57@item po-mode marking 58--- 59@end table 60 61An example is available in the @file{examples} directory: @code{hello-gawk}. 62