You are here

private function TranslationDataCollector::computeCount in Plug 7

1 call to TranslationDataCollector::computeCount()
TranslationDataCollector::lateCollect in lib/Symfony/translation/DataCollector/TranslationDataCollector.php

File

lib/Symfony/translation/DataCollector/TranslationDataCollector.php, line 116

Class

TranslationDataCollector
@author Abdellatif Ait boudad <a.aitboudad@gmail.com>

Namespace

Symfony\Component\Translation\DataCollector

Code

private function computeCount($messages) {
  $count = array(
    DataCollectorTranslator::MESSAGE_DEFINED => 0,
    DataCollectorTranslator::MESSAGE_MISSING => 0,
    DataCollectorTranslator::MESSAGE_EQUALS_FALLBACK => 0,
  );
  foreach ($messages as $message) {
    ++$count[$message['state']];
  }
  return $count;
}