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

Function t

Translate text (simple form).

Example: t('Hello %s') will return translation for 'Hello %s' (example for Italian 'Ciao %s').
Example: t('Hello %s', 'John') will return translation for 'Hello %s' (example: 'Ciao %s'), using 'John' for printf (so the final result will be 'Ciao John' for Italian).
Located at startup/localization.php

Parameters summary

string $text The text to be translated.

Return value summary

string Returns the translated text.