Skip to content
Permalink
Browse files

rename _fallback property in TranslationRegistry to _useFallback

Refs: #6812
  • Loading branch information...
Schlaefer committed Jun 16, 2015
1 parent 495a6fd commit 8ab79c8df8dd14ecc7897b711bdab97fc687709b
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/I18n/TranslatorRegistry.php
@@ -43,11 +43,11 @@ class TranslatorRegistry extends TranslatorLocator
protected $_defaultFormatter = 'default';
/**
* Enable translation fallback
* Use fallback-domain for translation loaders.
*
* @var bool
*/
protected $_fallback = true;
protected $_useFallback = true;
/**
* A CacheEngine object that is used to remember translator across
@@ -169,7 +169,7 @@ public function defaultFormatter($name = null)
*/
public function useFallback($enable = true)
{
$this->_fallback = $enable;
$this->_useFallback = $enable;
}
/**
@@ -246,7 +246,7 @@ protected function _getFromLoader($name, $locale)
public function setLoaderFallback($name, callable $loader)
{
$fallbackDomain = 'default';
if (!$this->_fallback || $name === $fallbackDomain) {
if (!$this->_useFallback || $name === $fallbackDomain) {
return $loader;
}
$loader = function () use ($loader, $fallbackDomain) {

0 comments on commit 8ab79c8

Please sign in to comment.
You can’t perform that action at this time.