Gettext/ruby 002dformat

From Get docs

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.