In Kohana (version 3), the function is defined in system / base.php and is a convenient function to help (as other answers mentioned) internationalization. You provide a string (optionally, some placeholders to replace the values ββin the finished text), which are then interpreted and, if necessary, the translation is returned.
Unlike the assumptions in other answers, this does not use gettext .
The simplest example: this line has already been translated into English, Spanish and French in Cohan:
salathe Mar 11 '10 at 19:12 2010-03-11 19:12
source share