Translate a message in the correct plural form.

This does *not* instantiate a new function for every marked string (the signature is fabricated for the sake of documentation).

The first argument should be in singular form, the second in plural form. Note that the format specifier %d is optional.

Return Value

Type: string

The translation if one exists in the selected language, or the corresponding original otherwise.


writeln(tr!("There is a goose!", "There are %d geese!")(n));

See Also