This is the API documentation for concrete5 version 5.6 and earlier. View Current API Documentation

Function t2

Translate text (plural form).

Example: t2('%d child', '%d children', $n) will return translated '%d child' if $n is 1, translated '%d children' otherwise.
Example: t2('%d child', '%d children', $n, $n) will return translated '1 child' if $n is 1, translated '2 children' if $n is 2.
Located at startup/localization.php

Parameters summary

string $singular The singular form.
string $plural The plural form.
integer $number The number.

Return value summary

string Returns the translated text.