Development

Changeset 7982

You must first sign up to be able to contribute.

Changeset 7982

Show
Ignore:
Timestamp:
03/19/08 18:39:23 (7 months ago)
Author:
fabien
Message:

fixed i18n:extract to take factories.yml configuration into account (closes #3109)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/lib/task/i18n/sfI18nExtractTask.class.php

    r7614 r7982  
    8484    $this->logSection('i18n', sprintf('extracting i18n strings for the "%s" application', $arguments['application'])); 
    8585 
    86     $extract = new sfI18nApplicationExtract(new sfI18N($this->configuration, new sfNoCache()), $arguments['culture']); 
     86    // get i18n configuration from factories.yml 
     87    $config = sfFactoryConfigHandler::getConfiguration($this->configuration->getConfigPaths('config/factories.yml')); 
     88 
     89    $class = $config['i18n']['class']; 
     90    $params = $config['i18n']['param']; 
     91    unset($params['cache']); 
     92 
     93    $extract = new sfI18nApplicationExtract(new $class($this->configuration, new sfNoCache(), $params), $arguments['culture']); 
    8794    $extract->extract(); 
    8895