joomla/joomla-framework — pull request #265 by piotr-cz (2013-10-29 20:28:20+00:00)
Title: Text uses own $lang property

This allows using non-default languages with `Text`:

```PHP
// In application
$language = Language::getInstance('pl-PL');
Text::setLanguage($lang);

// Later on
echo Text::_('HELLO_WORLD');
```

At the moment Text is using `Language::getInstance()` which always returns default language object (en-GB)

See discussion at #32