mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
190c758639
commit
796975f53b
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user