gettext: gawk
1
1 15.5.13 GNU awk
1 ---------------
1
1 RPMs
1 gawk 3.1 or newer
1
1 File extension
1 ‘awk’, ‘gawk’, ‘twjr’. The file extension ‘twjr’ is used by
1 TexiWeb Jr (<https://github.com/arnoldrobbins/texiwebjr>).
1
1 String syntax
1 ‘"abc"’
1
1 gettext shorthand
1 ‘_"abc"’
1
1 gettext/ngettext functions
1 ‘dcgettext’, missing ‘dcngettext’ in gawk-3.1.0
1
1 textdomain
1 ‘TEXTDOMAIN’ variable
1
1 bindtextdomain
1 ‘bindtextdomain’ function
1
1 setlocale
1 automatic, but missing ‘setlocale (LC_MESSAGES, "")’ in gawk-3.1.0
1
1 Prerequisite
1 —
1
1 Use or emulate GNU gettext
1 use
1
1 Extractor
1 ‘xgettext’
1
1 Formatting with positions
1 ‘printf "%2$d %1$d"’ (GNU awk only)
1
1 Portability
1 On platforms without gettext, no translation. On non-GNU awks, you
1 must define ‘dcgettext’, ‘dcngettext’ and ‘bindtextdomain’
1 yourself.
1
1 po-mode marking
1 —
1
1 An example is available in the ‘examples’ directory: ‘hello-gawk’.
1