/**
  * Return the number of translated messages
  *
  * @param string $locale
  *
  * @return int
  */
 protected function getProgress($locale)
 {
     $messages = $this->translator->getMessages($locale);
     return count($messages, COUNT_RECURSIVE) - count($messages);
 }