Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
@chillu chillu authored
Showing with 0 additions and 1 deletion.
  1. +0 −1  i18n/i18n.php
View
1  i18n/i18n.php
@@ -1467,7 +1467,6 @@ static function _t($entity, $string = "", $priority = 40, $context = "") {
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)) {
Please sign in to comment.
Something went wrong with that request. Please try again.