mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #255 from drzax/i18n
BUGFIX: Improve translation efficiency for missing locales
This commit is contained in:
commit
db9a3f4eb9
@ -1833,8 +1833,11 @@ class i18n extends Object implements TemplateGlobalProvider {
|
||||
}
|
||||
}
|
||||
|
||||
// Finally, load any translations from registered plugins
|
||||
// Load any translations from registered plugins
|
||||
if ($load_plugins) self::plugins_load($locale);
|
||||
|
||||
// Make sure this is only done once. We don't want to attempt it hundreds of times for missing locals
|
||||
if(!isset($lang[$locale])) $lang[$locale] = array();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user