Function tc

Translate text (simple form) with a context.

Example: tc('Recipient', 'To %s') will return translation for 'To %s' (example for Italian 'A %s').
Example: tc('End date', 'To %s') will return translation for 'To %s' (example for Italian 'Fino al %s').
Example: tc('Recipient', 'To %s', 'John') will return translation for 'To %s' (example: 'A %s'), using 'John' for printf (so the final result will be 'A John' for Italian).
Example: tc('End date', 'To %s', '01/01/2000') will return translation for 'To %s' (example: 'Fino al %s'), using '01/01/2000' for printf (so the final result will be 'Fino al 01/01/2000' for Italian).
Located at bootstrap/helpers.php

Parameters summary

string $context A context, useful for translators to better understand the meaning of the text to be translated.
string $text The text to be translated.

Return value summary

string Returns the translated text.