|
@@ -416,7 +416,8 @@ class FrameworkExtension extends Extension
|
|
|
{
|
|
|
if (!empty($config['enabled'])) {
|
|
|
// Use the "real" translator instead of the identity default
|
|
|
- $container->setDefinition('translator', $container->findDefinition('translator.real'));
|
|
|
+ $container->setDefinition('translator', $translator = $container->findDefinition('translator.real'));
|
|
|
+ $translator->addMethodCall('setFallbackLocale', array($config['fallback']));
|
|
|
|
|
|
// Discover translation directories
|
|
|
$dirs = array();
|
|
@@ -444,10 +445,6 @@ class FrameworkExtension extends Extension
|
|
|
}
|
|
|
$container->setParameter('translation.resources', $resources);
|
|
|
}
|
|
|
-
|
|
|
- if (isset($config['fallback'])) {
|
|
|
- $container->setParameter('translator.fallback_locale', $config['fallback']);
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
/**
|