Skip to content
This repository
Browse code

MINOR Don't set locale on adapter in i18n::_t() for performance reaso…

…ns, we're passing it with each individual translate() call anyway
  • Loading branch information...
commit 796975f53b5d8450f82983eee8b893316d2b6009 1 parent 190c758
Ingo Schommer authored December 04, 2011

Showing 1 changed file with 0 additions and 1 deletion. Show diff stats Hide diff stats

  1. 1  i18n/i18n.php
1  i18n/i18n.php
@@ -1467,7 +1467,6 @@ static function _t($entity, $string = "", $priority = 40, $context = "") {
1467 1467
 		foreach(self::get_translators() as $priority => $translators) {
1468 1468
 			foreach($translators as $name => $translator) {
1469 1469
 				$adapter = $translator->getAdapter();
1470  
-				$adapter->setLocale($locale);
1471 1470
 
1472 1471
 				// if language table isn't loaded for this locale, get it for each of the modules
1473 1472
 				if(!$adapter->isAvailable($locale) && !$adapter->isAvailable($lang)) {

0 notes on commit 796975f

Please sign in to comment.
Something went wrong with that request. Please try again.