コード例 #1
0
 /**
  * {@inheritdoc}
  */
 public function beforeCompile(CompilationContextInterface $context)
 {
     // The language data is contained in the locales bundle in ICU <= 4.2
     if (IcuVersion::compare($context->getIcuVersion(), '4.2', '<=', 1)) {
         return $context->getSourceDir() . '/locales';
     }
     return $context->getSourceDir() . '/lang';
 }
コード例 #2
0
 /**
  * {@inheritdoc}
  */
 public function beforeCompile(CompilationContextInterface $context)
 {
     // The currency data is contained in the locales and misc bundles
     // in ICU <= 4.2
     if (IcuVersion::compare($context->getIcuVersion(), '4.2', '<=', 1)) {
         return array($context->getSourceDir() . '/misc/supplementalData.txt', $context->getSourceDir() . '/locales');
     }
     return $context->getSourceDir() . '/curr';
 }