MINOR Don't set locale on adapter in i18n::_t() for performance reasons, we're passing it with each individual translate() call anyway

This commit is contained in:
Ingo Schommer 2011-12-04 19:38:07 +01:00
parent 190c758639
commit 796975f53b

View File

@ -1467,7 +1467,6 @@ class i18n extends Object implements TemplateGlobalProvider {
foreach(self::get_translators() as $priority => $translators) {
foreach($translators as $name => $translator) {
$adapter = $translator->getAdapter();
$adapter->setLocale($locale);
// if language table isn't loaded for this locale, get it for each of the modules
if(!$adapter->isAvailable($locale) && !$adapter->isAvailable($lang)) {