gettext: ruby-format
15.3.11 Ruby Format Strings
---------------------------
Ruby format strings are described in the documentation of the Ruby
functions ‘format’ and ‘sprintf’, in
<https://ruby-doc.org/core-2.7.1/Kernel.html#method-i-sprintf>.
There are two kinds of format strings in Ruby:
• Those that take a list of arguments without names. They support
argument reordering by use of the ‘%N$’ syntax. Note that if one
argument uses this syntax, all must use this syntax.
• Those that take a hash table, containing named arguments. The
syntax is ‘%<NAME>’. Note that ‘%{NAME}’ is equivalent to
‘%<NAME>s’.