vibe.d beta banner
get vibe.d
0.10.0

Asynchronous I/O that doesn’t get in your way, written in D

Function tr

Performs the string translation for a statically given language.

string tr(CTX, string LANG) (
  string key,
  string context = null
);

string tr(CTX, string LANG) (
  string key,
  string key_plural,
  int n,
  string context = null
);

The second overload takes a plural form and a number to select from a set of translations based on the plural forms of the target language.

Authors

Sönke Ludwig

Copyright

© 2014-2017 Sönke Ludwig

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.