add toggle for translations.fallback

This commit is contained in:
Andy Miller
2015-07-06 21:20:15 -06:00
parent 3a7426ed04
commit e172f5c82d

View File

@@ -248,6 +248,13 @@ class Language
$lookup = array_shift($args);
if ($this->enabled() && $lookup) {
if ($this->config->get('system.languages.translations.fallback', true)) {
$languages = $this->getFallbackLanguages();
} else {
$languages = (array) $this->getDefault();
}
foreach ($this->getFallbackLanguages() as $lang) {
$translation = $this->getTranslation($lang, $lookup);