Yes you are right Don.  Typo.

I will change this morning.

Eric.

On 14 February 2014 1:58:58 AM AEST, Don Gilbert <notifications@github.com> wrote:
>> @@ -102,6 +102,31 @@ class HelloController extends AbstractController
>>  
>>  ```
>>  
>> +### Using `Text` From Twig ###
>> +
>> +If you are using [Twig](http://twig.sensiolabs.org/) as a templating
>engine you will be unable to execute PHP code in the layout to use the
>`Text` magic function directly.  One option is to add each string to
>the view, however you can also use Twig functions.
>> +
>> +Creating a Twig function will allow the use of syntax like the below
>in your layout file.
>> +
>> +	jtext('APP_YOURSAMPLE_STRING')
>> +
>> +To create a Twig function to do this after creating the
>Twig_Environment and before rendering add the following code:
>> +
>> +	$loader = new \Twig_Loader_Filesystem($this->path);
>> +	$twig = new \Twig_Environment($loader);
>> +
>> +	$jtextFunction = new \Twig_SimpleFunction('text',function($string){
>
>The first argument of `Twig_SimpleFunction` should be `'jtext'`, right?
>
>---
>Reply to this email directly or view it on GitHub:
>https://github.com/joomla-framework/language/pull/1/files#r9714138

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.