tr

Translate message.

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

  1. template tr(string singular, string[Tr] attributes = null)
    version(!xgettext)
    template tr (
    string singular
    string[Tr] attributes = null
    ) {}
  2. template tr(string singular, string plural, string[Tr] attributes = null)

Members

Manifest constants

tr
enum tr;
Undocumented in source.

Return Value

The translation of message if one exists in the selected language, or message otherwise.

Examples

writeln(tr!"Translatable message");

See Also

Meta